What could be causing a System.TypeLoadException in a Visual Studio Unit Test?

前端 未结 13 1478
你的背包
你的背包 2020-12-05 17:43

I\'ve got a C# .NET class library MyClassLibrary that compiles fine. I\'m trying to create a unit test project for it (using Visual Studio Unit Testing Fram

13条回答
  •  不思量自难忘°
    2020-12-05 18:10

    The MyClassLibrary assembly was set to x86 mode in the configuration manager. Changing this to x64 fixed it. I really wish Visual Studio would detect this and report it as a less obscure error.

提交回复
热议问题