简体   繁体   English

如果我的 aspnet mvc 应用程序以“.NET Core 3.1”为目标,它会针对哪个版本运行?

[英]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.

相关问题 针对.Net 3.5框架的应用程序将在哪些平台上运行? - What platforms will my app that targets the .Net 3.5 framework run on? 我的 .NET Core 3.1 应用程序可以移植到 .NET 5 吗? - Is my .NET Core 3.1 app portable to .NET 5? .NET Core 3.1 控制台应用程序无法在 Windows 上运行 7 - .NET Core 3.1 Console App will not run on Windows 7 无法使用 MVC(.Net 核心 MVC 3.1)运行 IdentityServer 4(.Net 核心 3.1) - Unable to run IdentityServer 4 (.Net core 3.1) with MVC (.Net core MVC 3.1) 我的 .net 核心 3.1 mvc 操作在发布到 azure 应用服务时返回 404 - My .net core 3.1 mvc actions return 404 when published to azure app service 如何强制 Visual Studio 针对 .Net Core 3.1 的发布版本编译项目? - How to force Visual Studio to compile project against the release version of .Net Core 3.1? 将 ASP.NET CORE 3.1 MVC 应用程序部署到 azure 时出现问题 - Problem deploying ASP.NET CORE 3.1 MVC app to azure ASP.NET Core 3.1 MVC 应用程序 - 在子目录中搜索视图 - ASP.NET Core 3.1 MVC app - search views in subdirectory ASPNET Core mvc 3.1 表单在 POST 上始终为空 - ASPNET Core mvc 3.1 form always null on POST 为什么我的 .NET Core 6 控制台应用程序不想在 CLI 中运行? - Why does my .NET Core 6 console app not want to run in CLI?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM