简体   繁体   English

在具有.net 4.0的计算机上-是否可以测试某个应用程序将在.net 3.5上运行?

[英]On a computer with .net 4.0 - Can one test that an application will run on .net 3.5?

I'm trying to port an application from .net 4.0 to .net 3.5. 我正在尝试将应用程序从.net 4.0移植到.net 3.5。 However, just changing it in Visual Studio is not enough, many references remain to .net 4.0. 但是,仅在Visual Studio中对其进行更改是不够的,许多引用仍然保留到.net 4.0。 (See here for example.) (例如,请参见此处 。)

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? 如此-是否有一种方法可以使用我的计算机来测试该应用程序仅在安装了3.5版的计算机上运行,​​即使我的计算机也安装了.net 4?

Nope. 不。

First of all this is not provided by MS. 首先,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 = 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. 其次,为了进行良好的测试,您确实想要一个干净的环境,没有引用未安装的程序集的情况。

Your only bet is either other PC or VM. 您唯一的选择是其他PC​​或VM。 Installing and using Windows XP one is pretty dawn easy. 安装和使用Windows XP相当容易。 Go straight for it. 直接去吧。

OK, Apologies. 好,抱歉 Now, I understand better. 现在,我了解得更多了。

You can simultaneously install multiple .net versions, enable/disable them in the control panel. 您可以同时安装多个.net版本,并在控制面板中启用/禁用它们。

See: MSDN reference 请参阅: MSDN参考

HTH 高温超导

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM