Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSBuild vs nant

Tags:

msbuild

nant

We were using nant for building our project (10+Class Lib) and a Web Site which was based on the ASP.NET 2.0. Recently we are in the process of moving towards the ASP.NET 3.5. I searched in the net and found that nant doesn't support 3.5.

I am also looking in to option of migrating MSBuild.

  1. Is the MS Build right candidate for this?
  2. I heard people saying that MSBuild is slow? is it True?
  3. With MS Build can I have a Single step build ? in nant all I will do is to call nant.ext and give a build file it will do a build and give me the output.
like image 993
Kusek Avatar asked Jun 29 '09 14:06

Kusek


People also ask

What is NAnt build?

NAnt is a build tool that builds . NET projects and solutions (based on the original Ant for Java). It is also an XML-based "scripting" language where you order "tasks" to do the build work, including the types of things you are talking about--and MUCH, MUCH more!

What is NAnt command?

If you use the -find option, NAnt will search for a build file in the parent directory, and so on, until the root of the file system has been reached. To make NAnt use another build file, use the command-line option -buildfile:file, where file is the build file you want to use.

Do you need MSBuild?

msbuild is used when you want to build your project from the command line. Whenever you see a continuous integration product that will automatically build your project, it will call msbuild to perform the actual build step. MSbuild does use csc, but it can also do other things.

What is MSBuild process?

MSBuild then works through the instructions in the project file. It builds each of the projects in the solution, using the project file for each project. It then calls out to other tools, like Web Deploy (MSDeploy.exe) and the VSDBCMD utility to deploy your web content and databases to the target environment.


3 Answers

NAnt can easily be made to support .NET 3.5 - we use it here. Rather than claim credit, check this blog post.

like image 96
David M Avatar answered Oct 15 '22 14:10

David M


Have a look at the Nant Site .net Framework 3.5 is supported

like image 25
roundcrisis Avatar answered Oct 15 '22 14:10

roundcrisis


In MsBuild you can have a single step build. Nant can be used with .Net 3.5 but is always behind the times (.Net 4.0 is soon to be shipped). Nant .86 beta1 has issues with x64 Windows Server 2003 (You will need to use a nightly build). I have used both and prefer MsBuild. For more details check out an older blog post I wrote Nant vs MsBuild

like image 29
runxc1 Bret Ferrier Avatar answered Oct 15 '22 14:10

runxc1 Bret Ferrier