请问.Net框架4.0安装程序包括.NET Framework 3.5的?安装程序、框架、Net、Framework

2023-09-02 10:28:23 作者:风与歌。

做的是编译的.NET Framework 3.5的运行系统只具有.Net框架4.0安装?对.NET组件

Do .Net components that were compiled against the .Net Framework 3.5 run on a system that has only .Net Framework 4.0 installed?

或者换句话说,它的.Net框架4.0安装程序包括.NET Framework 3.5的?

Or in other words, does the .Net Framework 4.0 Installer include the .Net Framework 3.5?

推荐答案

在.NET 4.0安装程序不包含.NET框架3.5。有关于这一主题 MSDN中的一些信息:

The .NET 4.0 installer doesn't include the .NET framework 3.5. There is some information on this topic in MSDN:

.NET Framework 4的是与构建与早期版本的.NET Framework,除了那是为了改善安全性,标准的符合性,正确性,可靠性和性能的一些变化的应用高度兼容。

The .NET Framework 4 is highly compatible with applications that are built with earlier .NET Framework versions, except for some changes that were made to improve security, standards compliance, correctness, reliability, and performance.

在.NET Framework 4不会自动使用其版​​本的公共语言运行库来运行是建立与早期版本的.NET Framework应用程序。要使用.NET Framework 4中运行旧版应用程序,您必须编译的属性在Visual Studio项目中指定的目标.NET框架版本的应用程序,也可以指定使用的 < supportedRuntime> 元素在应用程序配置文件

The .NET Framework 4 does not automatically use its version of the common language runtime to run applications that are built with earlier versions of the .NET Framework. To run older applications with .NET Framework 4, you must compile your application with the target .NET Framework version specified in the properties for your project in Visual Studio, or you can specify the supported runtime with the <supportedRuntime> Element in an application configuration file.

您可以安装.NET 3.5和.NET 4.0的旁边对方。 Visual Studio 2010中还包括了.NET 3.5改进目标定位的支持。 ScottGu's博客这个会谈的细节。

You can install .NET 3.5 and .NET 4.0 along side each other. Visual Studio 2010 also includes improved targetting support for .NET 3.5. ScottGu's blog talks about this in more detail.