[Mono-list] Nant / Osx

Mike Cleaver mike at moga.to
Wed Mar 12 00:39:19 EDT 2008

Hey everyone,

I'm still stuck on this problem,

I just cant get this project to compile...

     [echo] Building mogato.aggregator.exe...
      [csc] Compiling 2 files to '/Users/mikecleaver/Source/lib/ 
      [csc] /Users/mikecleaver/Source/mogato.aggregator/ 
Main.cs(173,34): warning CS0219: The variable `last_periodic_time' is  
assigned but its value is never used
      [csc] ** (/Library/Frameworks/Mono.framework/Versions/1.2.6/lib/ 
mono/2.0/gmcs.exe:9480): WARNING **: The following assembly referenced  
from /Users/mikecleaver/Source/lib/FeedDotNet.Common.dll could not be  
      [csc]      Assembly:   System.Runtime.Serialization     
      [csc]      Version:
      [csc]      Public Key: b77a5c561934e089
      [csc] The assembly was not found in the Global Assembly Cache, a  
path listed in the MONO_PATH environment variable, or in the location  
of the executing assembly (/Users/mikecleaver/Source/lib).
      [csc] ** (/Library/Frameworks/Mono.framework/Versions/1.2.6/lib/ 
mono/2.0/gmcs.exe:9480): WARNING **: Could not load file or assembly  
'System.Runtime.Serialization, Version=, Culture=neutral,  
PublicKeyToken=b77a5c561934e089' or one of its dependencies.
      [csc] ** (/Library/Frameworks/Mono.framework/Versions/1.2.6/lib/ 
mono/2.0/gmcs.exe:9480): WARNING **: Missing method .ctor in assembly / 
Users/mikecleaver/Source/lib/FeedDotNet.Common.dll, type  

The library FeedDotNet.Common was compiled using Monodevelop 0.18,  
with the .Net 2 profile. Running the 1.2.6 osx package.

Any ideas at all???
On 12/03/2008, at 10:54 AM, Mike Cleaver wrote:

> 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
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

More information about the Mono-list mailing list