Couldn't run tests after updating TestFramework in NuGet

梦想的初衷 提交于 2019-12-04 12:59:45
  • Exit Visual Studio.
  • Delete %temp%\VisualStudioTestExplorerExtensions
  • Restart Visual Studio and try again.
  • That's all it was.

I had the same problem while running tests in the build server.

I tried below things and it started working:

  • updated my projects to point to latest MSTest.TestAdapter and MSTest.TestFramework
  • cleared old versions of MSTest.TestAdapter and MSTest.TestFramework folders from build server under this paths

    C:\Users\.nuget\packages\MSTest.TestAdapter C:\Users\.nuget\packages\MSTest.TestFramework

  • I cleared the source files in the build once(not sure about this step but worth trying just in case)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!