Azure hosted agents - Visual Studio 2017

為{幸葍}努か 提交于 2019-12-21 04:34:19

问题


I set up a hosted agent in Azure to do a CI build but I'm getting the following warning during the Visual Studio build step before the build fails:

"Visual Studio version '15.0' not found. Looking for the latest version."

Looking at the documentation for hosted agents it looks like they're not deployed with Visual Studio 2017:

https://www.visualstudio.com/en-gb/docs/build/concepts/agents/hosted

Does anyone know when the hosted agents will be deployed with Visual Studio 2017 or when this will be likely?


回答1:


When selecting your agent queue, you can now select the "Hosted VS2017".

You may need to adapt your build pipeline. For instance I had to remove the Nuget Restore step I had and just ticked the "restore nuget package" in the build step. The standard Restore Nuget step was trying to use MsBuild 14 which is not available on VS2017 agents.



来源:https://stackoverflow.com/questions/42740312/azure-hosted-agents-visual-studio-2017

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