TFS 2015 XAML Builds with Visual Studio

巧了我就是萌 提交于 2019-12-13 03:35:11

问题


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.

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.

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!

Thanks in advance.


回答1:


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

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

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



来源:https://stackoverflow.com/questions/50681611/tfs-2015-xaml-builds-with-visual-studio

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!