Error 'No agent could be found with the following capabilities: msbuild, visualstudio, vstest'

前端 未结 12 1303
面向向阳花
面向向阳花 2020-12-05 12:41

I\'m setting up a new build server using TFS 2015 and after I configured the agent, when I tried to queue a build I got this error:

No agent could be

相关标签:
12条回答
  • 2020-12-05 13:12

    What ended up working for me was to go to where I downloaded the agent and running:

    ./config.cmd remove then ./config.cmd to reinstall the agent from the command line inside the directory of my agent.

    Download agent

    0 讨论(0)
  • 2020-12-05 13:15

    Install Visual Studio on your build agent, then restart the build agent. Restarting the build agent will capture the added Capabilities.

    0 讨论(0)
  • 2020-12-05 13:17

    By default, when using the new build system on VSO, it doesn't pick the hosted build option, which is how I ended up on this post in Stack Overflow. If you are used to using a VSO build server here's what you need to do:

    Create a hosted build by going to the General tab and changing your Default Queue to hosted. More on the restrictions of that and how it works here: https://www.visualstudio.com/get-started/build/hosted-agent-pool

    0 讨论(0)
  • 2020-12-05 13:21

    Although none of previous answers worked for me, the post by Simon_Weaver pointed me in the right direction.

    He mentioned that vstest was in his list, but it wasn't in mine. I fixed it by adding a user-defined capability named "vstest" with the full path to vstest.console.exe under Visual Studio 2017.

    0 讨论(0)
  • 2020-12-05 13:24

    In my case, after installing MSBuild, restart all Azure services (in windows service) and it worked. No need to install full Visual Studio

    0 讨论(0)
  • 2020-12-05 13:25

    per microsoft https://msdn.microsoft.com/en-us/ie/bb399135(v=vs.94)

    You must install on the build agent the version of Visual Studio that your team uses on its dev machines. See Installing Visual Studio. You must also install any other software and components that are installed on your dev machines and that are required to build your app.

    0 讨论(0)
提交回复
热议问题