TFS 2015 Visual Studio 构建任务不支持 VS 2017 [英] TFS 2015 visual studio build task does not support VS 2017

查看:40
本文介绍了TFS 2015 Visual Studio 构建任务不支持 VS 2017的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在 TFS 2015 中有一个构建定义,可以很好地与 Visual Studio 2015 项目和解决方案配合使用.我们现在决定升级到 Visual Studio 2017,因此我们希望在 Visual Studio 构建任务中以 Visual Studio 2017 为目标.我们已经在构建代理上安装了 Visual Studio 2017.不幸的是,Visual Studio 构建任务中唯一可用的选项是 2012、2013、2015 和最新版本.我们尝试了最新版本,但在构建代理上没有找到 Visual Studio 2017.它也不适用于 msbuild 任务.

We have a build definition in TFS 2015 that have worked fine with Visual Studio 2015 projects and solutions. We have now decided to upgrade to Visual Studio 2017 and thus we would like to target Visual Studio 2017 in the Visual Studio build task. We have installed Visual Studio 2017 on the build agent. Unfortunately the only options available int the Visual Studio build task are 2012, 2013, 2015 and Latest. We have tried latest but it does not find Visual Studio 2017 on the build agent. It won't work with the msbuild task either.

推荐答案

我有一个类似的问题,通过在我的构建代理服务器中安装 VS2017 并将 MSBuild 配置为指向我的 MSBuild 15.0 文件夹来解决:

I have a similiar issue and resolved by installing VS2017 in my build agent server and configuring MSBuild to point to my MSBuild 15.0 folder:

  1. 将 MSBuild 添加到您的构建步骤
  2. 在高级选项中,展开并填充Path to MSBuild",如下图所示:

  1. Add MSBuild to your build steps
  2. On the Advanced options, expand and fill the 'Path to MSBuild' like the image below:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin

这篇关于TFS 2015 Visual Studio 构建任务不支持 VS 2017的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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