0
votes

I have a .net application and I am getting below error while running Visual studio task in CI pipeline.

##[error]No agent found in pool TEST APP which satisfies the following demand: visualstudio. All demands: msbuild, visualstudio, Agent.Version -gtVersion 2.115.0

Please let me know how to resolve this.

1

1 Answers

1
votes

Your pool does not contain build agents with Visual Studio. You can check your polls and agents on the administration page: Agent pools.

You have to install and register a build agent on a server or virtual machine with visual studio. Additionally, if your project on Azure DevOps Services, you can use MS Hosted build agents. Update your yaml to:

pool:
  vmImage: windows-latest

or if you use classic build, update here:

enter image description here