nant

installing nant with a batch script

I have a nant build file which numerous users have to run locally. Is there an easy way to automate the process of installing nant/nantcontrib and updating the matching environment variables on a windows system. I have thought off a solution where a folder containing the nant/contrib files and a batch script is copied to each station. ...

nant waiting for target to complete execution?

Hi all, I have an nant.build which invokes an IDE.When i execute my nant from the command line,my nant invokes the IDE concerned but does not wait for the IDE to complete its execution. My nant script is designed in such a way that i call my IDE indirectly i.e first it calls a .vbs script which in turn calls two .bat files and ...

With NAnt, How to use C# 3.0 compiler while targetting .NET 2.0 runtime?

I'm using NAnt 0.85 to build a legacy project. The script itself uses the csc task (not the msbuild task) and works fine. The project is on its way to migrating over .NET 3.5. We already use VS2008, and C# 3.0, while still targeting .NET 2.0 framework runtime. Now the problem occurs when we want to upgrade our NAnt scripts, to compile ...

Tools to assess and instrument software quality (.net)

What tools/libraries do you run along with your build to assess and maintain quality? As part of my CI (Cruise Control) builds I run: Simian Nunit Ncover Ndepend FxCop as part of Nant I am looking for tools to instrument complexities, metrics, etc . ...

How do I save NAnt log output to a file?

In my build script how can I set a destination for NAnt's log messages? Idealy I'd like to just specify a file path. Then, on each build, NAnt would overwrite this file's contents with its message output. ...

Reading values from property file through NANT

How can I read a value alone from the property file. For example, how can I read the values of build.home or temp.dir from the below example. contents of env.properties build.home=c:\build temp.dir=c:\temp Regards Sarathy ...

Nant Build Error-- Nested build failed

I have a HelloNAnt.build file inside the directory: D:\third party components\nant\WhatThis My nant exe is placed at C:\Program Files\nant So I cd to D:\third party components\nant\WhatThis, type in the following command line: "C:\Program Files\nant\bin\nant.exe" HelloNAnt.build I got a build failed error, saying target HelloNA...

Evaluating property equality in Nant

In my Nant script I would like to compare a property value to a known string. After reading the Nant Expressions documentation I believed I would be able to do a basic '==' comparison to evaluate as a boolean. However given the script block: <if test="${target.env} == Dev"> <echo message="***** You are using DEV"/> </if> When exec...

CruiseControl.Net and NAnt Build Problem

I'm configuring a CruiseControl.net server for the first time. My team already uses NAnt build scripts, so we are just pointing the server at the scripts and letting NAnt do all the work. As you can see, it's pretty simple: <project name="ChannelIP"> <tasks> <nant> <executable>C:\Program Files\nant-0.86-beta1\bin\nant.exe</execu...

Can NAnt <tstamp> format day of the week as letters, like Java's SimpleDateFormat "E" pattern?

I searched SO and as far as I can tell, this hasn't already been asked. I'd like to do this in NAnt: <tstamp property="Now" pattern="EEE MMM dd, HH:mm"/> in hopes of getting a result like: "Tue May 15, 09:05" The doc for NAnt doesn't explicitly give a list of allowed pattern letters. I thought that it might work the way it does in ...

Building a WPF App with NAnt

Hi, Is there some way to compile (with the CSC task) a WPF Application with NAnt except for using the task from the NantContrib? greetings Tigraine ...

Need help with building C# example in ANTLR 2.7

Hi, I need to build the CSHARP V1 example which comes with ANTLR v 2.7.7. Command: D:\Comp\antlr\examples\csharp\csharp_v1>nant I am getting the following output: D:\Comp\antlr\examples\csharp\csharp_v1>D:\Comp\nant\bin\nant NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006) Copyright (C) 2001-2006 Gerry Shaw http://nant.sourcefor...

Nant, Vault & Windows Integrated Authentication

I am wanting to perform a number of tasks in SourceGear Vault (V4.1.4) with Nant (V0.86.3317.0). Is there any way we can get Vault to use Windows Authentication from Nant to create the connection? The Nant block I am using to initialise the vault connect is : <target name="InitialiseVaultSettings"> <echo>InitialiseVaultSettings</echo>...

Marking CC in the mails sent through MailLoggers of nant

We can send mails through mailLoggers using the properties MailLogger.success.to or MailLogger.failure.to. Can we make carbon copies in the mails that are sent through MailLogger ...

DevExpress eXpressApp Framework (XAF) and Continuous Integration

I have a XAF application that I've built and a nant script that runs fine on my development machine. The script uses MsBuild and the CSPROJ File to compile the project. When the CruiseControl.net server tries to compile the project it states that it cannot find the XAF assemblies needed to compile. I tried referencing all DLLs as Loca...

error handling in nant build scripts

Hi I am writing a NAnt build script which is responsible for deploying some files to an iss server. As part of this I would like to add error handling to my scripts - something which I haven't used before. Introducing error handling inevitably leads to thoughts about the structure of the build file(s). I think of structure as the grou...

Deploying biztalk on developer/build machines

For eaach BizTalk application we have a setup.bat, which creates the BizTalk application, creates file drops, build code, gacs, registers resources, creates ports -using vcscripts- and applies bindings. We also have a cleanup.bat which performs the opposite of setup.bat These scripts are then run via nant, and finally used by cruisecont...

Are There Any Best Practices for Writing Custom NAnt, Ant, or MSBuild tasks?

I'm in the process of writing a custom task for NAnt. I've been basing how I write the code based on some examples I've found on the Internet and by looking at the source of some other tasks for both NAnt and Ant. With that being said, are there any guidelines or best practices for writing good tasks for build managers like NAnt, Ant, ...

Development Experience with using MSBuild/Nant vs Visual Studio 2005/2008

I work on a project with 4 other devs. We currently use Visual Studio to build our solution with some Pre and Post build events. I would like to move to a more powerful build system such as Nant or MsBuild. What are the pros and cons of the two approaches? How is the developer experience using Nant/MsBuild? Is it easy to debug the app...

nant script doesn't display unit test details

Can someone please tell me why my build script (nant) doesn't display the unit test details in the command prompt window? I have verbose set to true, but it doesn't want to display any details about my unit tests. Here's the target: <target name="run-unit-tests" depends="compile, move.assemblies.for.tests, rebuildDatabase"> <mkdir ...