Ayende,
This issue has been fixed since the 0.84 release. Can you try using a recent nightly build ?
Also, the <configuration> node should not be in your build file, but in the application configuration file of your test assembly.
If you test assembly is called "mytests.dll", then you should have a "mytests.dll.config" file in the same directory as "mytests.dll" containing :
<?xml version="1.0"?>
<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>
Note:
- The version number in "oldVersion" should match the version of NUnit that was used to build the test assembly
- The version number in "newVersion" should match the version of NUNit that NAnt uses, which is 2.1.4.0 for NAnt 0.84 and 2.2.0.0 for recent nightly builds of NAnt 0.85.
Hope this helps,
Gert
----- Original Message ----- From: "Ayende Rahien" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 09, 2004 5:38 AM
Subject: [nant-dev] Bug: Internal error
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>
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
