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.
"
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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)
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.
"
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.