当前位置:网站首页>use. Net upgrade assistant upgrades the net core 3.1 project to NET 6

use. Net upgrade assistant upgrades the net core 3.1 project to NET 6

2022-06-12 16:21:00 Zhangshanyou

Installing the upgrade assistant is simple , Start with this tutorial https://dotnet.microsoft.com/zh-cn/platform/upgrade-assistant/tutorial/intro

Install and run the upgrade assistant

At the command prompt , Run the following command to install the upgrade assistant :

dotnet tool install -g upgrade-assistant

Now? , You are ready to run the tool on a solution or project . Let's first analyze the package dependencies of the project .

Navigate to the directory containing the project or solution , And run the following command :

upgrade-assistant analyze <Path to csproj or sln to upgrade>

The <Path to csproj or sln to upgrade> Change to the path and name of the solution or project file .

The last command will generate SARIF Report in format , The report is based on JSON Format , You can use the following viewer to view :

After analyzing project dependencies , Run the following command to start upgrading the project :

upgrade-assistant upgrade <Path to csproj or sln to upgrade>

The last command will generate CElF Report in format , The report is based on JSON Format , You can use the following viewer to view :

  • Any text editor .
  • Recommended CLEF-tool ( Inquire about CLEF A convenient command line application for log files in )

The tool also supports other options . For complete tool usage information , see also GitHub Upper Upgrade assistant Readme .

原网站

版权声明
本文为[Zhangshanyou]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/163/202206121617335820.html