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

前端 未结 13 1491
你的背包
你的背包 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:26

    Happened to me too. It is related to building for x64, Release and x86 mode. In my case, I deleted folders in my bin (debug/release/x86 in reference assemblies and unit test) and re-run my unit test. VS2010 somewhat reported the error in Output Window. That solved it for me.

提交回复
热议问题