Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add Visual Studio 2017 to Team Foundation Server Build Agent?

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.

like image 838
vishgarg Avatar asked Apr 25 '17 12:04

vishgarg


People also ask

How do I add a TFS Server to Visual Studio 2017?

Visual Studio 2017 Choose the Connect to Team Project link to select a project to connect to. Connect to a Project shows the projects you can connect to, along with the repos in those projects. Select Add Server to connect to a project in Team Foundation Server. Enter the URL to your TFS server and select Add.

Is Team Foundation Server part of Visual Studio?

On September 10, 2018, Microsoft renamed Visual Studio Team Services (VSTS) to Azure DevOps Services. With Azure DevOps Server 2019, Microsoft is renaming Visual Studio Team Foundation Server to Azure DevOps Server.


1 Answers

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?

like image 126
PatrickLu-MSFT Avatar answered Oct 03 '22 03:10

PatrickLu-MSFT