0
votes

I have created a self host agent on my local machine.

I am getting error as below

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

2

2 Answers

0
votes

If your pipeline has demands that don't meet the capabilities of any of your agents, your pipeline won't start. From the error message, the tasks in your build definition require msbuild and visualstudio available on the build agent in order to queue a build, please install Visual Studio on your build agent, then restart the build agent. Restarting the build agent will capture the added capabilities.

0
votes

If you want to install Visual Studio on your Self Hosted Agent, then you can simply download & install Visual Studio Community Edition which is free for one developer.

This can be used for Self Hosted Agent.