28

I know that some companies allow you to install their products on build machines as required without requiring a separate license (DevExpress is one that comes to mind). However I was wondering if Microsoft had the same allowances on licenses.

MSBuild does not support vdproj directly and require you to run Visual Studio from the command line to build the setup project. See here

I need to produce a setup file via an automated build; do I need to purchase an additional license for the build machine?

Edit: I have spoken to our admin in charge of licensing and he was happy for me to install VS2008 on the build machine without purchasing an additional license, believing that a license should not be required. If I here more official information I will update again.

Edit 2: I have heard that Microsoft will allow VS2008 to be installed on a build machine as long as the instance is not being used by a developer for active development.

benPearce
  • 37,735
  • 14
  • 62
  • 96
  • 3
    I'd produce the setup using WiX, which is free, open-source and works very well on a build server. – Lucero Apr 22 '09 at 23:22
  • @Lucero Does WiX offer a setup project's dynamic dependency bundling capability? – Shiv Aug 14 '15 at 00:21
  • @Shiv It's been a while I needed to do installers, so I can't tell you what the current WiX capabilities are exactly, but I'd expect that yes. Please check out the WiX docs or ask this as a specific question so that others can answer. – Lucero Aug 14 '15 at 10:37
  • 1
    @shiv not really. You can reference the project, but you still have to explicitly list the needed files. – BozoJoe Dec 01 '17 at 05:20

3 Answers3

23

Here is the agreement (PDF link!). (There are different ones for different versions of VS). So it depends on how you read ...

General. One user may install and use copies of the software to design, develop, test and demonstrate your programs. Testing does not include staging on a server in a production environment, such as loading content prior to production use.

To me that says you don't need an additional license because one user can install and use copies. But, I am not a lawyer. :)

JP Alioto
  • 44,864
  • 6
  • 88
  • 112
  • I tend to agree but it is suitably vague – benPearce Apr 22 '09 at 23:28
  • 3
    For reference, VS 2010 EULA includes this text: "If your version of the software contains a BUILDSERVER.TXT file you may install copies of the files listed in it, onto your build machines, solely for the purpose of compiling and building your programs. We may list additional files at http://go.microsoft.com/fwlink/?LinkId=165518 to use for this same purpose." My copy of Visual Studio is from MSDN and I don't see that file anywhere obvious. – David Gardiner Aug 18 '11 at 10:34
  • 12
    I contacted Microsoft directly about this issue. Here's what they said, from the chat session: "Pete: Can I install Visual Studio from one of those subscriptions on our software build server? Rachel: As a developer product, Visual Studio is licensed on a per-user basis. The licensed user can install the software on any number of devices. Pete: So that is "yes"? Rachel: Yes, it is, assuming that the one installing and using the software is one of the licensed users. Pete: That's definitely the case. Thank you so much." – Pete Magsig Jan 28 '13 at 21:38
  • 6
    Adding for Visual Studio 2013: http://www.microsoft.com/en-us/download/details.aspx?id=13350 makes the direct statement under "Using Visual Studio on the Build Server" that because it's per user, the build server copy of Visual Studio is covered at the edition level you own. – MikeBaz - MSFT Apr 24 '14 at 13:16
9

According to the VS 2015 Licensing White Paper, you do not need a separate VS license for your build server:

Using Visual Studio on the Build Server: If you have one or more licensed users of Visual Studio Enterprise with MSDN, Visual Studio Professional with MSDN, or any Visual Studio cloud subscription then you may also install the Visual Studio software as part of Team Foundation Server 2017 Build Services. This way, you do not need to purchase a Visual Studio license to cover the running of Visual Studio on the build server for each person whose actions initiate a build.

Update (May 26, 2017)

Microsoft has also now published the Visual Studio 2017 Licensing Whitepaper as well, which has the exact same requirements as noted above.

deadlydog
  • 22,611
  • 14
  • 112
  • 118
  • 11
    It says that for VS2017 to, how-ever, should we interpret this as only if the build server is using TFS? What about TeamCity, Jenkins....? – Daniel Apr 01 '17 at 20:12
  • Link to VS 2019 Licensing White Paper https://visualstudio.microsoft.com/wp-content/uploads/2019/06/Visual-Studio-Licensing-Whitepaper-May-2019.pdf – Bernard Vander Beken Aug 29 '19 at 09:50
1

msbuild.exe comes with .NET SDK, but just with the Framework. You can grab the 2.0 SDK here for free, but it's a big honking download. 3.5 is available as well, but it's even huger.

swilliams
  • 48,060
  • 27
  • 100
  • 130
  • 2
    Note that this changed with MSBuild 12. It is no longer included in the SDK - http://blogs.msdn.com/b/visualstudio/archive/2013/07/24/msbuild-is-now-part-of-visual-studio.aspx, but fortunately you can still download it separately as part of the Microsoft Build Tools 2013- http://www.microsoft.com/en-us/download/details.aspx?id=40760 – David Gardiner Nov 05 '14 at 23:33
  • 1
    (i know i am necromancing this) - but you need licence for Build Tools, so its not "for free" – Jan 'splite' K. Feb 20 '18 at 15:14