I am having a bit of a problem compiling my NUnit test harnesses using Nant. Bascially it appears that Nant is not passing some the reference to nunit.framework.dll unless I full qualify its path.
So my build file looks something like this...
<?xml version="1.0"?>
<project name="ProjectAlpha" default="build">
<project name="ProjectAlpha" default="build">
<property name="assembly.name" value="Domain.Test"/>
<target name="build">
<mkdir dir="${build.dir}" failonerror="false" />
<csc output="${build.dir}\${nant.project.name}.${assembly.name}.dll" target="library" debug="${build.debug}" args>
<references>
<includes name="nunit.framework.dll" />
<includes name="${build.dir}\${nant.project.name}.Domain.dll"/>
</references>
<sources failonempty="true">
<includes name="DomainTest.cs" />
</sources>
</csc>
</target>
</project>
<mkdir dir="${build.dir}" failonerror="false" />
<csc output="${build.dir}\${nant.project.name}.${assembly.name}.dll" target="library" debug="${build.debug}" args>
<references>
<includes name="nunit.framework.dll" />
<includes name="${build.dir}\${nant.project.name}.Domain.dll"/>
</references>
<sources failonempty="true">
<includes name="DomainTest.cs" />
</sources>
</csc>
</target>
</project>
Please not the references element has nunit.framework.dll listed. Unfortunately though when I turn on the verbose option in Nant it appears that this reference is never passed through.
I have set up my include environment variable to the directory where nunit.framework.dll lives and can even run the CSC passing it the arguments Nant should pass and everything works as expected.
Any ideas?
Neil
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
