The test runner (JetBrains.ReSharper.TaskRunner.CLR4.MSIL.exe) failed to run a test that loads cli (managed cpp) assembly with a message
System.BadImageFormatException : Could not load file or assembly 'example.cli' or one of its dependencies. An attempt was made to load a program with an incorrect format.
The test does
var loaded = Assembly.Load( "example.cli" );
One of the reason could be an absence of dependencies but I'm sure it's not the case because
- The assembly can be loaded from another application from the same location
- nunit (2.6) loads and runs the test
- depends.exe resolves all references without errors and reflector loads the cli assembly with all its dependencies without problem also (fusion log is useless, does not say anything helpful)
Is this known issue (I cannot find any bugs/issues related to this)?
Could you confirm that this is the bug in ReSharper?
Could you suggest any workarould? (something in *.config, etc)