.NET Ant Library

November 6, 2006 - Apache .NET Ant Library 1.0 Available

Apache .NET Ant Library 1.0 is now available for download as binary or source release.

This library doesn't strive to replace NAnt or MSBuild, its main purpose is to help those of us who work on projects crossing platform boundaries. With this library you can use Ant to build and test the Java as well as the .NET parts of your project.

This library provides a special version of the <exec> task tailored to run .NET executables. On Windows it will assume the Microsoft framework is around and run the executable directly, while it will invoke Mono on any other platform. Of course you can override these assumptions.

Based on this a few tasks to run well known .NET utilities from within Ant are provided, namely tasks to run NUnit, NAnt, MSBuild and the Wix toolkit.

The initial .NET tasks of Ant (compiler tasks for C#, J# and VB.NET for example) have also been moved to this Antlib and will see further development here.

Runs a .NET executable.

Runs NUnit tests.

Invokes NAnt, either on an external file or a build file snippet contained inside your Ant build file.

Invokes MSBuild, either on an external file or a build file snippet contained inside your Ant build file.

Invokes the candle and light executables of the WiX toolkit in order to create MSI installers from within Ant.

]]>

runs NAnt on the embedded <echo> task, output looks like

]]>

runs MSBuild on the embedded <Message> task, output looks like