使用 Visual Studio 构建 TFS 2015 XAML [英] TFS 2015 XAML Builds with Visual Studio

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

问题描述

我们很快将在构建服务器上升级到 Visual Studio 2017,但我仍将使用 TFS 2015 XAML 构建进行持续集成.

We will be upgrading to Visual Studio 2017 on our build server shortly, but I will still be using TFS 2015 XAML builds for our continuous integration.

我曾在另一个帖子中被告知(https://social.msdn.microsoft.com/Forums/en-US/de9449dd-25ee-4170-8937-62552a2f0dd1/tfs-2017-upgrade-and-preexisting-xaml-builds?forum=tfsgeneral),此后已存档,该组合仍然是可能的.我只需要在 XAML 构建定义中传递一个构建标志/p:visualstudioversion:15.0.那时,我们打算将 Visual Studio 2015 和 2017 安装在同一构建服务器上,因此需要标记,但此后我改变了主意,将仅使用 VS 2017 创建一个新服务器.

I was told at one point in another thread (https://social.msdn.microsoft.com/Forums/en-US/de9449dd-25ee-4170-8937-62552a2f0dd1/tfs-2017-upgrade-and-preexisting-xaml-builds?forum=tfsgeneral), which has since been archived that this combination is still possible. I just have to pass a build flag, /p:visualstudioversion:15.0, in the XAML Build Definition. At that time, we were going to have Visual Studio 2015 and 2017 installed on the same build server, hence the need for the flag, but I have since changed my mind and will be creating a new server solely using VS 2017.

所以,我的问题是,在这个新盒子上,使用 TFS 2015 XAML 并安装了 Visual Studio 2017,我是否仍然需要使用这个 VS 版本 MSBuild 标志来告诉构建使用哪个版本或不需要哪个版本机器上会不会没有其他版本的VS?

So, my question is, on this new box, with TFS 2015 XAML used and Visual Studio 2017 installed do I still have to use this VS version MSBuild flag to tell the build which version to use or is that not needed as there will be no other version of VS on the machine?

非常感谢您提供任何信息!

Any information is GREATLY appreciated!

提前致谢.

推荐答案

基本上 TFS 和 VS 应该匹配版本,默认情况下 TFS 会尝试找到匹配的 MSbuild/visual studio 版本.

Basically the TFS and VS should match the version, by default TFS will try to find the matching version of MSbuild/visual studio.

这意味着如果您安装了 TFS 2015,默认情况下它会尝试使用 VS 2015.

That means if you installed TFS 2015, by default it will try to use VS 2015.

所以如果你想使用VS 2017,你仍然需要特定的MSBuild命令行参数:/tv:15.0/p:VisualStudioVersion=15.0

So if you want to use VS 2017, you still need to specific MSBuild Command Line parameters: /tv:15.0 /p:VisualStudioVersion=15.0

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

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