How to use Visual Studio 2017 with TFS Visual Studio Build Step

六月ゝ 毕业季﹏ 提交于 2019-11-29 12:35:27

问题


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.

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.

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.

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


回答1:


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




回答2:


In TFS 2015 the build steps and forward compatibility is only updated when TFS is updated. If you are using TFS 2015.3 already then you will need to move to TFS 2017 to use this out of the box.

The build step ultimately calls out to devenv.exe and the drop down changes the path. You can call out manually to VS 2017...



来源:https://stackoverflow.com/questions/42689384/how-to-use-visual-studio-2017-with-tfs-visual-studio-build-step

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