<p>I am using MSBuild to build my stuff. I want to use CruiseControl.net as by Build Server.</p>

<p>Now, CCNET refers nAnt a lot, but it looks as if ccnet can do most of the stuff nant could do through the project configuration and msbuild. Also, nAnt seems a bit unsupported, with a Beta release that is almost a year old now.</p>

<p>In short: I am actually quite happy with MSBuild (especially since it's the "official" compiler front end) and a bit uncomfortable with nAnt, but I do not want to judge prematurely.</p>

<p>What would be reasons to use nAnt over MSBuild? Especially with ccnet, which seems to overlap a bit with nant in terms of features (and adding the automated build related stuff)</p>

[{'answer_id': 1320, 'author': 'palehorse', 'author_id': 312, 'author_profile': 'https://Stackoverflow.com/users/312', 'pm_score': 3, 'selected': False, 'text': '<p>In my opinion it is more a question of personal preference.  nAnt is a great framework and MSBuild is almost as capable.  With the ability to easily develop custom tasks (in both frameworks) you can accomplish almost anything that you need to do.</p>\n\n<p>I cannot answer the "still supported" portion of your questions, but I would say if you are already comfortable with nAnt then it\'s probably viable.  If you (or someone in your group) is familiar with MSBuild then that is a fine way to go as well.</p>\n'}, {'answer_id': 1347, 'author': 'Nick Berardi', 'author_id': 17, 'author_profile': 'https://Stackoverflow.com/users/17', 'pm_score': 1, 'selected': False, 'text': '<p>Honestly it depends on what fits in to your environment better.  If you are using a lot of Non-Microsoft tools, nunit, ccnet, ncover.  You will probably find better support with nant.  Alternatively if you are using MSTest, TFSBuild, you will probably find MSBuild a better environment.  I would learn both and use which every fits more smoothly with your environment.</p>\n'}, {'answer_id': 1364, 'author': 'Greg Hurlman', 'author_id': 35, 'author_profile': 'https://Stackoverflow.com/users/35', 'pm_score': 2, 'selected': False, 'text': '<p>If you\'ve already got a bunch of custom tasks you use with nAnt, stick with it - you don\'t gain much with MSBuild.  That said, there doesn\'t seem to be anything that nAnt can do that MSBuild can\'t at its core.  Both can call external tools, both can run .Net-based custom tasks, and both have a bunch of community tasks out there.</p>\n\n<p>We\'re using MSBuild here for the same reason you are - it\'s the default build system for VS now, and we didn\'t have any nAnt-specific stuff to worry about.</p>\n\n<p>The <a href="http://msbuildtasks.tigris.org/" rel="nofollow noreferrer">MSBuildCommunityTasks</a> are a good third-party task base to start with, and covers most of the custom stuff I ever did in nAnt, including VSS and Subversion support.</p>\n'}, {'answer_id': 1673, 'author': 'Brad Tutterow', 'author_id': 308, 'author_profile': 'https://Stackoverflow.com/users/308', 'pm_score': 5, 'selected': True, 'text': '<p>If you are quite happy with MSBuild, then I would stick with MSBuild.  This may be one of those cases where the tool you learn first is the one you will prefer.  I started with NAnt and can\'t quite get used to MSBuild.  I\'m sure they will both be around for quite some time.</p>\n\n<p>There are some fundamental differences between the two, probably best highlighted by <a href="http://forums.msdn.microsoft.com/en-US/msbuild/thread/994761a3-ea9d-40c7-8d4f-4c208b2023f6/" rel="noreferrer">this conversation between some NAnt fans and a Microsoftie</a>.</p>\n\n<p>Interestingly, <a href="http://codebetter.com/blogs/jeremy.miller/default.aspx" rel="noreferrer">Jeremy Miller</a> asked the exact opposite question <a href="http://codebetter.com/blogs/jeremy.miller/archive/2007/09/20/is-there-a-good-reason-to-switch-to-msbuild.aspx" rel="noreferrer">on his blog</a> last year.  </p>\n'}, {'answer_id': 33952, 'author': 'Scott Dorman', 'author_id': 1559, 'author_profile': 'https://Stackoverflow.com/users/1559', 'pm_score': 2, 'selected': False, 'text': "<p>CC.NET is simply the build server technology, not the build script technology. We use CC.NET at work to very successfully call MSBuild build scripts with no problems.</p>\n\n<p>NAnt is an older and more mature build scripting language, but they are both similar in how they work. There are very few things I could do in NAnt that I can't also do in MSBuild, so it really comes down to which one you are more comfortable with. As far as how active NAnt is, don't go by when the last release was...instead go by when the last nightly build was. NAnt tends to go a long time between releases, but the nightly builds are usually pretty stable.</p>\n"}, {'answer_id': 44754, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>Like what so many people have already indicated, the answer here is "it depends". There are some things like <em>repeating operations</em> that are much simpler and cleaner in NAnt. See <a href="http://forums.msdn.microsoft.com/en-US/msbuild/thread/417329cb-a6f6-45dd-9a56-98bb4aee74f9" rel="nofollow noreferrer">the MSDN forums</a> for a discussion about this.</p>\n'}, {'answer_id': 148770, 'author': 'Rob Hunter', 'author_id': 1145, 'author_profile': 'https://Stackoverflow.com/users/1145', 'pm_score': 0, 'selected': False, 'text': '<p>I find that you can also use a hybrid approach too, especially in larger projects.  A lot of our nant scripts are being converted to msbuild when new components are developed.  Both support the same major features and can call each other if you find a task that is natively supported in one but not the other.</p>\n\n<p>For new .NET development starting with MSBuild can save you a lot of time since it can run the solution files directly.  Extending from the main compilation to perform other tasks (source control, deployment, etc) works quite well.</p>\n'}]
['https://Stackoverflow.com/questions/1300', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/91/']