[Mono-list] Nant / Osx

Gert Driesen gert.driesen at telenet.be
Tue Mar 11 05:59:22 EDT 2008


----- 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