[Mono-list] Nant / Osx

Mike Cleaver mike at moga.to
Tue Mar 11 21:54:16 EDT 2008


Thanks, that reference worked perfectly for gdk,

I had experimented with the pkg-reference element a while ago but  
couldn't figure out the package names.  How can I determine what  
packages are available and what dll's they include? I'm still stuck  
with the references for System.Runtime.Serialization.

Thanks for your help!
-Mike


On 11/03/2008, at 6:59 PM, Gert Driesen wrote:

>
> ----- Original Message ----- From: "Mike Cleaver" <mike at moga.to>
> To: <mono-list at lists.ximian.com>
> Sent: Tuesday, March 11, 2008 2:29 AM
> Subject: [Mono-list] Nant / Osx
>
>
>> Hi all,
>> I've been having some troubles building my project under osx  
>> 10.5.2.   Our project is normally compiled via a Monodevelop  
>> solution which has  always worked fine - I'm just trying to get it  
>> to compile on my laptop.
>> I've written NANT scripts to build all of the different projects  
>> but  have had trouble with:
>> 1) Gdk - I use it for image resizing.  I have to have a reference   
>> directly to the gdk-sharp-2.0 alias -
>> <include name="/Library/Frameworks/Mono.framework/Libraries/mono/  
>> gtk-sharp-2.0/gdk-sharp.dll"></include>
>> <include name="/Library/Frameworks/Mono.framework/Libraries/mono/  
>> gtk-sharp-2.0/glib-sharp.dll"></include>
>> Now I vaguely remember seeing a tutorial about using pkg-config to   
>> create a link to the dlls so that they can be easily referenced  
>> but  couldnt find it when i looked today? Is there some way to get  
>> the NANT  script to add mono package references instead?
>
> You can use the <pkg-references> element for this purpose:
>
> <csc ....>
>   <sources>
>       <include name="**/*.cs" />
>   </sources>
>   <pkg-references>
>       <package name="gtk-sharp-2.0" />
>   </pkg-references>
> </csc>
>
> Hope this helps,
>
> Gert
>



More information about the Mono-list mailing list