Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nunit debugs in 64-bit, application is in 32-bit

I'm one of those people who love the Edit and Continue in VS. Because of that I develop apps in 32-bit. But when I run a unit test in debug mode and I try to edit a line, I get the usual "Changes to 64-bit applications are not allowed." message. All my components are marked x86, nunit is installed as a 32-bit application. My system is 64-bit.
How can I force nunit to run as a 32-bit application?

like image 210
Paw Baltzersen Avatar asked Sep 14 '10 06:09

Paw Baltzersen


1 Answers

For Resharper 5, you can just set the Platform Target, of the assembly you are testing, to x86 (in the IDE's Properties for that project). The new Resharper 5 test runner apparently detects that and runs the tests as 32 bit. No need to mess with corflags.

like image 167
John Rusk Avatar answered Sep 24 '22 04:09

John Rusk