8

I've never used an automated build system - to be honest, I've never had a use for it since I work as a solo developer (not by choice) and do development only on my workstation, so using the Build menu in Visual Studio has been good enough for me.

I'm trying to learn more good software engineering practices, and continuous integration is one of them. However, I know that I need to use an automated build script to set up a CI environment, but I've never used one and don't know where to begin.

I've heard that NAnt is the really good one (although MSBuild is similar?) that most professional developers use. What are some good resources to properly learn how to use NAnt?

Wayne Molina
  • 19,158
  • 26
  • 98
  • 163
  • Are you sure you need to use NAnt? As you are building from within visual studio your project files are already MSBuild files and would be a quicker way of getting up and running with your stated goal: to start using CI. – Jack Ryan Jan 13 '09 at 15:50
  • True, but NAnt seems like it's more widely used than MSBuild, so it might be a useful thing to pick up for the future. – Wayne Molina Jan 14 '09 at 01:49

3 Answers3

5

The best place to start learning is to just dig in on a small project and refer back to the NAnt User Manual.

Outside of doing that, here are a few places I've found helpful in the past:

Scott Saad
  • 17,962
  • 11
  • 63
  • 84
  • The [*NAnt User Manual*](http://nant.sourceforge.net/release/latest/help/) seems to be broken. Is NAnt still alive? – Wolf Jul 13 '16 at 08:31
4

We are putting together a few good screen casts on Nant over at http://dimecasts.net/Casts/ByTag/NAnt

Derik Whittaker
  • 832
  • 1
  • 7
  • 10
3

A resource that helped me, was looking at some actual projects that others have created. Pick some projects that use .NET and NAnt, download source, and look at their build files and how they organize them. This might shed some light on why you would want to use certain things and some tips and tricks.

Example projects that were useful for me to look at their NAnt build procedures:

  • NAnt, they have NAnt files to build the whole thing, who else would it be best to learn from?
  • NUnit
  • SharpZipLib
earlNameless
  • 2,878
  • 20
  • 25
  • Just like a picture is worth 1000 words, so is an example. – Kevin Kibler Feb 23 '09 at 00:58
  • Where Can I find NUnit? The NUnit-Link on the NAnt's [System Requirements](http://nant.sourceforge.net/release/latest/help/introduction/fog0000000006.html) page is broken. – Wolf Jul 13 '16 at 08:34