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

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

    It happened to me when i was trying to add test project with the same main project name.

    My main project name was : Calculator.OperationsManager my test project name was : Calculator.OperationsManager

    i have changed the test project name as Calculator.OperationsManager.Test and everything went well.

提交回复
热议问题