Search code examples
c#.net.net-6.0visual-studio-2022

Migrate from .net standard to .net 6 using the upgrade tool


I tried upgrading a .NET standard project to a .NET 6 project using this upgrade assistant tool:

https://dotnet.microsoft.com/en-us/platform/upgrade-assistant/tutorial/install-upgrade-assistant

I ran the tool as the steps describe (installing it, using upgrade-assistant analyze with the project csproj path and then upgrade-assistant upgrade with the path), but after it was done, the project still remains with a target framework of .net standard 2.0.

Is there something else needs to be done in order to upgrade the framework?


Solution

  • I eventually simply edited the project file directly. To convert it to .net 6 all you need to do is change the <TargetFramework> to be like this:

    <TargetFramework>net6.0</TargetFramework>
    

    It's a 3 seconds work so no need for any tools