Azure托管代理-Visual Studio 2017 [英] Azure hosted agents - Visual Studio 2017

查看:139
本文介绍了Azure托管代理-Visual Studio 2017的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure中设置了一个托管代理来进行CI构建,但是在构建失败之前,在Visual Studio构建步骤中收到以下警告:

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版本'15 .0'。正在寻找最新版本。

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

查看托管代理的文档,好像它们没有与Visual Studio一起部署。 2017年:

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

有人知道何时托管

推荐答案

选择代理队列时,现在可以选择将代理与Visual Studio 2017一起部署? 托管的VS2017。

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

您可能需要调整构建管道。例如,我必须删除已经执行的Nuget Restore步骤,并在构建步骤中勾选 restore nuget package。标准的Res​​tore Nuget步骤是尝试使用VS2017代理上不提供的MsBuild 14。

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.

这篇关于Azure托管代理-Visual Studio 2017的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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