VS2013、TFS 2012 AutomatedTest NUnit 无法正常工作的问题

VS2013, TFS 2012 AutomatedTest NUnit not working problems

我用的是VS2013。测试框架是NUnit 2.6.4,NUnitTestAdapter是1.2版本。我在本地使用 ReSharper,所有测试均成功。但是,这个例外。

TF900546: An unexpected error occurred while running the RunTests activity: 'Could not load type 'Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestExecutorLauncher2' from assembly 'Microsoft.VisualStudio.TestPlatform.ObjectModel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.'.

Visual studio 2013 dll 的版本号为 12.0,您正在加载 Microsoft.VisualStudio.TestPlatform.ObjectModel 版本 11.0.0。这是 VS2012 附带的版本。 此 dll 的 2013 版本可在文件夹 C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow

中找到