Will Visual Studio 2010 only run 4.0 unit tests?

Posted by Bjorn Bailleul on Stack Overflow See other posts from Stack Overflow or by Bjorn Bailleul
Published on 2010-04-13T08:13:40Z Indexed on 2010/04/13 9:43 UTC
Read the original article Hit count: 584

I have different projects written in .NET 3.5 and some unit test projects to cover them. When converting my solution to be used in Visual Studio 2010 I keep all my projects in 3.5 but the unit tests are forced to 4.0? This way I cannot use them with my regular projects anymore.

Resulting in this: Could not load file or assembly 'xxx.xxx.Core.UnitTest' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

So I can't unit test any project less then 4.0? Or am I doing something wrong here?

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio-2010