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
18
votes
8 answers

echo message with new line in nant

Does anyone know how to output a message using echo with a new line character, in the ant world i used ${line.seperator}, but i dont see any related property in Nant, nor any of the functions provided this info. I also tried the \n escape character…
Dinesh Manne
  • 1,824
  • 6
  • 25
  • 32
18
votes
3 answers

ASPNETCOMPILER : error ASPRUNTIME: Target Directory not empty

I have a web application that needs to be built using a nant script. All the projects in the solution build fine but for this error that crops up each time at the end of the build. I couldn't find much useful information on resolving this error. Has…
tsps
  • 1,200
  • 3
  • 13
  • 25
18
votes
3 answers

MSBuild 2010 - how to publish web app to a specific location (nant)?

I'm trying to get MSBuild 2010 to publish a web app to a specific location. I can get it to publish the deployment package to a particular path, but the deployment package then adds its own path that changes. For example: if I tell it to publish to…
Mr. Flibble
  • 26,564
  • 23
  • 69
  • 100
18
votes
2 answers

The 'SQLNCLI' provider is not registered on the local machine

I have a NAnt-based script which that I run on my local PC that connects to SQL Server 2008 Express also running on my local PC to drop and recreate databases using .sql files - this works fine, no problem here. The problem comes when I have…
Brett Rigby
  • 6,101
  • 10
  • 46
  • 76
18
votes
2 answers

Building .NET 4.5 Projects with Nant

I'm curious if it's possible to use Nant to target the .NET 4.5 using the C# 5.0 compiler. As of right now, the latest version only states support for .NET 4.0. I tried downloading the source and building the .sln with msbuild after installing the…
Joel Martinez
  • 46,929
  • 26
  • 130
  • 185
17
votes
5 answers

Nant failing with bad permissions on build server

Total newbie question. I am trying to run a Nant script on a build server (very basic script, not doing anything), and it's failing with the error System.Security.SecurityException: Request for the permission of type…
Aidan
  • 4,783
  • 5
  • 34
  • 58
17
votes
4 answers

Using MBUnit in TeamCity

I'm compiling a NAnt project on linux with TeamCity Continuous Integration server. I have been able to generate a test report by running NAnt on mono thru a Command Line Runner but don't have the options of using the report like a NAnt Runner. I'm…
Scott Cowan
  • 2,652
  • 7
  • 29
  • 45
17
votes
4 answers

What is nAnt, and how it can be useful to me as a C# developer?

I'm always compile my project, and copy the dll's from the dependency projects to the UI bin folder. after a few days with 'copy & paste' operations each time that I recompile my project, I concluded that I need a tool that will do it to me…
Fitzchak Yitzchaki
  • 9,095
  • 12
  • 56
  • 96
16
votes
7 answers

How to replace string in a file using NANT?

I am trying to replace the occurance of a string in a wxs file using Nant. I have only found the following example, which uses , but it seems like it can only be used within the copied files. Are there any other way of replacing a…
RKM
  • 3,151
  • 9
  • 37
  • 50
16
votes
5 answers

OpenOffice command line PDF creation

I have some documentation written in OpenOffice, and I would like to include some of it as PDF files in the final build deliveries. I would like to do this with the automated build script. Is there a way to create a PDF file from OpenOffice with a…
Drejc
  • 14,196
  • 16
  • 71
  • 106
16
votes
2 answers

task or msbuild.exe with NAnt?

It looks like there are (at least) two options for getting nant to use csproj files: using the task of NAntContrib or using msbuild.exe directly (e.g., codecampserver). Am I reading this right, and if so, what is the advantage of using msbuild.exe…
keithm
  • 2,813
  • 3
  • 31
  • 38
15
votes
2 answers

How can I use Nant's xmlpoke target to remove a node

Given the following xml: Content A Content A Using XMLPoke with the following XPath: rootnode/childnode[arg='b'] The result (if the replace string is empty)…
Iain
  • 10,433
  • 16
  • 56
  • 62
13
votes
7 answers

NAnt Alternatives

I've been using NAnt for a while but it seems to be overly complex for what I need. I was wondering if there are any alternatives around for building C# projects?
lomaxx
  • 113,627
  • 57
  • 144
  • 179
13
votes
3 answers

In nant, how to delete contents of a directory, but not the directory itself?

Suppose I were scripting a deployment using nant on a Windows server to a file share: \\server\share. I want a nant script to delete all files from the share then copy in new files. I have this code to delete the files, but I'm getting an error…
spoulson
  • 21,335
  • 15
  • 77
  • 102
13
votes
4 answers

Is there a NAnt task that will display all property name / values?

Is there a NAnt task that will echo out all property names and values that are currently set during a build? Something equivalent to the Ant echoproperties task maybe?
serg10
  • 31,923
  • 16
  • 73
  • 94
1
2
3
69 70