Shane Callanan
Shane Callanan

Reputation: 2305

TeamCity Visual Studio Build Runner Requirement

We're running TeamCity 9.0.3 and have had Visual Studio 2010, 2012 & 2013 full install on our build server for years now.

I know for a fact that we need certain Visual Studio targets in order to deploy our applications but I'm convinced we don't need to have a full Visual Studio installation in order to use the Visual Studio (sln) build runner but can't find any documentation to say whether or not we do need it.

Can anyone show me documentation or verify from their own experience whether or not a full Visual Studio install is needed for this build runner to work?


Edit: I have seen this question: Does MSbuild require Visual Studio to be installed on the build server?

And mine is not the same question, it's a different topic. That question is asking whether or not Visual Studio is needed to as a prerequisite for the MSBuild build runner. My question pertains to the Visual Studio build runner

Upvotes: 1

Views: 5782

Answers (3)

Ali Raza
Ali Raza

Reputation: 100

The Visual Studio (sln) build runner requires the proper version of Microsoft Visual Studio installed on the build agent.

Reference: https://confluence.jetbrains.com/pages/viewpage.action?pageId=74847254

Upvotes: 0

vishal vazkar
vishal vazkar

Reputation: 338

You don't need full Visual Studio Installed for running the build, all you need are the build tools.

In the "Step" you create to build your solution, the dropdown allows you to select which version of Microsoft builds you want to use where you can specify whether you use MSBuild12 or the latest MSBuild14 for VS2015 projects.

All you have to do is make sure that you install the required Microsoft Build tools in this instance: Build tools for 2010, 2012 and 2013. The TC build step should then try detecting this install by default in C:/Program Files (x86)/MS Build/Build Tool Number/MSBuild.exe

Note: You will have to restart your agent after you install these tools on the Agent Machine for TeamCity to detect the tools.

Upvotes: 1

Lex Li
Lex Li

Reputation: 63295

Roughly speaking, by installing Windows SDKs you get what's required to build applications.

Multi targeting packs are also required if you use that.

Starting from Visual Studio 2013, you also need to install the separate MSBuild 2013. And MSBuild 2015.

C++ might require you to install other bits.

So you will have to go through lots of trials. Most people simply give up and install full VS.

Upvotes: 1

Related Questions