Questions tagged [nant]

NAnt is a build tool for .Net, aiming to support all the various versions of the .Net framework, including all versions of Microsoft .NET, Compact Framework and Silverlight, Mono and Moonlight. Additionally, there is a contribution project called NAntContrib, adding support for additional .Net tools (FxCop, NGen, GacUtil, Wsdl, XSD, MSBuild) and systems like PVCS, StarTeam, Visual SourceSafe, Surround SCM and Microsoft BizTalk.

NAnt is a build tool for .NET (GitHub), aiming to support all the various versions of the .NET framework, including all versions of Microsoft .NET, Compact Framework and Silverlight, Mono and Moonlight.

Additionally, there is a contribution project called NAntContrib, adding support for additional .NET tools (FxCop, NGen, GacUtil, WSDL, XSD, MSBuild) and systems like PVCS, StarTeam, Visual SourceSafe, Surround SCM and Microsoft BizTalk.

1044 questions
163
votes
14 answers

NAnt or MSBuild, which one to choose and when?

I am aware there are other NAnt and MSBuild related questions on Stack Overflow, but I could not find a direct comparison between the two and so here is the question. When should one choose NAnt over MSBuild? Which one is better for what? Is NAnt…
Yordan Pavlov
  • 5,126
  • 4
  • 25
  • 15
120
votes
4 answers

How do I use Nant/Ant naming patterns?

I have to admit that I always forgot the syntactical intracacies of the naming patterns for Nant (eg. those used in filesets). The double asterisk/single asterisk stuff seems to be very forgettable in my mind. Can someone provide a definitive guide…
berko
  • 2,935
  • 4
  • 26
  • 31
107
votes
4 answers

How do I resolve configuration errors with Nant 0.91?

After downloading Nant 0.91, I'm getting some rather cryptic configuration errors relating to configuration or security (see below). I'm trying to simply upgrade my Nant executables from 0.86 to 0.91. How can I resolve the issues below when…
Peter Bernier
  • 8,038
  • 6
  • 38
  • 53
67
votes
5 answers

How can I exclude a project from a build in MSBuild?

I need to build a solution, but exclude one project. How should I do it? I searched a lot about this issue, but nothing could help. An ItemGroup section rises the following exception: Invalid element . Unknown task or datatype. PropertyGroup also…
Andrew Lubochkn
  • 916
  • 2
  • 7
  • 16
59
votes
7 answers

Does MSbuild require Visual Studio to be installed on the build server?

Can we use MSBuild without Visual Studio 2012? Currently, we have a build server where we are compiling and creating deployment copy of one of our projects, it has Visual Studio Professional Edition installed. We are setting up a new build server…
user968441
  • 1,471
  • 9
  • 22
  • 48
55
votes
10 answers

Generating HTML documentation from WSDL

What are your approaches to generating some sort of human-readable documentation from WSDLs? In the past I've used WSDL viewer (by Tomi Vanek) and I'm happy with the results, but I'm interested in any possible alternatives. I've also heard of x3sp,…
Igor Brejc
  • 18,714
  • 13
  • 76
  • 95
48
votes
2 answers

How can I add log messages to an NUnit test that will appear in a nant build execution?

With NUnit, if you add Debug.Print statements in your tests they appear in the test output. (At least they do in the ReSharper unit test window.) When using a NAnt build file that executes the same tests, those Debug.Print statements do not…
The Evil Greebo
  • 7,013
  • 3
  • 28
  • 55
42
votes
14 answers

Best .NET build tool

Possible Duplicate: NAnt or MSBuild, which one to choose and when? What is the best build tool for .NET? I currently use NAnt but only because I have experience with Ant. Is MSBuild preferred?
alanl
  • 827
  • 1
  • 12
  • 16
36
votes
8 answers

Building .NET 4 projects with Nant

How do I get nant to build projects that target the .NET 4.0 Framework?
plaureano
  • 3,139
  • 6
  • 30
  • 29
31
votes
7 answers

Is nAnt still supported and suitable for .net 3.5/VS2008?

I am using MSBuild to build my stuff. I want to use CruiseControl.net as by Build Server. 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…
Michael Stum
  • 177,530
  • 117
  • 400
  • 535
28
votes
18 answers

Should I switch from nant to msbuild?

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 switching my whole build script to MSBuild? I need to be able to run tests, watir style…
DevelopingChris
  • 39,797
  • 30
  • 87
  • 118
24
votes
3 answers

How to use 'git pull' from the command line?

We were using a build script to automate our publishing process and it was working with SVN but now we are using Git and need to do some command line operations to pull from our remote repository. I was able to follow the guide here and using the…
CatDadCode
  • 58,507
  • 61
  • 212
  • 318
20
votes
4 answers

Is there a way to dynamically load a properties file in NAnt?

I want to load a different properties file based upon one variable. Basically, if doing a dev build use this properties file, if doing a test build use this other properties file, and if doing a production build use yet a third properties file.
WildJoe
  • 5,740
  • 3
  • 26
  • 30
20
votes
9 answers

Problems upgrading VB.Net 2008 project into VS2010

I have been upgrading several different VS2008 projects into VS2010 and have found a problem with VB.Net projects when they are converted. Once converted, the .vbproj files have changed from this in VS2008:
Brett Rigby
  • 6,101
  • 10
  • 46
  • 76
20
votes
6 answers

Advantages of using MSBuild or NAnt versus running DevEnv.exe from command-line

Can anyone explain what advantages there are to using a tool like MSBuild (or NAnt) to build a collection of projects versus running DevEnv.exe from the command-line? A colleague I had worked with in the past had explained that (at least with older…
afournier
  • 323
  • 2
  • 6
1
2 3
69 70