TFS 2013 Build Service 连接到 TFS2012 服务器 [英] TFS 2013 Build Service connect to TFS2012 server

查看:32
本文介绍了TFS 2013 Build Service 连接到 TFS2012 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 TFS2012 Update 3 服务器.我们已经开始了新的 VS 2013 项目.我需要准备构建服务器和服务.我最初的想法是将 Vs 2013 与 TFS2013 构建服务一起安装.安装 TFS2013 并注册到 TF​​S 集合后,出现以下问题:

I have TFS2012 Update 3 server. We have started new VS 2013 project. I need to prepare build server and service. My initial thought is to install Vs 2013 together with TFS2013 build service. After installation TFS2013 and registration to TFS collection I got below issue:

Team Foundation Service [our_tfs_url] 不支持 register 命令,因为服务器不兼容.

The register command is not supported for Team Foundation Service [our_tfs_url] because the server is not compatible.

请就如何为存储在 TFS 2012 中的 VS 2013 项目创建构建的任何解决方案提出建议.

Please advice any solution how to create builds for VS 2013 projects that are stored in TFS 2012.

更新 1:

1) 我安装了 TFS 2012 构建服务并在构建模板中重定向 msbuild(工具路径)以使用 VS 2013 msbuild

1) I installed TFS 2012 build service and redirect msbuild ( toolpath) in build template to use VS 2013 msbuild

2) 我现在可以通过测试构建项目

2) I am able now to build project with a test

3) 代码覆盖率仍然存在问题,以警告结束:安装 Visual Studio.在我看来,CC 仍然使用 VS 2012.有什么方法可以将 CC 重定向到 VS 2013?

推荐答案

以下解决方案帮助我使用 TFS 2012 构建服务在 VS 2013 构建机器上构建并生成代码覆盖率.

Below solution helps me build on VS 2013 build machine with TFS 2012 build service and generate code coverage.

TFS 2012 构建服务从 11.0 位置运行测试,以替换文件夹中的 CommonExtensions

TFS 2012 buid service runs tests from 11.0 location, to replace CommonExtensions in folder

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions

使用来自 Vs 2013 的程序集

with Vs 2013 assemblies from

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions

解决这个问题,现在我可以看到每个构建的代码覆盖率.

fix that issue and now I can see code coverage per build.

感谢 MS 提供有关代码覆盖率问题的解决方法.

thanks MS to provide workaround on that issue with Code coverage.

这篇关于TFS 2013 Build Service 连接到 TFS2012 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆