Installing .net framework 4.6.1 on windows 10 version 21H2

Guru V 41 Reputation points
2022-02-17T06:10:50.613+00:00

Hi,
On my machine (controlled by org policy) i have windows 10 21H2 version. I have VS 2022 installed on this machine. Now when i try to open some legacy C# projects (.net framework 4.6.1) in VS, it fails to load project with message .NET framework 4.6.1 is not installed.
When i try to get 4.6.1 installer and run it it says another higher/latest version is already installed and can't install 4.6.1.
I checked in registry and for key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full it says version 4.8.04161.

How can I install 4.6.1 or open C# project in VS2022(without changing project settings)

Developer technologies | .NET | .NET Runtime
{count} votes

Accepted answer
  1. Castorix31 90,681 Reputation points
    2022-02-17T07:28:54.3+00:00

    There is at Install .NET Framework for developer

    "
    If the OS comes preinstalled with a particular .NET Framework version, you can't install a previous 4.x version on the same machine.
    "


1 additional answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2022-02-21T23:12:44.49+00:00

    you will probably have to install windows 10 1511 (latest version with 4.6.1 preinstalled), and then upgrade to 21h2.

    if you use build policies, you might need the admin group to build a custom image.

    as support for 4.6.1 ends in April, you should just upgrade to 4.8 (the last version 4.* framework). you should be able to upgrade the production server to 4.8 runtime, and still run the 4.6.1 code.

    anyway, you may not need the runtime support anyway.

    you can install framework support for 4.6.2 in visual studio via the installer, even if you can not install the runtime. You will have to hand change the project to 4.6.1. then you may need to do the binding redirect in the config file.

    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.