Shadow-copy when running unit testing fixes BadImageException?

I'm running into an issue that shadow-copy when running unit testing "fixes" an BadImageException, but it also brings trouble when loading resources so I want to turn it off. It's an x64 managed wrapper which uses another unmanaged dll in most APIs. I've made sure that both dlls are copied to the working directory.

BTW, I'm using Resharper is 8.2.0.2160 with VS2012.

I've no clue that why disable shadow copy would cause the BadImageException, the app I run is working fine.

1 comment
Comment actions Permalink

Hi Jeffrey,
that's weird, shadow copying shouldn't have any effect on tests. Could you please share an example to investigate?

0

Please sign in to leave a comment.