Notes about NAnt: Difference between revisions

From OpenPetra Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:


== installation ==
== installation ==
* see also http://nant.sourceforge.net/release/0.86-beta1/help/introduction/installation.html
for installation on Windows, see [[Setup of Development Environment for Windows#NAnt]]


* download NAnt [http://nant.sourceforge.net/nightly/latest/nant-bin.zip nant-0.86-nightly-2009-05-05]
== Installer for NAnt ==
** the beta version does not work for me ([http://sourceforge.net/project/showfiles.php?group_id=31650&package_id=23704&release_id=560184 0.86-beta1]); message: Property 'sdkInstallRoot' has not been set.
To make the installation more simpler, we have created our own NAnt Installer for Windows, which already includes the NAntContrib files.


* unzip the files to eg. c:\program files\nant
For the sources of the installer, see https://github.com/openpetra/openpetra/tree/master/setup/tools/nant
* create file c:\windows\nant.bat with content:
 
@echo off
The installer itself is available here: http://sourceforge.net/projects/openpetraorg/files/openpetraorg/Tools/NAnt-Setup-0.92.exe/download
"C:\Program Files\NAnt\bin\NAnt.exe" %* -t:net-2.0


== usage ==
== usage ==
Line 18: 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

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

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.

todo