I recently checked in my solution after adding some functionality. Besides that I refactored some unit tests but did not touch any of the unit test framework versions or what not.
After checking in to our TFS server the TFS server runs all the tests himself. After these tests succeeding however, I get this message:
Error: An exception occurred while invoking executor 'executor://mstestadapter/v2': Constructor on type 'Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Execution.UnitTestRunner' not found.
I've read online that it has to do with having different versions of your test framework on different projects in the same solution, but I only have one test project in my entire solution.
My test project only has this reference to a unit test framework
Microsoft.VisualStudio.QualityTools.UnitTestFramework
With runtime version: 2.0.50727 and version: 10.0.0.0
A colleague of mine fixed the issue by making sure all the test runners were using the same version.