Try this build file with the latest nightly build :

<project name="test">
    <property name="lib.dir"
value="${path::combine(nant::get-base-directory(), 'lib')}" dynamic="true"
/>
    <property name="lib.family.dir" value="${path::combine(lib.dir,
framework::get-family(framework::get-target-framework()))}" dynamic="true"
/>
    <property name="lib.framework.dir"
value="${path::combine(lib.family.dir,
framework::get-version(framework::get-target-framework()))}" dynamic="true"
/>
    <echo message="lib.dir= ${lib.dir}" />
    <echo message="lib.family.dir= ${lib.family.dir}" />
    <echo message="lib.framework.dir= ${lib.framework.dir}" />
</project>

(its the lib.framework.dir property that you need)

Gert

----- Original Message ----- 
From: "Rodrigo B. de Oliveira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 17, 2004 2:32 AM
Subject: [Nant-users] Correct cross-platform way to find nunit.framework.dll


> I've been using the following strategy to reference nunit.framework.dll in
> my projects:
>
>     <property
>             name="nunit.framework.dll"
>             value="${nant.location}/nunit.framework.dll" />
>
>
> The thing is that this no longer works with the latest cvs versions (under
> mono or windows).
>
> One possible solution is:
>
>  <property name="nunit.framework.dll"
>    value="${nant.location}/lib/mono/1.0/nunit.framework.dll"
>    if="${nant.platform.unix}" />
>
>  <property name="nunit.framework.dll"
>    value="${nant.location}/lib/net/1.1/nunit.framework.dll"
>    unless="${nant.platform.unix}" />
>
> it works but I wonder what would be the correct cross-platform way to
> reference nunit.framework.dll?
>
> Best wishes,
> Rodrigo
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: SourceForge.net Broadband
> Sign-up now for SourceForge Broadband and get the fastest
> 6.0/768 connection for only $19.95/mo for the first 3 months!
> http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to