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

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

    I had this error using NUnit 3 in VS 2013. I solved it by deleting the assembly reference in my test project for the assembly that contained the type that was not being found, and then re-added the reference.

提交回复
热议问题