Philip,

The <lib> child element is only intented to be used for specifying
directories in which the compiler task can search for assemblies that are
specified as <include> child elements of the <references> element.

In your case, you should just use this:

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

Hope this helps,

Gert

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Philip Nelson
> Sent: zondag 5 juni 2005 16:47
> To: nant-users@lists.sourceforge.net
> Subject: [Nant-users] problem with system dlls in mono 1.1
> 
> I must be missing something simple but can't quite get it. I 
> use debian with
> the latest mono. I can build simple programs including the 
> simple hello world
> in the nant (.85 rc3) examples. However, references to other 
> dlls in the gac in
> windows like System.Data.dll are not working. With mcs I can just use
> -r:System.Data and the reference is found. In my build file I 
> have tried the
> following but both result in the same message suggesting i 
> use -r:System.Data
> 
> <csc target="exe" output="SimpleQuery.exe" verbose="true">
>   <sources>
>     <include name="SimpleQuery.cs" />
>   </sources>
>   <references>
>     <lib>
>       <include name="System.Data.dll" />
>     </lib>
>   </references>
> </csc>
> and 
> 
> <csc target="exe" output="SimpleQuery.exe" verbose="true">
>   <sources>
>     <include name="SimpleQuery.cs" />
>   </sources>
>   <references>
>     <lib>
>       <include
> name="${nant.settings.currentframework.frameworkdirectory}/Sys
> tem.Data.dll" />
>     </lib>
>   </references>
> </csc>
> 
> that property correctly points to /usr/lib/mono/1.0
> the current framework property reports mono-1.0
> 
> Philip - http://blogs.xcskiwinn.org/panmanphil
> "There's a difference between righteous anger and just being 
> crabby" - Barbara
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.  How far 
> can you shotput
> a projector? How fast can you ride your desk chair down the 
> office luge track?
> If you want to score the big prize, get to know the little guy.  
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> _______________________________________________
> Nant-users mailing list
> Nant-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to