Notes about NAnt
Jump to navigation
Jump to search
website
- http://nant.sourceforge.net/
- documentation, eg list of all tasks: http://nant.sourceforge.net/release/latest/help/tasks/index.html
installation
for installation on Windows, see Setup of Development Environment for Windows#NAnt
Installer for NAnt
To make the installation more simpler, we have created our own NAnt Installer for Windows, which already includes the NAntContrib files.
For the sources of the installer, see https://github.com/openpetra/openpetra/tree/master/setup/tools/nant
The installer itself is available here: http://sourceforge.net/projects/openpetraorg/files/openpetraorg/Tools/NAnt-Setup-0.92.exe/download
usage
- add custom scripts in c#: http://nant.sourceforge.net/release/latest/help/tasks/script.html; also see [1]
- see also ReplaceInFile in OpenPetra.build
problems
Error message when having .net 4.0 runtime installed:
Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
- see solution here: http://keithbloom.wordpress.com/2010/09/21/nant-and-the-net-4-error/
- modify %InstallLocation%\NAnt\bin\NAnt.exe.config and remove at the bottom
supportedRuntime version="v4.0.30319"
- modify %InstallLocation%\NAnt\bin\NAnt.exe.config and remove at the bottom