Package version to update project .NET core in visualstudio

Ricardo Lima 21 Reputation points

My project is using .NET Core version 3.1.

There are packages in version 3.1., 5.0. and 6.0.*.

As I am using the .NET Core 3.1 framework, do I have to use 3.1.* packages?

Example: package Microsoft.EntityFrameworkCore.SqlServer

Microsoft Technologies based on the .NET software framework.
3,143 questions
A set of technologies in the .NET Framework for building web applications and XML web services.
3,995 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,393 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce ( 52,311 Reputation points

    nuget packages have their own version numbers independent of the framework. Most packages support multiple frameworks, so you need to pick a version that supports your framework version (3.1 or netstandard 2.0/2.1)

    for Microsoft.EntityFrameworkCore.SqlServer you will see the last version to support 3.1 was 5.0.17

    note: 3.1 support ends in December, so you should start porting to net 6 soon.

    0 comments No comments

0 additional answers

Sort by: Most helpful