first upgrade 2.1 to 5.0 with the upgrade assistant tool (this may be complex and will probably require code changes):
https://dotnet.microsoft.com/platform/upgrade-assistant
then you can upgrade 5.0 to 6.0 (simple):
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello!
I'm looking for some guidance on migrating .NET Core 2.1 applications to .NET 6(Preview). As .NET 6 is going to be a LTS, I would like to migrate it.
Thanks,
Siva
first upgrade 2.1 to 5.0 with the upgrade assistant tool (this may be complex and will probably require code changes):
https://dotnet.microsoft.com/platform/upgrade-assistant
then you can upgrade 5.0 to 6.0 (simple):
Hi @Sivakumar ,
You should refer the Migrate document to step by step update an existing ASP.NET Core 2.1 project to ASP.NET Core 6.0, like this: 2.1 to 3.0 => 3.0 to 3.1 => 3.1 to 5.0 => 5.0 to 6.0. In each step, if you meet any error or exception, you can share it on this forum.
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion
If you are in 2.1 and need to go directly to 6, you need to refer the migration website. Refer the documentation from 2.1 to 2.2 till 5.0 to 6.0 and understand the changes you will need to make and apply them.