nant

How do I use my own compiler with Nant?

Nant seems very compiler-centric - which is guess is because it's considered a .NET development system. But I know it can be done! I've seen it. The platform we're building on has its own compiler and doesn't use 'cl.exe' for c++. We're building a C++ app on a different platform and would like to override with our own compiler. Can anyo...

How can I use NAnt to compile WPF controls

I have a WPF project and I'm trying to setup a NAnt build script for it. The problem is that when it tries to compile the WPF controls, the .g.cs files are not being generated as they are when building from within Visual Studio. I'm using the csc build task. From my reading it seems that when Visual Studio builds, it performs a pre-buil...

Clean builds in continuous integration

We use a CruiseControl.Net/NAnt/Subversion stack for CI. Doing a fresh checkout for every build is way too time-consuming, so currently we just do an update on a working copy. However, this leaves the possibility that orphaned files may remain in the working copy, after being deleted in source control. We have tried using the NAnt delete...

NAnt best practices

I have here 300 lines long NAnt file and it is quite a messy. I am wondering if there is a any style guide for writing NAnt scripts and what are the best practices for doing so. Any tips? ...

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 ant's echoproperties task maybe. ...

Is there a dynamic language based .NET build tool?

I might be starting a new project in .NET soon, and would prefer not to use an XML-based build tool like Nant or MSBuild. I like Rake, but I'm thinking it may be better to have something based on a .NET dynamic language (such as Boo), similar in spirit to gant or BuildR for Java. Is there such a thing for .NET? If not, what do you recomm...

Integrating External Sources in a Build

Where I work I have several projects in separate repositories. Each project shares a lot of common code that I want to pull out into a distinct project. I'm thinking of calling the project with the following scheme: Company.Department.Common or Company.Department.Utility. I've constructed a project for this and it has an automated build...

nant: Can I extract the last directory in a path?

In Nant, I would like to be able to extract the last name of the directory in a path. For example, we have the path 'c:\my_proj\source\test.my_dll\' I would like to pass in that path and extract 'test.my_dll' Is there a way to easily do this? ...

Build deployment using CruiseControl.net

I've seen a few examples on how to do build deployment, however I have something unique that I'd like to do: Deploy the build to a folder that has the build number (eg. Project\Builds\8423) Alter the version number in the .NET AssmblyInfo.cs to match the build number Has anyone done this before with .NET projects using NAnt + CruiseC...

CruiseControl.NET view NUnit xml test result when Nant build file executes NUnit

I have a Nant build file which executes NUnit after compiling the dll's. I am executing the NAnt build file with a task in CruiseControl. So NAnt is running the tests not CruiseControl. How do I configure it so that the CruiseControl web dashboard can be used to view the NUnit output ? This fixed it: <publishers> <merge> <...

Referencing build artifacts from an svn:external build in .Net project

This is a continuation question from a previous question I have asked I now have a /externals directory in the root of my project tree. Inside this I have a reference to another project. I'm able to script the build of all my externals in the main project NAnt script. The result of these builds are as follows: /externals/external-proje...

How to make some NAnt tasks quiet?

I am using MailLogger to send a message about a failed/successful release. I would like to make the mail body simple and easy to read. How can I suppress output for some particular tasks? ...

Continuous Integration with Nant

I am preparing to use continuous integration for the first time. I will be using Nant for the automated build and testing tasks, and am trying to find the appropriate CI tool to poll the repository and execute the Nant script. I have so far loosely researched the following: Hudson Cruise Control Draco My sense so far is that since ...

How can I pull artifacts from TeamCity?

I would like to pull artifacts from teamcity. I've been trying to use c# and the HtmlAgilityPack to goto the website and find the latest version and its artifacts. I'm currently stuck at the login, I think I just need to be sending Session Cookies out. Am I going in the right direction, has anyone else tried this? I realize that pushi...

How do I extract the version and path from an SVN working copy into a nant variable?

I am creating a new build process for a DotNet project which is to be held in Subversion. For each dll/exe that I compile (via Nant) I would like to include 2 additional attibutes in the dlls that are built. I already understand the workings of the 'asminfo' nant task. But I need help retrieving the information which I hope to embed in...

Can I parameterize a CruiseControl.NET project configuration such that the parameters are exposed by the web interface?

I am currently trying to use NAnt and CruiseControl.NET to manage various aspects of my software development. Currently, NAnt handles just about everything, including replacing environment specific settings (e.g., database connection strings) based on an input target that I specify on the command line. CruiseControl.NET is used to build...

Using Nant, uncomment a block of xml in a file

I need to uncomment a portion of xml in a file that I am working with in NAnt. Heres a sample of the xml: <navigation> <!-- Navigation Section <something name="" /> <something name="" /> --> </navigation> What I want to do is take the --> portion and move it next to "Navigation Section". A global find for --> won't work as the...

NAnt for native code environment

Hi, Does anyone know any good tutorial about using NAnt for native code build process instructions? ...

NAnt with DB integration tests, and eventually Continuous Integration

I've been exploring different strategies for running integration tests within some Nant build scripts. Typically a number of different scripts are chained in one monolithic build that has separate targets: staging (build a staging version, like build), build (just build the stuff), integration (build the stuff and run the integration tes...

Future considerations for NUnit and NAnt

During .NET v1 days, I have tried without much success to convince colleagues to develop test-driven and automated-build work habits using the additional tools of NUnit and NAnt. When .NET Framework 2.0 and Visual Studio 2005 Team Suite came into picture, I was able to "force" my team into writing tests and provide themselves with visual...