1

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

Community
  • 1
  • 1
ShaneC
  • 2,237
  • 2
  • 32
  • 53
  • The version of Visual Studio matters a lot so you should be more specific on which version you are referring to. – Lex Li Jul 30 '15 at 14:29
  • I've updated my question with the versions. I don't think it'll narrow anything down though, besides, the point of the question is to find out whether or any VS install is needed – ShaneC Jul 30 '15 at 14:34
  • possible duplicate of [MSbuild requires Visual studio installed on build server?](http://stackoverflow.com/questions/24483589/msbuild-requires-visual-studio-installed-on-build-server) – Lex Li Jul 31 '15 at 02:05
  • I've seen this question before I asked mine, it's a different topic. That question is asking whether or not VS is needed to as a prerequisite for the MSBuild build runner. Not the Visual Studio build runner – ShaneC Jul 31 '15 at 07:32

3 Answers3

1

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.

Lex Li
  • 60,503
  • 9
  • 116
  • 147
  • 1
    Good answer, I'm looking for definitive proof though. I've found plenty of conjecture around the subject but nothing from Microsoft or TeamCity to confirm this – ShaneC Jul 31 '15 at 07:33
1

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.

ShaneC
  • 2,237
  • 2
  • 32
  • 53
vishal vazkar
  • 340
  • 1
  • 2
  • 15
  • Great answer, it will take some time for me to verify this though. If our builds run as expected after uninstalling all VS instances and just having MSBuild installed then I'll mark this as the correct answer – ShaneC Aug 02 '15 at 23:21
  • 1
    I hope this helps. Here is a link for MSbuild tools 2013: http://www.microsoft.com/en-gb/download/details.aspx?id=40760 – vishal vazkar Aug 03 '15 at 02:39
0

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

Ali Raza
  • 90
  • 8