What is .NET Upgrade Assistant?
.NET Upgrade Assistant is a tool that helps migrate legacy projects to newer .NET versions. It can help you:
- Identify dependencies and API usage.
- Recommend an appropriate .NET target framework.
- Apply or suggest code changes required for migration.
Use .NET Upgrade Assistant in Visual Studio
You can install the .NET Upgrade Assistant extension in Visual Studio.
Use .NET Upgrade Assistant from the command line
Install the CLI tool:
dotnet tool install -g upgrade-assistant
Update it to the latest version:
dotnet tool update -g upgrade-assistant
Run it in your project folder:
upgrade-assistant --apply-updates
This upgrades the project to newer .NET versions.