Hi Francisco,

It's already late here, so here a very quick reply.

You can use something like this:

<property name="nunit.framework.file" dynamic="true"
value="${nant::get-base-directory() + '/lib/' +
framework::get-family(framework::get-target-framework()) + '/' +
int::to-string(version::get-major(framework::get-version(framework::get-targ
et-framework()))) + '.' +
int::to-string(version::get-minor(framework::get-version(framework::get-targ
et-framework()))) + '/nunit.framework.dll'}" />

But I'm sure there are less ugly constructs ;-)

Gert


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Francisco
Figueiredo Jr.
Sent: woensdag 17 oktober 2007 23:30
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] How to make nant find nunit assemblies included innant
distribution?




Hi all,



This is what I have in NpgsqlTests.build file:



<property name="NUnit.lib.dir" value="/usr/lib/NAnt/lib/mono/2.0" />


<target name="build" depends="init">

      <csc target="library"
output="${nunit2tests.build.dir}/${assemblyname}.dll" debug="${debug}" >

        <sources>

          <include name="*.cs" />

        </sources>

        <references>



          <include name="${NUnit.lib.dir}/nunit*.dll" />

          <include name="${ms.build.dir}/Npgsql.dll" />

          <include name="System.Data.dll" />

          <include name="System.Web.dll" />

        </references>

      </csc>


    </target>


But I don't know what to put in references element to make nant find the
included nunit assemblies. I had to hardcode a path in order to get nant to
find them. Could you please explain me what I should put here? Note that
Npgsql can be build on Mono and ms.net so, I would like to put here a line
which would work on both platforms.
 
Thanks in advance.
 
--

Regards, 

Francisco Figueiredo Jr.

http://fxjr.blogspot.com

 

Npgsql Lead Developer

http://npgsql.projects.postgresql.org

 

Mono Project Contributor

http://www.go-mono.com

 

MonoBrasil Project Founder Member

http://monobrasil.softwarelivre.org

 

--------

 - Would you tell me, please, which way I ought to go from here?

 - That depends a good deal on where you want to get to.

                -- Lewis Carroll "Alice&#39;s Adventures in Wonderland"









      Abra sua conta no Yahoo! Mail, o único sem limite de espaço para
armazenamento!
http://br.mail.yahoo.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to