简体   繁体   English

Microsoft .NET Framework 4已经是此操作系统的一部分。 您不需要安装.NET Framework 4可再发行组件

[英]Microsoft .NET Framework 4 is already a part of this operating system. You do not need to install the .NET Framework 4 redistributable

I have VS 2010, VS 2012 on Windows 8. I tried to uninstall a trial version of VS 2015. The installer uninstalled .NET 4.0, 4.5 frameworks Our project in source control is on .Net 4.5. 我在Windows 8上安装了VS 2010,VS2012。我尝试卸载VS 2015的试用版。安装程序卸载了.NET 4.0、4.5框架。源代码管理中的项目位于.Net 4.5。 When I tried to install 4.0, 4.5 this is the message. 当我尝试安装4.0、4.5时,这是消息。 What should I do? 我该怎么办?

在此处输入图片说明

在此处输入图片说明

Since you are using Windows 8, your .NET Framework is version 4.5 by default. 由于您使用的是Windows 8,因此.NET Framework默认情况下为4.5版。 This means on Windows 8, you already have .NET Framework 4.5. 这意味着在Windows 8上,您已经具有.NET Framework 4.5。

The default behavior of .NET Framework on Windows is any new release of Windows is also has minimum version of .NET Framework runtime installed . Windows上.NET Framework的默认行为是Windows的任何新发行版,也安装了最低版本的.NET Framework运行时 Also the .NET Framework version that comes with Windows can't be downgraded. Windows附带的.NET Framework版本也不能降级。

For example: in your case, Windows 8 has .NET Framework 4.5 installed. 例如:在您的情况下,Windows 8已安装.NET Framework 4.5。 If you have Windows 8.1, you will have .NET Framework v4.5.1 already installed. 如果您使用Windows 8.1,则将已经安装.NET Framework v4.5.1。 Therefore you can not install .NET Framework v4.0 (or v4) on your Windows 8. 因此,您不能在Windows 8上安装.NET Framework v4.0(或v4)。

On Visual Studio 2012 and later, there are .NET Framework targeting packs, and this will enable software/application development to target a specific version of .NET Framework, and your screenshot that has the .NET Framework version values has the supported .NET Framework target, not related to any installed .NET Framework. 在Visual Studio 2012及更高版本上,有.NET Framework目标包,这将使软件/应用程序开发可以目标到特定版本的.NET Framework,并且具有.NET Framework版本值的屏幕快照具有受支持的.NET Framework。目标,与任何已安装的.NET Framework无关。

Of course we have to consider the fact that your .NET Framework runtime on your current Windows must be upgraded to support higher version of .NET Framework. 当然,我们必须考虑以下事实:必须升级当前Windows上的.NET Framework运行时,以支持更高版本的.NET Framework。

For example: to run an application that was developed using .NET Framework 4.7 as the main target on Windows 8, you must ensure that .NET Framework v4.7 runtime is installed on Windows 8, because Windows 8 by default has .NET Framework 4.5. 例如:要运行以.NET Framework 4.7作为Windows 8的主要目标开发的应用程序,必须确保Windows 8上安装了.NET Framework v4.7运行时,因为Windows 8默认情况下具有.NET Framework 4.5 。

For more information, this is the Microsoft's official documentation related version on Windows and .NET Framework runtime versions: https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/versions-and-dependencies 有关更多信息,这是Windows和.NET Framework运行时版本上Microsoft的官方文档相关版本: https : //docs.microsoft.com/zh-cn/dotnet/framework/migration-guide/versions-and-dependencies

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM