Is it possible to remove all .Net framework versions from Windows servers (2012,2016,2019)?

Tushar Patil 21 Reputation points
2021-08-20T14:10:39.873+00:00

Hi,

I would like to know is it possible to remove all .Net framework versions (1.x to 4.x) from Windows servers (2012,2016,2019).
We are removing the EOL versions of .Net core (1.x,2.x,3.0) so we would like to know can we remove all the .Net Framework versions from the server.
I found in some articles where it mentioned that .Net Framework is a part of Windows OS and should not be removed as it may cause some issues on the dependent applications.

If it is possible to remove what older versions can be removed ? and how to remove it ?

Please suggest.

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
719 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,136 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 50,591 Reputation points
    2021-08-20T14:35:26.71+00:00

    You cannot remove all versions of .NET as Windows (and many apps) rely on it. It is part of the OS but what versions depends upon what you installed. Basically 4.x is required. Previous versions can be removed provided no apps rely on them. To remove them use the standard Add & Remove Programs feature as they'll show up there. The version that shipped with the OS will not show up.

    .NET Core is not like .NET Framework so don't try to apply any global rules to it by using the rules for .NET Framework. They are completely different platforms. It would be like saying that you have Android SDKs installed on your machine so you should be able to follow the same rules you follow for .NET SDKs. You can't.

    .NET Core is not shipped as part of the OS so, again assuming you don't have any apps that rely on it, you can remove it.

    0 comments No comments

0 additional answers

Sort by: Most helpful