I got the following error:

D:\Code Tools\Boar\Build>nant

NAnt 0.84 (Build 0.84.1455.0; net-1.0.win32; release; 26/12/2003)

Copyright (C) 2001-2003 Gerry Shaw

http://nant.sourceforge.net

 

Buildfile: file:///D:/Code Tools/Boar/Build/Boar.Build

Target(s) specified: Compile

 

BUILD FAILED

 

INTERNAL ERROR

 

System.ArgumentException: Xml node has not been mapped.

   at NAnt.Core.LocationMap.GetLocation(XmlNode node)

   at NAnt.Core.Project.InitializeProjectDocument(XmlDocument doc)

   at NAnt.Core.Project.Execute()

   at NAnt.Core.Project.Run()

 

Please send bug report to [EMAIL PROTECTED]

 

Total time: 0 seconds.

 

 

 

 

On the following .build file:

 

<?xml version="1.0"?>

<project name="Boar" default="Compile" basedir="..">

                                                                               <property name="Build.Dir" value="Bin"/>

                                                                               <property name="Build.Tests.Results" value="Build\Logs"/>

                                                                               <property name="Vendor.Lib.Dir" value="Vendor\Lib"/>

                                                                               <property name="Docs.Dir" value="Docs"/>

                                                                               <property name="Src.Dir" value="Src"/>

                                                                               <property name="Tests.Dir" value="Tests"/>

                                                                               <property name="Build.Prod.Dir" value="${Build.Dir}\Production"/>

                                                                               <property name="Build.Tests.Dir" value="${Build.Dir}\Tests"/>

                                                                               <!--<property name="Indext.Dir" value="Index"/>-->

                                                                               <property name="Debug" value="true"/>

                                                                               <!-- Need to add some way to reference files -->

                                                                              

                                                                               <target name="Prepare">

                                                                                    <mkdir dir="${Build.Prod.Dir}"/>

                                                                                    <mkdir dir="${Build.Tests.Dir}"/>

                                                                               </target>

                                                                              

                                                                               <target name="Compile" depends="Prepare">

                                                                                    <csc target="library" output="${Build.Prod.Dir}Boar.Data.dll" debug="${Debug}">

                                                                                                <sources>

                                                                                                            <includes name="${Src.Dir}\*.cs"/>

                                                                                                </sources>

                                                                                    </csc>

                                                                               </target>

                                                                              

                                                                               <target name="Compile.Tests" depends="Compile">

                                                                                    <csc target="library" output="${Build.Tests.Dir}\Tests.dll" debug="${Debug}" verbos="true">

                                                                                                <sources>

                                                                                                            <includes name="${Tests.Dir}\*.cs"/>

                                                                                                </sources>

                                                                                                <references>

                                                                                                            <includes name="${Vendor.Lib.Dir}\*.dll"/>

                                                                                                            <includes name="${Build.Prod.Dir}\*.dll"/>

                                                                                                </references>

                                                                                    </csc>

                                                                               </target>

                                                                              

                                                                               <target name="Run.Tests" depends="Compile.Tests">

                                                                                    <nunit2>

                                                                                                <formatter type="Xml" usefile="true" extension=".xml" outputdir="${Build.Dir}results" />

                                                                                                <test>

                                                                                                            <assemblies>

                                                                                                                        <includes name="${Build.Tests.Dir}\*.dll" />

                                                                                                            </assemblies>

                                                                                                </test>

                                                                                    </nunit2>

                                                                               </target>

                                                                                <configuration>

                                                                                    <runtime>

        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

            <dependentAssembly>

                <assemblyIdentity name="nunit.framework" publicKeyToken="96d09a1eb7f44a77" culture="Neutral" />

                                                                                                            <bindingRedirect oldVersion="2.0.6.0" newVersion="2.1.4.0" />

                                                                                                </dependentAssembly>

         </assemblyBinding>

    </runtime>

     </configuration>

</project>

Reply via email to