【问题标题】:VS2013, TFS 2012 AutomatedTest NUnit not working problemsVS2013,TFS 2012 AutomatedTest NUnit 不工作问题
【发布时间】:2015-01-19 02:24:17
【问题描述】:

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

TF900546:运行 RunTests 时出现意外错误 活动:'无法加载类型 'Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestExecutorLauncher2' 从程序集'Microsoft.VisualStudio.TestPlatform.ObjectModel, 版本=11.0.0.0,文化=中性,PublicKeyToken=b03f5f7f11d50a3a'.'。

【问题讨论】:

    标签: visual-studio-2013


    【解决方案1】:

    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 中找到

    【讨论】:

    • 我对 NUnit 和它的 testadapter 不是很熟悉,但我能找到的是,它应该能够与 VS2013 一起使用。因此,您的配置似乎出了点问题。您可以尝试重新安装 VS2013 的测试适配器,因此它应该使用 2013 dll。如果这不起作用,您能否提供有关已为 Visual Studio 安装的更新(更新 4 或其他)的更多信息?编辑:在测试适配器的 Nuget 包上,他们声明它与 NUnit 2.0 到 2.6.3 兼容。没有提到 2.6.4 版本:bit.ly/1ySizJ8
    • 我升级了 TFS 2013。我的问题已解决。
    猜你喜欢
    • 2014-12-28
    • 2017-02-20
    • 1970-01-01
    • 2013-02-26
    • 2014-06-06
    • 1970-01-01
    • 1970-01-01
    • 2012-07-01
    • 1970-01-01
    相关资源
    最近更新 更多