In your command prompt, run the following command to install the upgrade-assistant tool:
In your terminal, run the following commands to install the upgrade-assistant tool:
dotnet tool install -g --add-source "https://api.nuget.org/v3/index.json" --ignore-failed-sources upgrade-assistant
Now you're ready to run the tool on a solution or project. Let's first analyze the package dependencies for your project.
Navigate to the directory containing your project or solution, and run the following command:
upgrade-assistant analyze <Path to csproj or sln to upgrade>
<Path to csproj or sln to upgrade> on the commands on this page to the path and name of your solution or project file.
The previous command will produce a report in SARIF format, which is based on the JSON format and can be viewed using the following viewers:
After analyzing your project dependencies, run the following command to start upgrading your project:
upgrade-assistant upgrade <Path to csproj or sln to upgrade>
The tool also supports additional options. For full tool usage information, see the upgrade-assistant readme on GitHub.