简体   繁体   English

.NET Core SDK / 运行时和 NuGet Z209802FB858E2C83205027DBBB5D9E6C 版本是否匹配?

[英]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.我目前有一个 ASP.NET 核心应用程序在 ASP.NET 核心 3.1.2 上运行。

While looking for package updates, i realized, that a lot of Microsoft packages (eg 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.在寻找 package 更新时,我意识到,许多 Microsoft 软件包(例如 Microsoft.Extensions.Caching.Memory、Microsoft.Extensions.Configuration.Abstractions,...)已从 3.1.2 更新(最新版本可用我构建了应用程序)到 3.1.5。 Also the latest .NET Core SDK and Runtime has been updated to 3.1.5.此外,最新的 .NET Core SDK 和运行时已更新至 3.1.5。

Is this a coincidence or is there any connection between .NET Core SDK / Runtime and NuGet package versions?这是巧合还是 .NET Core SDK / Runtime 和 NuGet ZEFE90A8E603A7C840D8Z8D 版本之间有任何联系?

Also can i update my NuGet packages to 3.1.5 without updating the .NET Core Runtime on my server?我还可以在不更新服务器上的 .NET 核心运行时的情况下将我的 NuGet 包更新到 3.1.5 吗?

Thanks, Jens谢谢, 詹斯

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).通常它们不必匹配,除非某些反射需要某些程序集的某些确切版本(ASP.NET 内核经常发生这种情况)。

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.由于 .NET Core 平台和包的语义版本控制,第三版中的更新必须不带来 API 更改,因此它们将始终构建而不会失败,并且对这些包的定期调用将正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM