Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Analyze projects with .NET Upgrade Assistant
This article teaches you how to perform code analysis on your projects with .NET Upgrade Assistant, using Visual Studio or the terminal. The analysis generates a report that you can browse to get more information about the upgrade.
Important
.NET Upgrade Assistant is officially deprecated. Use the GitHub Copilot modernization chat agent instead, which is included with Visual Studio 2026 and Visual Studio 2022 17.14.16 or later. This agent analyzes your projects and dependencies, produces a step-by-step migration plan with targeted recommendations and automated code fixes, and commits each change so you can validate or roll back. It automates common porting tasksβupdating project files, replacing deprecated APIs, and resolving build issuesβso you can modernize faster with less manual effort.
Prerequisites
- For Visual Studio, see Enable .NET Upgrade Assistant - Visual Studio.
- For the .NET Global Tool, see Install .NET Upgrade Assistant - .NET Global Tool.
Create a report in Visual Studio
Follow these steps to analyze a project in Visual Studio.
Open Visual Studio.
Open a project or solution.
In the Solution Explorer window, right-click on the solution > Upgrade.
In the Upgrade Assistant: Home tab, select New Report.
Select one or more projects to analyze, then select Next.
Select the target framework, for example .NET 8.0. Then, select Next.
Select the components to analyze and then select Next.
A progress indicator is displayed for each project that's being analyzed.
π The .NET Upgrade Assistant Analyze wizard running the analysis.
Once the analysis is complete, the report dashboard is shown. For more information about the dashboard, see Reports.
Create a report from the CLI
Follow these steps to analyze a project using the terminal. The .NET Global Tool is an interactive tool that guides you through the analysis options. Use the and keys to change the highlighted option, and to run the select the option. Each screen presents you options on how you want to configure the report.
Open a terminal and navigate to the folder containing the solution or project you want to analyze.
To start the tool, run the
upgrade-assistant analyzecommand.You're asked about what you want to analyze. For this example, choose Application sources and press .
Choose a target framework, such as .NET 8.0, and press .
Select the types of items you want to scan. Use to toggle the options, and then press .
On the Config file screen, press , unless you have a ruleset config file to apply.
Choose the format of the generated report. For the purposes of this example, select Save as HTML.
Enter the name MyReport and press .
Select the appropriate privacy mode, such as Restricted and press .
The final prompt is a confirmation, displaying all of the options you selected. Press to run the analysis and generate the report.
Once the report finishes, a summary of the report is displayed. The results of the report are saved to the folder of the project or solution that was analyzed.
Related content
Feedback
Was this page helpful?
