Question

I have created unit tests based on Visual Studio Testing Framework.

But, somehow its reading the registry entries from WOW6432Node?

I have built the unit-tests framework with "Any CPU" platform.

And my operating system is 64 bit.

I am running Visual Studio 2010 as admin.

I have also tried changed build configuration to x64 and now the test cases failed to run (to test whether forcing it as x64 loads the correct registry entries my framework is looking for).

I am getting badimageformat exception.

the only thing i observed is - "warning CS1607: Assembly generation -- Referenced assembly 'mscorlib.dll' targets a different processor".

But other project which referenced "system.dll - mscorlib.dll" dont give this warning when they built with x64 conf.

Regards, Dreamer

Was it helpful?

Solution

Note that Visual Studio is a 32-bit process always.

Also Test Runner process is 32-bit process by default too. However this options is configurable.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top