question

chiguniiita avatar image
1 Vote"
chiguniiita asked ·

.NET Core 3.1 apps with the .NET 5 Hosting Bundle are supported to work?

Hi.

When I installed the Hosting Bundle for .NET 5, the Hosting Bundle for .NET Core 3.1 disappeared.

I checked this folder.
C:\Program Files\IIS\Asp.Net Core Module\V2

.NET Core 3.1 apps with the .NET 5 Hosting Bundle are supported to work?
In addition, I would like to know if there is any mention of this in the official documentation.


  • Background
    I have multiple .NET Core 3.1 apps running on a single windows server.
    I have converted one of them to .NET 5 and would like to continue running .NET Core 3.1 apps on the same server.


Thanks,

dotnet-runtime-core
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KevorkKeheian avatar image
0 Votes"
KevorkKeheian answered ·

Installing .net5 does not override previous installation. .net core 3.1 was not supposed to disappear.
You ca check by typing dotnet --list or dotnet --info.

You can install multiple hosting bundles of dotnet at the same time and you can host multiple version of .net apps on the same server

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the answer.

I have confirmed that "Runtime" allows for multiple installations.
My question is that "ASP.NET Core Module" included in the Hosting Bundle is overwritten by the new version and the old version disappears.


I'll share screenshots.

  1. After installing .NET Core 3.1 Hosting Bundle.
    43189-image.png


  2. Continue to install .NET 5 Hosting Bundle.
    .NET Core 3.1 ASP.NET Core Module was not found.
    43127-image.png


0 Votes 0 ·
image.png (6.3 KiB)
image.png (6.2 KiB)
JerryCai-MSFT avatar image
0 Votes"
JerryCai-MSFT answered ·

Hi,chiguniiita

Have you tried copy and paste the old version after 5.0 installed, or install 3.1 bundle again?

And .net 3.1 can work with .net 5.0, you can check side-by-side-executionand multiple-versions-of-net-on-the-same-server


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the answer.

I have confirmed that "ASP.NET Core Module" does not be side-by-side.

After installing .NET 5 Hosting Bundle and then reinstalling .NET Core 3.1 Hosting Bundle, but there was no version 3.1 of "ASP.NET Core Module".

1 Vote 1 ·
lextm avatar image
0 Votes"
lextm answered ·

ASP.NET Core module used to be backward compatible. For example, release 13.0 supports both ASP.NET Core 3.0 and 2.2, https://github.com/dotnet/AspNetCore/issues/15243

So you probably can assume the same applies to .NET 5 and .NET Core 3.1, though this is no explicit documentation on that.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the info.

I hope that in the future there will be explicit documentation on compatibility, or that ASP.NET Core module will also be side-by-side.

1 Vote 1 ·
xantari avatar image
1 Vote"
xantari answered ·

Yeah there really should be explicit documentation on this. I've been wondering the same thing. (If installed the .NET 5 hosting bundle is going to cause problems for all of our applications still on .NET Core 3.1)

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.