.Net Framework 4.0 安装程序是否包含 .Net Framework 3.5?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2803434/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Does the .Net Framework 4.0 Installer include the .Net Framework 3.5?
提问by Stiefel
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 Framework 3.5 编译的 .Net 组件是否在仅安装了 .Net Framework 4.0 的系统上运行?
Or in other words, does the .Net Framework 4.0 Installer include the .Net Framework 3.5?
或者换句话说,.Net Framework 4.0 安装程序是否包含 .Net Framework 3.5?
回答by Mark Byers
The .NET 4.0 installer doesn't include the .NET framework 3.5. There is some information on this topicin MSDN:
.NET 4.0 安装程序不包括 .NET framework 3.5。MSDN中有关于这个主题的一些信息:
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.
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>Elementin an application configuration file.
.NET Framework 4 与使用早期 .NET Framework 版本构建的应用程序高度兼容,但为提高安全性、标准合规性、正确性、可靠性和性能而进行的一些更改除外。
.NET Framework 4 不会自动使用其公共语言运行时版本来运行使用早期版本的 .NET Framework 构建的应用程序。要使用 .NET Framework 4 运行较旧的应用程序,您必须使用 Visual Studio 中项目属性中指定的目标 .NET Framework 版本编译应用程序,或者您可以使用应用程序配置文件中的
<supportedRuntime>Element指定支持的运行时。
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 blogtalks about this in more detail.
您可以同时安装 .NET 3.5 和 .NET 4.0。Visual Studio 2010 还包括对 .NET 3.5 的改进目标支持。ScottGu 的博客更详细地讨论了这一点。
回答by Damian
Sure this is very old and late. However sometimes pictures are better than words (provided the links still work).
当然,这是非常古老和迟到的。然而,有时图片胜于文字(前提是链接仍然有效)。
For more info please see Microsoft's Official page, NET Framework Versions and Dependencies.
有关更多信息,请参阅 Microsoft 的官方页面,NET Framework 版本和依赖项。


回答by Mikhail Orlov
On XP SP2 with FW 4 installed running FW3.5 application gives a message:
在安装了 FW 4 的 XP SP2 上运行 FW3.5 应用程序给出一条消息:
Unable to find a version of the runtime to run this application.
Unable to find a version of the runtime to run this application.
So the answer is no.
所以答案是否定的。
回答by Joseph Hui
See: .NET Framework Versions and Dependencies
This gives a clear picture what is included in each version of .Net. Also,
这清楚地说明了 .Net 的每个版本中包含的内容。还,
You do not have to install previous versions of the .NET Framework or the CLR before you install the latest version; each version provides the necessary components.
在安装最新版本之前,您不必安装以前版本的 .NET Framework 或 CLR;每个版本都提供了必要的组件。

