I'm beginning the journey of upgrading our build scripts to 0.85 in
anticipation of a release coming in the near future.  I've run into a road
block though... it appears <include /> is not working at all.  Take a look
at the two build files below and let me know if I'm doing something odd -
these scripts worked in the 0.84 release.

 

 

Command Line: Nant -t:net-1.1 /k:net-1.1 /f:project.build -v

 

Project.build

<project default="Initialize"
xmlns="http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd";>

      <include buildfile="SystemInfo.build" failonerror="true"
verbose="true" />

            

 

      <!-- Initializes properties needed to complete a single build. -->

      <target name="Initialize">

            <!-- These properties describe the project that is going to be
built -->

            <call target="dosomething" />

      </target>

</project>

 

SystemInfo.build

<project name="ugh">

      <target name="dosomething">

            <echo message="liueriljwekr" />

      </target>

</project>

 

Verbose Output:

Framework 'net-1.0' is invalid and has not been loaded : The 'System.dll'
assemb

ly does not exist in framework assembly directory
'C:\WINNT\Microsoft.NET\Framew

ork\v1.0.3705'.

 

Framework 'net-2.0' is invalid and has not been loaded : Framework directory
'C:

\WINNT\Microsoft.NET\Framework\v2.0.40607' does not exist.

 

Framework 'mono-1.0' is invalid and has not been loaded : Registry Path Not
Foun

d! - key='SOFTWARE\Novell\Mono\';hive='Microsoft.Win32.RegistryHive[]';

 

Framework 'sscli-1.0' is invalid and has not been loaded : Framework
directory '

C:\sscli\build\v1.x86fstchk.rotor' does not exist.

 

Buildfile:
file:///C:/projects/SSADotNet/Speedway.ConfigurationManagement/1.0/DO

TNET/project.build

Base Directory:
C:\projects\SSADotNet\Speedway.ConfigurationManagement\1.0\DOTNE

T.

Target(s) specified: asdf

 

  [include] Including file
C:\projects\SSADotNet\Speedway.ConfigurationManagemen

t\1.0\DOTNET\SystemInfo.build.

 

BUILD FAILED

 

Target 'asdf' does not exist in this project.:

NAnt.Core.BuildException: Target 'asdf' does not exist in this project.

   at NAnt.Core.Project.TopologicalTargetSort(String root, TargetCollection
targ

ets, Hashtable state, Stack visiting, TargetCollection executeTargets) in
d:\Sou

rce\nant-20041101T190514Z\src\NAnt.Core\Project.cs:line 1524

   at NAnt.Core.Project.TopologicalTargetSort(String root, TargetCollection
targ

ets) in d:\Source\nant-20041101T190514Z\src\NAnt.Core\Project.cs:line 1441

   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in

 d:\Source\nant-20041101T190514Z\src\NAnt.Core\Project.cs:line 863

   at NAnt.Core.Project.Execute() in
d:\Source\nant-20041101T190514Z\src\NAnt.Co

re\Project.cs:line 833

   at NAnt.Core.Project.Run() in
d:\Source\nant-20041101T190514Z\src\NAnt.Core\P

roject.cs:line 902

 

Total time: 0 seconds.

 

<<attachment: winmail.dat>>

Reply via email to