Should I switch from nant to msbuild?

后端 未结 18 1753
粉色の甜心
粉色の甜心 2020-12-13 19:22

I currently use nant, ccnet (cruise control), svn, mbunit. I use msbuild to do my sln build just because it was simpler to shell out.

Are there any merits to switch

18条回答
  •  暖寄归人
    2020-12-13 19:25

    NAnt has been around longer, and is a considerably more mature product, and also IMO easier to use. There is a lot of community know-how out there to tap into, and it is also cross-platform, should you be interested in building apps that can run under Mono as well as .NET and Silverlight. Out of the box, it does a whole lot more than MSBuild does. Oh yes, and you can call MSBuild from NAnt (OK, from NAntContrib) :-)

    On the negative side, NAnt and its sister project NAntContrib do seem to have stagnated, with the most recent update being late 2007.

    The main advantages that I see of MSBuild is that it ships with the .NET Framework, so it's one less product to install; and there is more active development going on (albeit in places to catch up with the older NAnt).

    Personally, I find its syntax a little more difficult to pick up, but then I'm sure continued exposure to ti would make things easier.

    Conclusion? If you're working with existing NAnt scripts, stick with them, it's not worth the hassle of porting. If you're starting a new project, and you're feeling adventurous, then give MSBuild a go.

提交回复
热议问题