.Net Framework upgrade

AnnaG 161 Reputation points
2024-08-06T09:17:56.5233333+00:00

Dear all

I need urgent help and need to upgrade .Net on a couple of servers.

One us running Windows 2019 and the other Windoiws Server 2012 R2.

See attached versions installed now

###Prod server

.Net core 2.2.7

Runtime 7.0.5

###UAT server

.Net Core 3.1.7

Runtime = 7.0.5

How do I go about installing .NET 8?

Is there any risk or down time? I am not developer. I can see this is seperate to .Net Framework (latest is 4.8.1). There is also an article titles Upgrade to a new .Net Versioin. Is this the article I want? Same sort of link there is an article named "Install .Net on Windows"

https://learn.microsoft.com/en-us/dotnet/core/install/windows

Seems complicated so can someone provide a summary of steps? I dont want to run into issues so if there is anything we should be testing 1st, please let me know.

Thank you.

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,797 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,922 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,614 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,229 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. AgaveJoe 28,536 Reputation points
    2024-08-06T11:57:07.9433333+00:00

    How do I go about installing .NET 8?

    The runtime and SDK installation and documentation can be found on the official download page. Typically, for a server you want the runtime. For dev machines you want the SDK.

    https://dotnet.microsoft.com/en-us/download/dotnet/8.0

    I can see this is separate to .Net Framework (latest is 4.8.1). There is also an article titles Upgrade to a new .Net Version.

    .NET Framework downloads are at the following page.

    https://dotnet.microsoft.com/en-us/download/dotnet-framework

    While the two download pages above allow you to download and install the frameworks, this does not update your applications. See the official documentation to upgrade an application.

    https://learn.microsoft.com/en-us/dotnet/core/install/upgrade

    https://learn.microsoft.com/en-us/aspnet/core/migration/50-to-60-samples?view=aspnetcore-8.0

    You did not mention what .NET Framework applications you have or what versions the applications target. Usually, you'll upgrade .NET Framework because you want to take advantage of features in the newer framework.

    0 comments No comments

  2. Bruce (SqlWork.com) 66,706 Reputation points
    2024-08-06T17:58:49.5766667+00:00

    .net core is side by side install. That means you can install.net 8, but your out of support .net core applications need to be rebuilt to make use of it.

    0 comments No comments

  3. Olaf Helper 45,106 Reputation points
    2024-08-06T18:18:52.5866667+00:00

    I need urgent help and need to upgrade

    Why? Do you have an application that utilize the newer Framework Runtime version?

    If not, installting a newer version take you to nowhere.

    0 comments No comments

  4. Michael Taylor 54,816 Reputation points
    2024-08-06T18:23:40.6133333+00:00

    If you are not a developer then "upgrading" isn't relevant to you in most cases.

    If you have software running on .NET Framework 4.x then you can upgrade the OS to .NET Framework 4.8.1 and those apps will use the newer version. There can be only 1 version of .NET Framework 4 on a machine and all apps that rely on it use the same version. This is the only "upgrade" you can really do.

    If you have software running on .NET Core 2+ then you can install a newer version (only .NET 6 and .NET 8 are supported and .NET 6 is going out of support later this year). However that is meaningless for the most part because software built against NET Core must run on the major version (e.g. 2.x, 3.x, 5, 6, 7 or 8) they were compiled against. The only way you can "upgrade" that software is by having the developers/publisher upgrade their code first. You can then install the version of NET Core/6/8 that they need on the server. Installing it without upgrading the software does nothing as it won't be used.

    Also be aware that it is possible to build software against NET Core/6/8 apps that are self contained. In this case they ship with the framework components they need and won't use whatever you have installed on the machine at all. Same situation here, the developers have to update the runtime themselves and ship a new version. You don't have to install anything on the server in that case.

    As for whether it requires a reboot or downtime - in general no. Installing a newer major version doesn't impact anything because nothing can run against it yet. Upgrading an existing version to a newer patch won't generally require a reboot as running software will just continue to use the older version until they restart.

    An exception exists for web apps. If you are running IIS and the app(s) you're running need NET Core/6/8 and you are installing a major version then IIS has to be updated to support the newer version. In order for that to take effect IIS has to restart. That means that any existing web apps (irrelevant of whether they are using NET Core/6/8 or not) will be temporarily down. IIS generally restarts in seconds so it is blip in most cases but you should plan accordingly.

    As for the runtime to install you should go to the NET Downloads page. There are 3 runtime downloads available. If you are running web apps then use the web hosting bundle. This takes care of installing the core components, web pieces and updating IIS. If you only run desktop/console apps then you can just install the desktop bundle. This excludes the web/IIS components (since they aren't installed).

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.