如何在Windows 10中安装.NET 4 Framework

问题描述:

如何在Windows 10中安装.NET 4.0 Framework?.NET 4.6已经安装,但是我想拥有.NET 4 Framework(无需修改注册表).

How can I install the .NET 4.0 Framework in Windows 10? .NET 4.6 is already installed but I want to have .NET 4 Framework (without modifying the registry).

打开和关闭控制面板中的Windows功能没有任何作用.

Turning on and off Windows features in control panel does not have any effect.

来自(重点是我的):

Microsoft .NET Framework 4.6是对Microsoft .NET Framework 4,Microsoft .NET Framework 4.5,Microsoft .NET Framework 4.5.1和Microsoft .NET的高度兼容的就地更新框架4.5.2.

换句话说,安装了.NET 4.6(它是

On other words, having .NET 4.6 installed (it's part of Windows 10 so you need not manually install it) means you have .NET 4.0, 4.5, 4.5.1, 4.5.2 and 4.6 installed and can run code targeting any of those framework versions without making any modifications to your Windows installation.

当您安装了更高版本时,您无法安装.NET 4.0,因为每个版本都是对上一个版本的就地更新.

You cannot install .NET 4.0 when you have a later version installed as each version is an in-place update to the last.

但是,如果您的问题是在Windows 10上的Visual Studio中打开针对.NET 4.0.1、4.0.2或4.0.3的项目,则可能需要下载一个定位包:

If, however, your problem is with opening a project which targets .NET 4.0.1, 4.0.2, or 4.0.3 in Visual Studio on Windows 10, you may need to download one of the targeting packs:

我不确定是否安装了 .