Cant run unit tests via Resharper on 64bit XP and VS 2005

When I try and run any unit test via Resharper I get a BadImageFormatException thrown when it tried to load the assembly getting tested. I have TestDriven.Net installed and it works just fine, but I really like Resharper's Unit Test UI so I'd like to use it.

I'm running 64 bit XP, VS 2005. And my assemblies are compiling for x86 (because i have to)

Any Ideas?

2 comments
Comment actions Permalink

"john" <no_reply@jetbrains.com> schrieb

When I try and run any unit test via Resharper I get a
BadImageFormatException thrown when it tried to load the assembly getting
tested. I have TestDriven.Net installed and it works just fine, but I
really like Resharper's Unit Test UI so I'd like to use it.

>

I'm running 64 bit XP, VS 2005. And my assemblies are compiling for x86
(because i have to)

>

Any Ideas?


Just must target the test assemblies for x86 and not Any CPU. Only the test
assemblies, not the assemblies you would like to test.

--
Regards

Albert Weinert
MVP Visual Developer ASP.NET

http://www.afterlaunch.de
Die Konferenz zu Visual Studio 2008,
Windows Server 2008 und SQL Server 2008
am 11.04.2008

0
Comment actions Permalink

Thats the problem. I cant test under x64 because I need to compile for x86 (I dont have Any CPU selected).

Basically, Resharper is not looking at the compile settings to figure out how it should run its test harness. Its just assuming that if the machine is x64, than I MUST want to compile my dlls as x64. But thats not true, and Resharper errors when I run my tests

0

Please sign in to leave a comment.