Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure hosted agents - Visual Studio 2017

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?

like image 313
Calum Avatar asked Mar 11 '17 20:03

Calum


People also ask

How many types of hosted agents are there in Azure DevOps?

On the other hand, the bulk of the Azure DevOps code is built by 24-core server class machines running 4 self-hosted agents apiece.

What is the difference between self-hosted agents vs Microsoft agents?

Self-hosted agents :Self-hosted agents give you more control to install dependent software needed for your builds and deployments. Also, machine-level caches and configuration persist from run to run, which can boost speed. You can install the agent on Linux, macOS, Windows machines or Docker container.

Which of the following are available as Microsoft-Hosted agents?

Microsoft-hosted agents are only available with Azure DevOps Services, which is hosted in the cloud. You cannot use Microsoft-hosted agents or the Azure Pipelines agent pool with on-premises TFS or Azure DevOps Server. With these on-premises versions, you must use self-hosted agents.


1 Answers

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.

like image 52
Bruno Belmondo Avatar answered Sep 21 '22 17:09

Bruno Belmondo