针对 .Net Framework 3.5 编译的 .Net 组件是否可以在仅安装 .Net Framework 4.0 的系统上运行?
或者换句话说,.Net Framework 4.0 安装程序是否包含 .Net Framework 3.5?
最佳答案
.NET 4.0 安装程序不包含 .NET Framework 3.5。有some information on this topic在 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>
Element in an application configuration file.
您可以同时安装 .NET 3.5 和 .NET 4.0。 Visual Studio 2010 还改进了对 .NET 3.5 的定位支持。 ScottGu's blog更详细地讨论了这一点。
关于.net - .Net Framework 4.0 安装程序是否包含 .Net Framework 3.5?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2803434/