Failed to run tests after updating TestFramework in NuGet

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

+3


source to share


2 answers


  • Quit Visual Studio.
  • Remove% temp% \ VisualStudioTestExplorerExtensions
  • Restart Visual Studio and try again.
  • What was it.


+19


source


I had the same problem while running tests on a build server.

I tried something below and it started working:



  • updated my projects to point to the latest MSTest.TestAdapter and MSTest.TestFramework
  • removed old versions of MSTest.TestAdapter and MSTest.TestFramework folders from the build server along these paths

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

  • I deleted the original files in the build once (not sure about this step, but worth trying just in case)

0


source







All Articles