Test run failed to load cli assembly (ReSharper 7.1.2, VS 2010, x86)

Hi,

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)


Thanks,
Alexei

1 comment
Comment actions Permalink

Hello Alexei,

Could you please create and attach here a small sample solution, which will demonstrate this issue? This appears to be a bug in ReSharper, however we need a consistent repro case in order to fix this issue.

Thank you in advance!

0

Please sign in to leave a comment.