Home > database >  No agent found in pool XXX which satisfies the following demand: visualstudio although vs2022 commun
No agent found in pool XXX which satisfies the following demand: visualstudio although vs2022 commun

Time:02-23

We have a build agent (a self hosted buildserver) which apparently satisfies msbuild, but not visualstudio so we tried to install vs.

I installed vs2022 community on the server and restarted.

Still those mails comes when a change is detected in the repository.

No agent found in pool XXX which satisfies the following demand: visualstudio. All demands: msbuild, visualstudio, Agent.Version -gtVersion 2.192.0

Is community not an option?

CodePudding user response:

Azure DevOps Server 2020 and below only officially supports Visual Studio 2019 and below for the tasks and the agent version it ships with. The latest agent version for Azure DevOps (Service) has the right updated scripts in the Capability Providers.

In case this is on an Azure DevOps Server and want to use Visual Studio 2022 / .NET 6, you need to:

  1. Set a magic environment variable to be able to run a more recent agent version:

    AZP_AGENT_DOWNGRADE_DISABLED=true 
    
  2. enter image description here

  • Related