> >Would it make more sense to create a .config for NAnt and add a binding > >redirect to tell it to use the 2.2.5 version of NUnit? > > > Does it make sense? Yes. Does it work? I haven't gotten it to work.
Ditto. redirect in <project>.dll.config works [1] redirect in nant.exe.config fails [2] [1] NUnit >= 2.2.5.0 <nunit2> task still fails (due to new features?) [2] standard error message about redirectBinding I'm not sure if our problems are due to our approach, as we control our tools using (sub)version, so we don't keep NUnit in the GAC. I don't believe it's the case but I'd thought it worth mention. Solution? We just roll our own: <target name="run-test" depends="init-test"> <if test="${file::exists(compiled-test-asm)}"> <exec program="${tools-dir}\NUnit\bin\nunit-console.exe" basedir="${project-test-dir}" workingdir="${src-test-dir}\bin\${configuration}"> <arg value="${compiled-test-asm}" /> <arg value='/xml:"${project-test-dir}\log\nunit-output.xml"' /> <arg value="/nologo" /> </exec> </if> <if test="${not file::exists(compiled-test-asm)}"> <echo level="Warning" message="Test skipped due to missing assembly:${newline}${compiled-test-asm}" /> </if> </target> I wouldn't mind using the <nunit2> task if it can work with NUnit 2.2.6 and it would allow you to define a custom xml output file. (makes it easier to perform file merging with CruiseControl.NET) peace si ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users