Notes about NAnt: Difference between revisions
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
== installation == | == installation == | ||
for installation on Windows, see [[Setup of Development Environment for Windows#NAnt]] | 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 == | == usage == | ||
Line 10: | Line 17: | ||
** see also ReplaceInFile in OpenPetra.build | ** see also ReplaceInFile in OpenPetra.build | ||
== problems == | |||
Error message when having .net 4.0 runtime installed: | |||
<code>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.</code> | |||
* 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 <code>supportedRuntime version="v4.0.30319" </code> | |||
== todo == | == todo == | ||
* run SandCastle from NAnt: http://jachman.wordpress.com/2007/10/22/how-to-build-chm-html-documentation-with-sandcastle-september-ctp-2007-and-nant/ | * run SandCastle from NAnt: http://jachman.wordpress.com/2007/10/22/how-to-build-chm-html-documentation-with-sandcastle-september-ctp-2007-and-nant/ |
Latest revision as of 18:46, 8 April 2016
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