mikefolu
mikefolu

Reputation: 1323

Unable to upgrade DotNet Core 2.2 to 3.1

I have Visual Studio 2019 with .Net-2.2 installed on my windows-10 system. When I tried to run a project with .NET Core 3.1, it fails. It was complaining that I need to upgrade to 3.1. Then I downloaded NET Core 3.1 SDK and installed it.

When I run the applications, it still fails. So I check the available framework in the application, I only saw .NET Core-2.2 and didn't see 3.1. What do I do?

Thanks

Upvotes: 0

Views: 3211

Answers (1)

Artak
Artak

Reputation: 2887

Assuming your project is an ASP.NET Core project

There are a lot of breaking changes in ASP.NET Core 3.1. You will need to update your code / project accordingly. The following guide will help you with migration: https://learn.microsoft.com/en-us/aspnet/core/migration/22-to-30?view=aspnetcore-3.1&tabs=visual-studio

For general .NET Core scenario

Here is the list of all the breaking changes when migrating from 2.2 to 3.1: https://learn.microsoft.com/en-us/dotnet/core/compatibility/2.2-3.1

Upvotes: 3

Related Questions