[Mono-list] Nant / Osx

Kostik info at mindity.com
Tue Mar 25 08:53:24 EDT 2008


Hi,

I'm the creator of FeedDotNet and I've seen your discussion over here. As I
wrote in the _docs/howto.txt, you simply need to remove all 3.0-references
and DataContract attributes to compile the sources under 2.0.

Hope this helps

Konstantin Gonikman





Atsushi Eno wrote:
> 
> The compiler error message exactly shows that your FeedDotNet.Common.dll 
> does reference to assembly
> System.Runtime.Serialization.dll which is part of WCF i.e. one of .NET 
> 3.0 components. My assumption is that
> you looked over (or you aren't aware) that you added the reference.
> 
> You can upload your FeedDotNet.Common.dll and let everyone examine if 
> your guess is correct.  Also, it
> would be good if you post how you built the assembly and let everyone 
> examine it.
> 
> Note that .NET 3.0 components are used under 2.0 runtime in .NET.
> 
> Atsushi Eno
> 
> 
> Mike Cleaver wrote:
>> Hmm I had figured it was a framework issue due to the 3.x version.   
>> But I seem to be compiling using the 2.0 profile and the FeedDotNet  
>> library isn't supposed to need .Net 3 features.  The only references  
>> in FeedDotNet.Common are System, System.Data and System.Xml.
>>
>> I cant find where the 3.0 reference is actually coming from...
>>
>> -Mike
>>
>>
>> On 12/03/2008, at 1:59 PM, Atsushi Eno wrote:
>>
>>   
>>> You don't know that System.Runtime.Serialization.dll is *not* in  
>>> mcs. It
>>> is .NET 3.0 stuff that we do not support.
>>> It is in our "olive" module which is in early development stage and
>>> actually not in progress now.
>>>
>>> Atsushi Eno
>>>
>>> Mike Cleaver wrote:
>>>     
>>>> 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/
>>>> mogato.aggregator.exe'.
>>>>      [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
>>>> loaded:
>>>>      [csc]      Assembly:   System.Runtime.Serialization
>>>> (assemblyref_index=2)
>>>>      [csc]      Version:    3.0.0.0
>>>>      [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=3.0.0.0, 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
>>>> System.Runtime.Serialization.DataContractAttribute
>>>>
>>>> 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
>>>>>
>>>>>         
>>>> _______________________________________________
>>>> Mono-list maillist  -  Mono-list at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>>
>>>>
>>>>       
>>> _______________________________________________
>>> Mono-list maillist  -  Mono-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>     
>>
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>>   
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

-- 
View this message in context: http://www.nabble.com/Nant---Osx-tp15972764p16274456.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list