Reputation: 180954
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.
Upvotes: 3
Views: 844
Reputation: 16744
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.
Upvotes: 3