It would appear I was not precise enough in my description. I was able to get everything building as expected when I specified where NUnit was but I specifically didn't want to be forced to this within the Nant script. I wanted CSC to pick up nunit.framework.dll from whereever it required.
Anyways I managed to find the problem. Basically filesets (of which includes seems to be derived) always do a check to see if the file exists. Unfortunately I don't want it to check because the file nunit.framework.dll does not exist at the current folder. So by simply setting the asis flag to TRUE I can force Nant not to perform this check.
Once done everything works as expected :-)
Cheers for the help
N
Giuseppe Greco <[EMAIL PROTECTED]> wrote:
You have to specify where nunit.framework.dll is:name="nunit.dir"
value="${assembly.dir}"
if="${platform::is-unix()}" />name="nunit.dir"
value="${sys.env.ProgramFiles}/NUnit V2.1/bin"
if="${platform::is-win32()}" />
...
...
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...
>
>
>
>
>
>
>> output="${build.dir}\${nant.project.name}.${assembly.name}.dll"
> target="library" debug="${build.debug}" args>
>
>
>> name="${build.dir}\${nant.project.name}.Domain.dll"/>
>
>
>
>
>
>
>
>
> 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
----------------------------------------
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
