I am currently using Resharper 7.1 C# Edition Build 188.8.131.52. I have a question about running unit tests built with the MSTest framework in Visual Studio 2012 installed on Windows 7 Professional 64-bit.
All of our test projects target Any CPU, though we have a runtime dependency on 64-bit unmanaged assemblies, specifically the 64-bit ODAC components.
When I run my unit tests with the Visual Studio test runner, I configure the Default Processor Architecture to X64 and my unit tests that depend on the 64-bit Oracle assemblies execute successfully because the VS test runner is running in a 64-bit process.
However, when I run those same unit tests with the Resharper 7.1 test runner, all the unit tests that reference the Oracle.DataAccess assembly (which depends on 64-bit unmanaged assemblies) throw the following exception:
System.BadImageFormatException: Could not load file or assembly 'Oracle.DataAccess, Version=184.108.40.206, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Obviously, Resharper does not detect that the test runner should run in a 64-bit process. Is there any way I can force Resharper to run in a 64-bit process, without changing the target platform to 64-bit?