AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Earlier versions of .NET Hosting Bundle installers

Open jovton opened this issue 3 years ago • 6 comments

On this page (https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/hosting-bundle?view=aspnetcore-6.0#earlier-versions-of-the-installer) there is a section that talks about earlier versions of the Hosting Bundle installer, warning us that they may contain versions of .NET that have reached end-of-life (support). Although there is a link to the end-of-life (support) policy (https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core), I cannot find information anywhere on which installers (hosting bundle) contain which EOL versions. Can this information be added anywhere on the documentation, please? Our managers are constantly nagging us for this information. Thanks!

[Enter feedback here]


Document Details

⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

jovton avatar Apr 19 '23 07:04 jovton

Hello @jovton ... Each version of the hosting bundle has the .NET version in the filename of the installer. The EOL versions of .NET are in the document you cited in the Out of support versions table.

guardrex avatar Apr 19 '23 11:04 guardrex

thanks @guardrex for the info. Question: Will an app that targets the ASP.NET Core 3.1 framework be able to run on an IIS installation where only the .NET 6 or 7 hosting bundle was installed?

jovton avatar Apr 19 '23 12:04 jovton

My memory of the ANCM from several years ago when I worked on these hosting docs quite a bit is that it was said to be backwards compatible with prior framework releases. If you have 3.1 installed on the machine (or are publishing/deploying self-contained apps), the newer ANCM (from 6.0 or 7.0) should be 🤞🍀 able to work just fine. There's always the possibility that something will go sideways. I'm not sure how extensively the team tests each release of the ANCM with prior framework release apps.

Pinging @halter73 to take a look at this.

guardrex avatar Apr 19 '23 13:04 guardrex

Well ... we do say "LTS releases" on the backwards-compat remark (emphasis added) ...

The ASP.NET Core Module (ANCM) is installed with the .NET Core Runtime from the .NET Core Hosting Bundle. The ASP.NET Core Module is forward and backward compatible with LTS releases of .NET.

Cross-ref: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-6.0#install-aspnet-core-module-ancm

I think you'll be ok with LTS releases per that remark. UPDATE: Probably in-support LTS releases after thinking about it a bit more.

guardrex avatar Apr 19 '23 13:04 guardrex

Note to @halter73 ... They don't show the Release type column on the Out of support versions table ...

https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core

... so it will be hard going forward to match our ANCM backward-compat remark to the content that's provided there if the remark spans out-of-support LTS releases.

Note @jovton from the latest releases that strictly-speaking that .NET 7's ANCM is an STS release and wouldn't be supported for 3.1 apps ... strictly-speaking that is. It might work, but it wouldn't be supported if we go by the plain interpretation of the text.

We probably need to flesh out the backward-compat remark. When it says "with LTS releases of .NET," it probably means in support LTS releases. I think when 3.1 dropped out of support, it went out of range of that comment. A slight adjustment to the text there will fix it.

guardrex avatar Apr 19 '23 13:04 guardrex

@Rick-Anderson ... I'll work on this one since I think my ☕ has finally kicked in this morning! 😆

@halter73 ... I'm going to float a PR and ping u for review. I think this will be a quick fix in the ANCM article's remark.

guardrex avatar Apr 19 '23 13:04 guardrex