.net - .Net Framework 4.0 安装程序是否包含 .Net Framework 3.5?

标签 .net .net-3.5 .net-4.0 installation

针对 .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/

相关文章:

json - 使用 C# 中的 JSON.NET 反序列化 Twitter JSON 以获取主题标签

.net-3.5 - Windows 工作流动态、用户创建的工作流

.net - 创建批处理文件来检查 .net Framework 3.5 sp1 是否安装

unit-testing - 运行单元测试时出现奇怪的 .net 4.0 异常

c# - 对多个连接使用 Socket.BeginAccept/EndAccept

asp.net - IIS 7 工作进程瓶颈,应用程序池 ASP.NET 3.5 + 2.0 下大量等待请求

c# - Entity Framework 代码第一个子导航属性 null

.net - .NET 3.5多线程

C# TCP Async EndReceive() 仅在 Windows XP 32 位上抛出 InvalidOperationException

.net - .NET 的 HTML 解析库