简体   繁体   English

Visual Studio 2010可以测试.net 3.5 SP1项目吗?

[英]Can Visual Studio 2010 Test .net 3.5 SP1 Projects?

I have some projects in a solution that are running on .net 3.5 SP1 (and can never ever be updated to 4.0 as they are SharePoint projects). 我在.net 3.5 SP1上运行的解决方案中有一些项目(并且永远不会因为它们是SharePoint项目而更新到4.0)。

When I try to create a new Visual C# Test Project in VS2010 Premium, I have to choose .net 4.0 which is apparently intended . 当我尝试在VS2010 Premium中创建一个新的Visual C#测试项目时,我必须选择.net 4.0,这显然是有意的

Now I don't care about what my Unit Test project is (don't have to care about VS2008 users), but I do care if I can safely test 3.5 Projects in it due to the different CLRs and slight C# language differences? 现在我不关心我的单元测试项目是什么(不必关心VS2008用户),但是我是否因为不同的CLR和轻微的C#语言差异而能够安全地测试其中的3.5个项目?

Edit: Visual Studio 2010 SP1 finally adds support for .net 3.5 again. 编辑: Visual Studio 2010 SP1最终再次添加对.net 3.5的支持。

The code that you are testing can still be a .NET 3.5 project, so you don't need to worry about the C# language differences. 您正在测试的代码仍然可以是.NET 3.5项目,因此您无需担心C#语言的差异。

When you run your tests everything will be run in the CLR 4. Normally this shouldn't be an issue, however if there is an issue with SharePoint that prevents you from upgrading to .NET 4, the same issue might prevent you from running the code under CLR 4. 当您运行测试时,所有内容都将在CLR 4中运行。通常这不应该是一个问题,但是如果SharePoint存在阻止您升级到.NET 4的问题,同样的问题可能会阻止您运行CLR 4下的代码。

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

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