Home > Mobile >  ASP.NET Core Web Application with .NET Framework, I want to switch the target to .NET Core
ASP.NET Core Web Application with .NET Framework, I want to switch the target to .NET Core

Time:12-02

I'm trying to change ASP.NET Core web application with .NET Framework as a target framework to use .NET Core 3.1.X

I try changing the target framework in the project file (.csproj), I encounter dependency issues, dependency conflict....

Is there any straightforward method to solve this issue?

CodePudding user response:

Before you start your migration, you should know there’s several difference between .net framework and .net core, so please follow the official document to do some Pre-Migration steps.
Then you can follow this official document to migrate your application from framework to .net core 3.1.
Since your ideal .net core version is 3.1, still I suggest you can try to use .net 6. Also, you can use this upgrade tool to reach your goal. In fact, using this upgrade assistant is a batter choice than you doing it by yourself. Even if you are insisting using .net core 3.1, you can use this assistant to upgrade your version to 6 first then change it to 3.1.

Note:
Before you start your migration, please make a backup of your original project. That's because some packages in .net framework may be no long available in .net core. So if there're some errors occur, you can go back to the original one.

  • Related