问题描述
我们已将 TFS 安装从 2012 年升级到 2013 年.运行我们的构建时,如果启用单元测试,它们将失败并显示以下错误:
We have upgraded our TFS installation from 2012 to 2013. When running our builds they will fail with the following error if unit tests are enabled:
TF900547: The directory containing the assemblies for the Visual Studio Test Runner
is not valid ''
升级后构建过程模板或构建定义未更改.升级过程并没有改变它们.在哪里可以提供 Visual Studio Test Runner 的路径以及它在磁盘上的位置?
The build process template or build definitions has not been changed after the upgrade. The upgrade process did not change them. Where can I provide the path to the Visual Studio Test Runner and where is it located on disk?
我不知道Visual Studio Test Runner"是否是 2013 年的新选项,或者之前我们使用 TFS 2012 时是否也使用过此设置.
I do not know if "Visual Studio Test Runner" is a new option for 2013 or if this setting was also used before, when we were using TFS 2012.
我们在构建服务器上使用 Visual Studio Professional 2012.
We use Visual Studio Professional 2012 on the build server.
推荐答案
您有两个选择:
- 安装 Visual Studio 2013 或 Agents for Microsoft Visual Studio2013 如果您想继续使用 Visual Studio Test Runner.
- 切换到 MS Test 作为测试运行程序,并在 Build-Workflow 中更改工具版本.这将允许您继续在构建服务器上使用 Visual Studio 2012.
- Install Visual Studio 2013 or the Agents for Microsoft Visual Studio 2013 if you want to continue to use the Visual Studio Test Runner.
- Switch to MS Test as the test runner and change the Tools Version in the Build-Workflow. This will allow you to continue using Visual Studio 2012 on the build server.
注意:让您SteveC发布链接至仅代理站点
Note: Tank you SteveC to post the link to the agents only site
这篇关于包含 Visual Studio 测试运行程序程序集的目录无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!