在计算机上使用.NET 4.0 - 可以在一个测试的应用程序将运行在.NET 3.5?

问题描述:

我想从港口.NET 4.0的应用程序到.NET 3.5。然而,只是改变它在Visual Studio中是远远不够的,很多仍引用到.NET 4.0。 (请参阅here例如。)

I'm trying to port an application from .net 4.0 to .net 3.5. However, just changing it in Visual Studio is not enough, many references remain to .net 4.0. (See here for example.)

所以 - 有没有办法用我的电脑,以测试该应用程序将运行在计算机上用3.5而已,即使装好了我的电脑已经.NET 4

So - Is there a way to use my computer in order to test that this application will run on a computer with 3.5 only, even though my computer has .net 4 installed as well?

都能跟得上。

首先,这是不提供的MS。特点是向后兼容的。如果他们将是向前兼容,那么你就没有这个问题问,我们不会有进展。 = D

First of all this is not provided by MS. Features are backward-compatible. If they would be forward-compatible, then you wouldn't have this question asked and we wouldn't have progress. =D

没有落后的项目转换为好。

There is no backward project converter as well.

其次,对于一个很好的测试,你真的要清洁的环境,不区分有提及未安装的组件。

Secondly, for a good test, you really want clean environment, without case to have references to assemblies which are not installed.

您唯一的选择是要么其它PC或虚拟机。安装和使用的Windows XP 一个是pretty的曙光容易。直行吧。

Your only bet is either other PC or VM. Installing and using Windows XP one is pretty dawn easy. Go straight for it.