Possible to mix VS 2019 build with TFS 2017 on Build Agent?

坚强是说给别人听的谎言 提交于 2019-12-24 12:35:06

问题


We want to migrate from VS 2017 to VS 2019. We are still on TFS 2017 and want to stay there for now.

I set up the build infrastructure a long time ago, so I am not certain anymore what the role of VS on the build agent is.. I certainly sometimes use it to manually open a solution that does not compile for unclear reasons, and I think it also was needed for some libraries.

I want the automated build process to use same VS as on developer machines, for consistency.

Can I uninstall VS 2017 and install VS 2019 on the build machine and the build will work using VS 2019? Or more generally: can I build using the VS 2019 build infrastructure on TFS 2017 build agent?

Thank you!


回答1:


Can I uninstall VS 2017 and install VS 2019 on the build machine and the build will work using VS 2019? Or more generally: can I build using the VS 2019 build infrastructure on TFS 2017 build agent?

The answer is yes, just like I said in that thread:

(I will answer this question again so that others can see the answer directly when they see this thread without having to redirect to that thread.):

Only the latest version has "full" compatibility with the latest Team Foundation Server

So, TFS 2017 have a high level of support for Visual Studio 2019 not full support. Since the product TFS2017 was launched earlier than Visual Studio 2019, TFS could not recognize the future products.

If we want to use the VS 2019 build infrastructure on TFS 2017 build agent, we have to specify the MSBuild path when using MSBuild task to build.

BTW, you could custom your MSBuild task with location of MSBuild 16.0 as task group, then you can use it instead of MSBuild task, you do not have to edit that task each time. But for those piplelines that are already in use, we have to modify our build definition.

Hope this helps.



来源:https://stackoverflow.com/questions/57051917/possible-to-mix-vs-2019-build-with-tfs-2017-on-build-agent

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