8
votes

I've installed Visual Studio 2017 on my server to build projects. The server is running team foundation server 2015 Update 3. The TFS 2015 shows the option as Latest in Visual Studio Version but when I build the project then it don't build and says agent don't have capabilities visualstudio, vstest, msbuild. I'm trying to manually add capabilities but it don't work and says Visual studio not found.

1
Not sure what you are asking here. You need a build agent to do a TFS build not visual studio - Ken Tucker
@KenTucker I've installed the build agent and it is running. I want to build a project which requires Visual Studio as Build Agent capability. How can I build that project without Visual Studio capability because whenever I try to build the project, it asks for Visual Studio capability. - vishgarg
I am finding that TFS build agent v2.112.0 is not recognizing VS2017 at all in terms of capabilities. - Matthew Sharpe
@MattSharpe You are right. I've managed to add VS2017 in TFS but not able to run it correctly. Any thing fails on some point. It is not running correctly - vishgarg
I found a new version of the agent which appears to be capable of detecting VS2017. - Matthew Sharpe

1 Answers

3
votes

If your build agent is not installed on the same machine with your TFS server(which VS2017 installed). Give a try with install Visual Studio on your build agent, then reregister the build agent with TFS.

If your build agent and TFS server, VS2017 are on the same machine, but the VS is installed after the build agent configured. Then reregister the build agent with TFS, since the system capabilities are only discovered when the agent is first configured -- any changes made after that are not captured.

More ways please refer this similar question: No agent could be found with the following capabilities: msbuild, visualstudio, vstest?