如何将 Visual Studio 2017 与 TFS Visual Studio 构建步骤一起使用

编程入门 行业动态 更新时间:2024-10-23 09:21:07
本文介绍了如何将 Visual Studio 2017 与 TFS Visual Studio 构建步骤一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在运行 TFS 2015 并且正在使用 Visual Studio 构建步骤.在开发机器上,我转而使用 Visual Studio 2017,因此我还想将 Visual Studio 2017 用于 TFS 构建.

I am running TFS 2015 and are using the Visual Studio Build Step. On the developemnt machines I moved to use Visual Studio 2017 so I also want to use Visual Studio 2017 for the TFS builds.

我在构建服务器上安装了 Visual Studio 2017 并重新启动了构建代理.但是,Visual Studio 2017 不会显示在代理的功能中,也不会显示在构建步骤中的 Visual Studio 版本列表中.

I installed Visual Studio 2017 on the build server and restarted the build agent. However Visual Studio 2017 does not show up in the capabilities of the agent and it also does not show in the list of Visual Studio versions in the build step.

我知道我可以在构建步骤中从 Visual Studio 版本列表中选择最新",但这仍将使用 VS 2015,因为代理不知道它有 VS 2017.

I know I can choose "latest" from the list of Visual Studio version in the build step, but this will still use VS 2015 as the agent does not know that it has VS 2017.

如何确保 TFS2015 中的 Visual Studio 构建步骤使用 Visual Studio 2017?

How can I make sure that the Visual Studio Build Step in TFS2015 uses Visual Studio 2017?

推荐答案

可以使用MSBuild task代替Visual Studio Build Step,然后指定MSBuild 15.0的位置:

You can use MSBuild task instead of Visual Studio Build Step, then specify the location of MSBuild 15.0:

更多推荐

如何将 Visual Studio 2017 与 TFS Visual Studio 构建步骤一起使用

本文发布于:2023-11-14 04:38:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586238.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   步骤   Visual   Studio   TFS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!