开发者

Does the .Net Framework 4.0 Installer include the .Net Framework 3.5?

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

Or in other words, does the .Net Framework 4.0 Inst开发者_如何转开发aller include the .Net Framework 3.5?


The .NET 4.0 installer doesn't include the .NET framework 3.5. There is some information on this topic in 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.

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.


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.

Does the .Net Framework 4.0 Installer include the .Net Framework 3.5?


On XP SP2 with FW 4 installed running FW3.5 application gives a message:

Unable to find a version of the runtime to run this application.

So the answer is no.


See: .NET Framework Versions and Dependencies

This gives a clear picture what is included in each version of .Net. Also,

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜