Jensen
Jensen

Reputation: 1329

Do .NET Core SDK / Runtime and NuGet Package Versions have to match?

I currently have a ASP.NET Core Application running on ASP.NET Core 3.1.2.

While looking for package updates, i realized, that a lot of Microsoft packages (e.g. Microsoft.Extensions.Caching.Memory, Microsoft.Extensions.Configuration.Abstractions, ...) have been updated from 3.1.2 (the latest version available when i built the application) to 3.1.5. Also the latest .NET Core SDK and Runtime has been updated to 3.1.5.

Is this a coincidence or is there any connection between .NET Core SDK / Runtime and NuGet package versions?

Also can i update my NuGet packages to 3.1.5 without updating the .NET Core Runtime on my server?

Thanks, Jens

Upvotes: 4

Views: 1565

Answers (1)

Alsein
Alsein

Reputation: 4765

Generally they don't have to match, unless some reflection that requires some exact version of some assembly (which happens to ASP.NET Core very often).

Due to the semantic versioning of .NET Core platform and packages, updates in the third version must bring no API changes, so they will always build without failure and regular calls to these packages would work properly.

Upvotes: 3

Related Questions