I have encountered the same problem and solved it by copying the
nunit.framework.dll
Assembly from the nant directory to the directory where my assembly
containing the
test cases resides.

Here are extracts from my build file:

<script language="C#">
        <code><![CDATA[
                public static void ScriptMain(Project project) {
                        project.Properties.Add("nant.dir", new
System.IO.FileInfo(new
System.Uri(project.Properties["nant.filename"]).LocalPath).Directory.Ful
lName);
                }
        ]]></code>
</script>
...
<copy file="${nant.dir}\nunit.framework.dll" todir="${build.dir}"/>
...
<nunit2>
        <test assemblyname="${build.dir}\Systar.SAF.Web.UnitTests.dll"
/>
</nunit2>
...


Hope this helps,
Arnaud :O)



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to