Can Visual Studio 2010 Test.net 3.5 SP1 projects?

I have several projects in a solution that runs on .net 3.5 SP1 (and can never be upgraded to 4.0, as these are SharePoint projects).

When I try to create a new Visual C # Test project in VS2010 Premium, I need to select .net 4.0, which is apparently intended .

Now I don’t care what my Unit Test project is (I don’t need to take care of VS2008 users), but I don’t care if I can safely test 3.5 Projects in it because of different CLR and small C # language differences?

Edit: Visual Studio 2010 Service Pack 1 (SP1) finally adds .net 3.5 support again.

+3
source share
1 answer

The code you are testing can still be a .NET 3.5 project, so you don’t have to worry about C # language differences.

When you run the tests, everything will be run in CLR 4. Usually this should not be a problem, however, if there is a problem with SharePoint that prevents you from switching to .NET 4, this same problem may prevent you from running code under CLR 4.

+3
source

Source: https://habr.com/ru/post/1746890/


All Articles