How to change ReSharper unit test architecture to x64?

后端 未结 7 1411
温柔的废话
温柔的废话 2021-02-08 22:21

In VS2012, I resolved a BadImageException from running a unit test by going to: TEST-> TEST SETTINGS -> DEFAULT PROCESSOR ARCHITECTURE -> x64.

This works in the built in

7条回答
  •  执念已碎
    2021-02-08 22:48

    I just ran into this with ReSharper and MsTests - error "unit test runner failed to run tests incompatible target platform".

    Our issue was that the test project wasn't being built.

    To fix:

    1. Build

    2. Configuration Manager

    3. Confirm that Build is ticked.

    Switch between your Solution Configurations to confirm it's being built in all configurations.

提交回复
热议问题