Using MSpec runner in Visual Studio 2010 and .NET 4
Posted
by spapaseit
on Stack Overflow
See other posts from Stack Overflow
or by spapaseit
Published on 2010-05-12T08:01:37Z
Indexed on
2010/05/12
8:04 UTC
Read the original article
Hit count: 296
Hi Everyone,
I'm a big fan of MSpec so naturally I wanted to use is right away with VS2010 as well. I have the MSpec runner defined as an external tool in Visual Studio to be able to have it always visible as a toolbar item.
Anyway, whenever I try to use the MSpec runner (mspec.exe) with a .NET 4.0 solution I get the following error:
Could not load file or assembly 'file:///C:\Users\[SOMEUSER]\[SOME_FOLDERS}\bin\Debug\[PROJECT].Specs.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
I can still run my specs with the Resharper 5 runner so it's no big drama, but I bothers me to no end :þ
Do you guys have any idea what the problem could be? Is there any solution other than recompiling the whole Mspec source code as a .NET 4.0 solution, which I really, really don't want to do?
Thanks in advance.
Sergi
© Stack Overflow or respective owner