Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper 6.1 test runner throws BadImageFormatException

After upgrading Resharper to version 6.1, when I try to run my unit tests using the Resharper test runner I get a pop-up dialog that complains about the test assembly having a BadImageFormatException. How do I get Resharper to run my unit tests?

like image 778
Erik Schierboom Avatar asked Mar 05 '26 23:03

Erik Schierboom


1 Answers

The problem is that the Resharper test runner expects the test assembly to have the same image format as the test runner itself. The test runner is an x86 application, so this problem can occur when your test assembly is an x64 assembly. The solution is therefore simple: change your test assembly's project properties to build in x86 format. For more details, see this url: http://www.justjuzzy.com/2012/01/resharper-6-1-unit-test-runner-failed-to-load-test-assembly/

like image 134
Erik Schierboom Avatar answered Mar 08 '26 20:03

Erik Schierboom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!