Hello,
I am trying to get into orgainizing my nant files more.
I have a central nant file that all our projects should share.
Is it viable to use an empty shell file (possibly with do-nothing targets that the projects fill out) and have it include the core targets?
How is the syntax?
I just took the whole XML content to the external file, and did remove project tag.
The new build file tries to include this:
<?xml version="1.0"?>
<project default="build" >
<include buildfile="n:\.dev\deployed\.buildscripts\default.build" />
</project>
Sadly I get an exception?
C:\Work\ThonaConsulting\EntityBroker\02.1>nant
NAnt 0.85 (Build 0.85.1932.0; rc3; 16.04.2005)
Copyright (C) 2001-2005 Gerry Shaw
http://nant.sourceforge.net
[loadtasks] Failure scanning \"C:\Program Files\Thona.Nant\NAnt.NUnit1Tasks.dll\
" for extensions. One or more of the types in the assembly unable to load.
Buildfile: file:///C:/Work/ThonaConsulting/EntityBroker/02.1/default.build
Target framework: Microsoft .NET Framework 1.1
Target(s) specified: build
BUILD FAILED
C:\Work\ThonaConsulting\EntityBroker\02.1\default.build(5,2):
Could not include build file 'n:\.dev\deployed\.buildscripts\default.build'.
There are multiple root elements. Line 3, position 3.
Total time: 0 seconds.
The documentation for the Nant <include> task is - well - not really helpfull.
Thoms