8

I have a C# project for which I need to automate the build and I am trying to choose between NAnt and MSBuild.

Which one should I use?

Which one has better functionality, including support for svn?

Thanks

gkrogers
  • 8,126
  • 3
  • 29
  • 36
nikky
  • 1,835
  • 3
  • 18
  • 19

3 Answers3

9

you should read this:

NAnt or MSBuild, which one to choose and when?

Community
  • 1
  • 1
MikeJ
  • 14,430
  • 21
  • 71
  • 87
3

Why not both? You should be able to start MSBuild from NAnt.

Otávio Décio
  • 73,752
  • 17
  • 161
  • 228
3

If you have TFS and use a more strict microsoft approach, then I would use MsBuild since it's naturally embedded in the building process.

If you are taking a more open source approach such as TeamCity, CruiseControl, then NAnt may be better.

J.W.
  • 17,991
  • 7
  • 43
  • 76
  • 1
    Just for info, TeamCity works happily with MSBuild -- we use this combination for our CI builds. – itowlson Apr 17 '09 at 02:32
  • 1
    I agree, and you can call NAnt and MsBuild from each other. I want to show there are "MS approaches" and "Open Source alternatives". – J.W. Apr 17 '09 at 02:54