I am trying to Unit-Test a 64 Bit C++/CLI-Project and therefore have a Unit-Test-Project. With 32-Bit Settings everything works fine, but when switching to 64 Bit I get an exception:
Class Initialization method MyTestProject.MyTest.MyClassInitialize threw exception. System.BadImageFormatException:
Tried setting the test project to Any CPU and x64, same result. Found this link: http://msdn.microsoft.com/en-us/library/ee782531%28v=vs.100%29.aspx where it is described to set the unit test running as 64 bit process.
I don't see this settings and think this is because I don't have the Ultimate Version. I only have Professional.
Any ideas?
Thanks in advance, Joerg
Edit: Sorry, was working with VS2008 and therefore this question was stupid. Please see link in my answer...