.NetFramework转.NetCore过程() upgradeassistant

https://docs.microsoft.com/en-us/dotnet/core/porting/upgrade-assistant-overview
NET 升级助手概述。
如何安装 .NET 升级助手。
https://docs.microsoft.com/en-us/dotnet/core/porting/upgrade-assistant-aspnetmvc
演示如何针对 .NET Framework ASP.NET MVC 应用程序运行该工具

安装升级助手
dotnet tool install -g upgrade-assistant

在需要打开powershell窗口的文件夹下空白处: shift + 鼠标右键

3、执行升级命令
upgrade-assistant upgrade .\Fooww.Web.WebApi.csproj

4、操作升级步骤(英文)
Upgrade Steps

Entrypoint: E:\Repo\FoowwWeb\Fooww.Web.WebApi\Fooww.Web.WebApi.csproj
Current Project: E:\Repo\FoowwWeb\Fooww.Web.WebApi\Fooww.Web.WebApi.csproj

  1. [Next step] Back up project
  2. Convert project file to SDK style
  3. Clean up NuGet package references
  4. Update TFM
  5. Update NuGet Packages
  6. Add template files
  7. Upgrade app config files
    a. Convert Application Settings
    b. Convert Connection Strings
    c. Disable unsupported configuration sections
  8. Update Razor files
    a. Apply code fixes to Razor documents
    b. Replace @helper syntax in Razor files
  9. Update source code
    a. Apply fix for UA0002: Types should be upgraded
    b. Apply fix for UA0012: 'UnsafeDeserialize()' does not exist
  10. Move to next project

Choose a command:

  1. Apply next step (Back up project)
  2. Skip next step (Back up project)
  3. See more step details
  4. Select different project
  5. Configure logging
  6. Exit

[16:54:13 INF] Saving upgrade progress file at E:\Repo\FoowwWeb\Fooww.Web.WebApi.upgrade-assistant
PS E:\Repo\FoowwWeb\Fooww.Web.WebApi>

5、 Convert project file to SDK style
处理源码
【<Project 】替换为【<Project Sdk="Microsoft.NET.Sdk" 】

6、Clean up NuGet package references

原文地址:https://www.cnblogs.com/microsoft-zyl/p/15636910.html