<p>I have a few Visual Studio Solutions/Projects that are being worked on in my company, which now require a scheme for automatic nightly builds. Such a scheme needs to be able to check the latest versions from SVN, build the solutions, create the appropriate downloadable files (including installers, documentation, etc.), send e-mails to the developers upon errors and all sorts of other nifty things. What tool, or tool-set, should I use for this?</p>

<p>I used to use FinalBuilder a few years ago and I liked that a lot but I'm not sure if they support such features as nightly-builds and email messages.</p>

[{'answer_id': 37670, 'author': 'Liedman', 'author_id': 890, 'author_profile': 'https://Stackoverflow.com/users/890', 'pm_score': 1, 'selected': False, 'text': '<p>I\'ve recently started using CruiseControl.NET (<a href="http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET" rel="nofollow noreferrer">http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET</a>). It works reasonably well, although configuration could be easier. CruiseControl.NET is free and open source, and seems to integrate with most standard tools, although I\'ve personally only used it with CVS, SVN, NUnit and MSBuild.</p>\n'}, {'answer_id': 37675, 'author': 'crucible', 'author_id': 3717, 'author_profile': 'https://Stackoverflow.com/users/3717', 'pm_score': 5, 'selected': True, 'text': '<p>At my work we use CCNET, but with builds on check-in more than nightly - although it\'s easily configured for either or both.</p>\n\n<p>You can very easily set up unit testing to run on every checkin as well, FXCop testing, and a slew of other products.</p>\n\n<p>I would also advise checking out <a href="http://www.jetbrains.com/teamcity/" rel="nofollow noreferrer">Team City</a> as an option, because it has a free version, and the reporting and setup is reportedly much simpler (it does look nice to me). It does have a limit of somewhere around 20 team members/projects, before it hits a pay-for window.</p>\n\n<p>That said, we started with CCNET, and have grown several products too large to look at Team City on the free version and are very happy with what we have.</p>\n\n<p>Features that help with CCNET include:</p>\n\n<ul>\n<li>XML based configuration - you can usually copy and paste most of what you need. </li>\n<li>More or less you\'ll be able to plug your treesurgeon script in as your build script, and point CCNET at that as an executable task to run the compilation. </li>\n<li>Lots of documentation and very easy to set up nunit, ncover, fxcop, etc. </li>\n<li>Taskbar app that will let you know the status of your projects at any time, and it can also fire off an email or keep an RSS feed with the same information. </li>\n</ul>\n\n<p>But I\'d definitely go with running a CI build on every check-in - for the most part will run the unit tests before checking in, but let the CCNET server handle run any applications/assemblies that would have dependencies on the assembly we\'re checking in, and they get re-built, and re-tested on every checkin.</p>\n\n<p>Given that CCNET is free free and takes very little time to set up - I\'d highly recommend just going for it and seeing if it suits you, then expanding from there.</p>\n\n<p>(There\'s another thread here where I posted pretty much the same/with a few alterations - but some of the other comments may help too! <a href="https://stackoverflow.com/questions/36568/automated-builds#37204">Automated Builds</a>)</p>\n\n<p>Edit to add: You can easily set up your own deployment scheme for CCNET, and there are a tonne of blog posts out there to assist, and email notifications can really be set up fairly granularly, either on all successes, all failures, when it changes from success to fail, etc. There\'s also built in RSS, and you could even set up your own notifiers for other systems.</p>\n'}, {'answer_id': 37680, 'author': 'Lars Truijens', 'author_id': 1242, 'author_profile': 'https://Stackoverflow.com/users/1242', 'pm_score': 3, 'selected': False, 'text': '<p>FinalBuilder does support emailing and just executing FinalBuilder each night will give you nightly builds. You don\'t really need other software for that if you don\'t want to. </p>\n\n<p>You could also use CCNet to trigger a build when needed and have it execute FinalBuilder for the build. You can then decide if FinalBuilder or CCNet should email.</p>\n\n<p>Finally FinalBuilder has a Server version which is sorta like CCNet in that it is a continues integration tool using FinalBuilder. See <a href="http://www.finalbuilder.com/finalbuilder-server.aspx" rel="nofollow noreferrer">http://www.finalbuilder.com/finalbuilder-server.aspx</a></p>\n\n<p>Of course the biggest advantage of CCNet is that it is free and open source.</p>\n'}, {'answer_id': 38896, 'author': 'Kris Erickson', 'author_id': 3798, 'author_profile': 'https://Stackoverflow.com/users/3798', 'pm_score': 2, 'selected': False, 'text': '<p>Although it costs, I highly recommend <a href="http://www.kinook.com/VisBuildPro/" rel="nofollow noreferrer">Visual Build</a>.  It works with MSBuild, and old tools like Visual Basic.  It is scriptable, and can do everything from making installers to simple Continuous Integration.</p>\n'}, {'answer_id': 66485, 'author': 'Dusty Campbell', 'author_id': 2174, 'author_profile': 'https://Stackoverflow.com/users/2174', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://luntbuild.javaforge.com/" rel="nofollow noreferrer">Luntbuild</a></p>\n\n<p>Supports a wide variety of source control and build systems.  Very customizable.  Open Source.  Setup takes some time, but it\'s not too horrible.</p>\n'}, {'answer_id': 98100, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://www.conifersystems.com/cascade/" rel="nofollow noreferrer">Cascade</a> supports doing a build on every single change committed to the repository.</p>\n\n<p>I would not recommend doing only nightly builds -- that\'s a pretty long window where a build break can slip in before it\'s reported.</p>\n'}, {'answer_id': 225902, 'author': 'Julien Nephtali', 'author_id': 5060, 'author_profile': 'https://Stackoverflow.com/users/5060', 'pm_score': 2, 'selected': False, 'text': '<p>We just started using <a href="http://hudson-ci.org/" rel="nofollow noreferrer">Hudson</a> here at the office.<br/><br/>\nIts free and open-source, it has a very user friendly UI. Plus there are tons of options and plugins available. <br/><br/>\nI was up and running in a matter of minutes after installing it. All the other devs here are loving it.<br/><br/>\nAll in all, its a very elegant solution for Continuous Integration or Nightly Builds.</p>\n'}, {'answer_id': 4193655, 'author': 'Adrien Haxaire', 'author_id': 480615, 'author_profile': 'https://Stackoverflow.com/users/480615', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://buildbot.net/trac" rel="nofollow">Buildbot</a> is open source and very powerful too. You should take a look at it.</p>\n'}]
['https://Stackoverflow.com/questions/37666', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3379/']