MSTest exception: Unit Test Adapter threw exception: Type is not resolved for member
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In my project I write tests using Microsoft's unit testing framework. All of my tests pass when I run them from Visual Studio but when I run the tests from MSBuild all of the tests fail with the following erorr message: Unit Test Adapter threw exception: Type is not resolved for member SomeType , SomeAssembly Version= assemblyVersion , Culture=neutral, PublicKeyToken=.. The assembly not found is a 3rd party assembly referenced by all of the projects. The build script is used by TFS so I've aded the following lines: <RunTest>true</RunTest>