Lance's TextBox

About Me       - Also see my RSS simple services site.

  Home  |   Contact  |   Syndication    |   Login
  510 Posts | 7 Stories | 379 Comments | 258 Trackbacks

News

Lance Robinson is a product manager and software developer in Durham, Chapel Hill, Raleigh, and surrounding areas. More about Lance.

 Subscribe Add to Technorati Favorites

 

 

 

 


 

 

Search My Blog:

 

 

Twitter












Tag Cloud


Archives

Post Categories

Blogs

Miscellanous

Noteworthy Stuff

Popular Posts

I'm trying to run nunit tests of a 32-bit assembly on a 64-bit machine. When I load the assembly (compiled with VS target platform set to x86) into nunit, I get a FileNotFound exception. The problem is that nunit is running as 64-bit. I found this post by Matevz Gacnik pointing me in the right direction to get around this problem. Here is the fix:

You can use corflags to find out what settings the nunit assembly already has:

C:\> corflags "C:\Program Files (x86)\NUnit-Net-2.0 2.2.9\bin\nunit-console.exe"

Then you can add the 32BIT flag to force it to run as 32-bit:

C:\> corflags "C:\Program Files (x86)\NUnit-Net-2.0 2.2.9\bin\nunit-console.exe" /32BIT+

See also:
CorFlags Conversion Tool at MSDN,
Explanation of CLR, platform selection, and corflags.

Technorati : , , ,

posted on Thursday, December 28, 2006 9:57 AM

Feedback

# re: nunit testing 32-bit apps on 64-bit machine 4/14/2008 4:39 AM Andrey
Thank you, that solved my problem, I lost a day with NUnit.
The fix works for the UI (nunit.exe) as well.



# Likewise 6/15/2009 11:46 AM David Keaveny
Yup, I was getting the same problem too, and your workaround is now part of my automated build.

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: