Title: RE: [Nant-users] SubProject Build

Stephan,

Try setting the basedir attribute in the <project> element.  This sets the base directory from which the build file will execute and all subsequent paths are derived.  I typically use basedir="." for most projects.

--oliver

-----Original Message-----
From: Boome, Stephan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 28 August 2003 13:53
To: NAnt-Users (E-mail)
Subject: [Nant-users] SubProject Build



Hi All,

As you can see I have two build files, I NAnt from the ProjectA\Software
directory then my solution builds, but if I run my TopLevel.build in the
C:\Development directory it complains that it can not find
C:\Development\ProjectA.sln, when it should be loading
C:\Development\ProjectA\Software\ProjectA.sln.  I would like to be able to
run NAnt on both of my build files.  I think I need to change the current
directory for each of my sub projects, but I can not find out how to do
this.

Thanks

Stephan

C:\Development\TopLevel.build
<?xml version="1.0"?>
<project name="TopLevel" default="build" >
        <nant buildfile="ProjectA/Software/ProjectA.build" target="build" />
</project>

C:\Development\ProjectA\Software\ProjectA.build
<?xml version="1.0"?>
<project name="ProjectA" default="build">
        <target name="build" >
                <solution solutionfile="ProjectA.sln"
configuration="release" />
        </target>
</project>



"This communication is intended solely for the addressee and is confidential and not for third party unauthorised distribution."

Reply via email to