TFS 2015:No agent could be found with the following capabilities: msbuild, visualstudio, vstest

两盒软妹~` 提交于 2019-12-01 04:15:45

问题


We have recently upgraded to TFS 2015 Update 4. When I tried to do a build, I am getting the following error:

There are issues with the request or definition that may prevent the build from running:No agent could be found with the following capabilities: msbuild, visualstudio, vstest Queue the build anyway?

I tried the workaround mentioned in this link, but still couldn't figure out.

I have installed VS 2017 Enterprise in the Build Machine. Note, that since this is a POC I have installed Build Agent on the TFS Server itself. Should anything extra be need to be installed? Please help.

TIA


回答1:


You could double check if you are missing some capabilities such as VSTEST_15.0 for the build agent.

Settings- Agent Queues- Agent Pool - Agent- Capabilities

If the test related capabilities are missing, you could try to reregister the build agent. Or manually add the capabilitie by select +.




回答2:


Recently I had the same issue: installed VS2017, configured build agent, visualstudio and msbuild capabilities missing.

Try installing VS2015 next to VS2017. Re-configure the build agent after this (in my case, I completely removed all the old _diag, _work and settings.json data as well). This fixed the issue for me, the missing capabilities were now recognized.




回答3:


I was getting the same error out of the blue and it was running fine the previous week. Restarting the build agent service resolved the error for me



来源:https://stackoverflow.com/questions/43605989/tfs-2015no-agent-could-be-found-with-the-following-capabilities-msbuild-visua

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!