No agent can be found with the following features: msbuild, visualstudio, vstest?

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

No agent can be found with the following features: msbuild, visualstudio, vstest

How can this be solved?

+44
tfs vsts-build tfs2015
Aug 05 '15 at 18:41
source share
5 answers

Install Visual Studio in your build agent, and then restart the build agent. Restarting the build agent will capture the added features.

+35
Aug 05 '15 at 18:54
source share

Note. . First of all, you can do all this with the community version and TFS Express 2015 on your own server (up to 5 users for free) - so don’t worry about the need to use the online version of VS or pay for VS Professional.




It is very easy to misinterpret the error message and go on a wild goose chase, trying to debug it.

Unfortunately, the message itself is simply poorly worded and that is the real problem.

Here is what such an error message really means:

"The agent cannot be found with the following capabilities: msbuild, visualstudio, vstest. In fact, I actually did not find any build agents configured for the selected build queue."

So, you think this does not apply to you because you just created the build agent?

Well, maybe you did it, but here, what probably happened:

  • You created a new pool (for no reason other than you thought you should)
  • Then you created a queue under this pool
  • You created a powershell script file to create both the agent and assumed that it was placed in the pool you created ....
  • But this is not so - it is placed in the default pool, which you do not even use ...

Yeah! So what happens when you create:

  • You select a queue from the drop-down menu
  • TFS tries to build by looking for a pool matching this queue, and it does not find any agents in ALL, so you get a silly useless error message with red gray.

When I finally realized what happened, I simply deleted my named pool + queue and simply returned to using the default pool.

Next time I will try to pay more attention to this post during powershell configuration:

Configure this agent, which is the agent pool? (the default pool name is 'Default')

You will need to create a queue under the pool, but then your agent should start working.

If you have a script with a specific ability that is not in your agent, you can check what your agent supports in the Features tab shown here. Of course msbuild, visualstudio and vstest here msbuild, visualstudio and vstest

enter image description here

+15
Nov 06 '16 at 3:58
source share

By default, when using the new build system in VSO, he does not select the hosted assembly option, namely, how I ended up on this post in Stack Overflow. If you are using the VSO build server here, what you need to do:

Create a hosted assembly by going to the General tab and changing the default queue to host. More about the limitations of this and how it works here: https://www.visualstudio.com/get-started/build/hosted-agent-pool

+7
Aug 13 '15 at 17:47
source share

I used the Xcode build list to build the xcode project. And the error message that I encountered in TFS 2015 was "There is no agent that could be found with the following features: xcode"

I registered OSX on the build build sheet .

At the "Registration Agent" stage, I named the build agent:

 >> Register Agent: Enter agent pool (press enter for default) > My-Xcode-Agent-Pool 

So, I had to select "My-Xcode-Agent-Pool" as the default queue in the build settings. Source: https://www.visualstudio.com/docs/build/agents/hosted-pool

0
Jun 17 '16 at 11:53 on
source share

General solution for TFS:

A common way to solve most problems on the build server is to install Visual Studio and all dependent packages on the build server.

Alternative solution when using VSTS

When you choose where to build, use "Hosted" and then the assembly will work.

A guide to his work can be found here: https://www.visualstudio.com/en-us/docs/build/actions/agents/v1-windows

Check the agent section for feature information.

-one
Oct 10 '16 at 9:00
source share



All Articles