You have to specify where nunit.framework.dll is: <property name="nunit.dir" value="${assembly.dir}" if="${platform::is-unix()}" /> <property name="nunit.dir" value="${sys.env.ProgramFiles}/NUnit V2.1/bin" if="${platform::is-win32()}" />
... <references> <includes name="${nunit.dir}/nunit.framework.dll" /> ... </references> Keep also in mind that you have to use nunit.framework.dll shipped with nant. j3d. > 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"> > <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> > > 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 ---------------------------------------- Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web: www.agamura.com ---------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users