Couldn't run tests after updating TestFramewor

2020-07-22 04:45发布

An exception occurred while invoking executor 'executor://mstestadapter/v2': Constructor on type 'Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Execution.UnitTestRunner' not found.

2条回答
对你真心纯属浪费
2楼-- · 2020-07-22 05:17

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)

查看更多
手持菜刀,她持情操
3楼-- · 2020-07-22 05:23
  • Exit Visual Studio.
  • Delete %temp%\VisualStudioTestExplorerExtensions
  • Restart Visual Studio and try again.
  • That's all it was.
查看更多
登录 后发表回答