[英]What point release(s) does my aspnet mvc app run against if it targets “.NET Core 3.1”?
I recently updated our .net core asp.net mvc app, in the project properties, the Target Framework is ".NET Core 3.1".我最近更新了我们的 .net 核心 asp.net mvc 应用程序,在项目属性中,目标框架是“.NET Core 3.1”。 In the.csproj file I see:
在 .csproj 文件中,我看到:
<TargetFramework>netcoreapp3.1</TargetFramework>
At the time I built it the specific version was 3.1.3 which was listed as LTS (long term support).在我构建它的时候,具体版本是 3.1.3,它被列为 LTS(长期支持)。
If I expand the Dependencies -> then Frameworks -> right click on Microsoft.AspNetCore.App -> properties I see:如果我展开 Dependencies -> 然后是 Frameworks -> 右键单击 Microsoft.AspNetCore.App -> 我看到的属性:
Version 3.1.3
QA tested the app and were preparing to release it. QA 测试了该应用程序并准备发布它。
But in the weeks that have followed, I noticed Microsoft released 3.1.4 (now listed as LTS).但在接下来的几周里,我注意到微软发布了 3.1.4(现在列为 LTS)。 I'm confused on the issue of which version of .NET Core my app can run against in deployment.
我对我的应用程序可以在部署中运行哪个版本的 .NET Core 的问题感到困惑。
Can the app run in a customer/deployment environment that has 3.1.4 installed since I never specified 3.1.3 explicitly .该应用程序能否在安装了 3.1.4 的客户/部署环境中运行,因为我从未明确指定 3.1.3 。 Or can it only run against 3.1.3 because that was the latest on my machine when I built it?
或者它只能针对 3.1.3 运行,因为这是我构建它时我机器上的最新版本?
Thanks for the help, I feel stupid for not knowing this.感谢您的帮助,我不知道这一点感到愚蠢。
You misunderstood the LTS concept, https://dotnet.microsoft.com/platform/support/policy/dotnet-core你误解了 LTS 的概念, https://dotnet.microsoft.com/platform/support/policy/dotnet-core
The only key point is that "Customers choosing LTS will need the latest patch update installed to qualify for support".唯一的关键点是“选择 LTS 的客户需要安装最新的补丁更新才能获得支持”。 You can use whatever patch version (3.1.x) till you need to upgrade to the latest when receiving support services from Microsoft.
您可以使用任何补丁版本 (3.1.x),直到您需要升级到最新版本时才能获得 Microsoft 的支持服务。 You should try to upgrade often to the latest patch version though, as it ships security updates.
不过,您应该尝试经常升级到最新的补丁版本,因为它会提供安全更新。
Different deployment approaches (framework dependent or self-contained) also have impact on how you upgrade for yourself or your customers, but that's rather lengthy to discuss.不同的部署方法(依赖于框架或自包含)也会影响您为自己或客户进行升级的方式,但讨论起来相当冗长。 You'd better set up a few experiments in a lab environment to explore further.
您最好在实验室环境中进行一些实验以进一步探索。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.