VS 2015:TF900547:包含 Visual Studio 测试运行程序程序集的目录无效 ''
VS 2015: TF900547: The directory containing the assemblies for the Visual Studio Test Runner is not valid ''
我只在我的 TFS 2013 构建服务器上安装了 VS 2015,并收到以下错误:
TF900547: The directory containing the assemblies for the Visual Studio Test Runner is not valid ''.
其他网站说要安装 VS 2013,但是为什么我必须在构建服务器上安装 VS 2013 才能在安装了 VS 2015 后进行 运行 单元测试?
我的构建中有以下开关:
/p:VisualStudioVersion=14.0 /tv:14.0
(这不是一个重复的问题,因为我使用的是 TFS 2013 并且我正在尝试使用 Agile Test Runner 而不是 MS 测试)
检查案例的解决方案:
- 安装 VS 2015 或 Microsoft Build Tools 2015。
- 编辑构建以使用名为 TfvcTemplate.12.xaml 的构建过程模板。
- 将 MSBuild 参数设置为
/tv:14.0
。
但此设置仅适用于构建,不适用于测试。由于"Run VS Test Runner"activity无法设置工具版本或工具路径,安装VS 2013应该是摆脱这个错误的唯一方法。
我遇到了类似的问题 - 出现错误
TF900547: The directory containing the assemblies for the Visual Studio Test Runner is not valid 'D:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow'.
结果是,即使 Visual Studio 2015 安装在构建代理上,构建代理 运行 的用户没有 read/execute 权限文件夹。
我只在我的 TFS 2013 构建服务器上安装了 VS 2015,并收到以下错误:
TF900547: The directory containing the assemblies for the Visual Studio Test Runner is not valid ''.
其他网站说要安装 VS 2013,但是为什么我必须在构建服务器上安装 VS 2013 才能在安装了 VS 2015 后进行 运行 单元测试?
我的构建中有以下开关:
/p:VisualStudioVersion=14.0 /tv:14.0
(这不是一个重复的问题,因为我使用的是 TFS 2013 并且我正在尝试使用 Agile Test Runner 而不是 MS 测试)
检查
- 安装 VS 2015 或 Microsoft Build Tools 2015。
- 编辑构建以使用名为 TfvcTemplate.12.xaml 的构建过程模板。
- 将 MSBuild 参数设置为
/tv:14.0
。
但此设置仅适用于构建,不适用于测试。由于"Run VS Test Runner"activity无法设置工具版本或工具路径,安装VS 2013应该是摆脱这个错误的唯一方法。
我遇到了类似的问题 - 出现错误
TF900547: The directory containing the assemblies for the Visual Studio Test Runner is not valid 'D:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow'.
结果是,即使 Visual Studio 2015 安装在构建代理上,构建代理 运行 的用户没有 read/execute 权限文件夹。