简体   繁体   中英

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).

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 .

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?

Edit: Visual Studio 2010 SP1 finally adds support for .net 3.5 again.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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