[Mono-list] Why are extension method dependent on .NET 3.5?

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Thu Apr 16 22:37:32 EDT 2009


You could try bundling *our* System.Core.dll in your app
if you run it on Windows (this is Mono mailing list so I assume
you are of course planning to distribute on non-windows too ;)
I dunno the details but there was some guy in my local community
who examined it, and filed some bugs in our lib.

Atsushi Eno

Jiří Zárevúcký wrote:
> 2009/4/17 Dan Shryock <dan.shryock at gmail.com>:
>> The reason for requiring .NET 3.5 is because of the dependency on
>> System.Core.dll
>>
>> ...
>>
>> Having said all of that, you can get arround the problem by providing
>> your own implementation of
>> System.Runtime.CompilerServices.ExtensionAttribute like this:
>>
> 
> Thanks for explanation. The problem is that even though the project
> doesn't contain any extension methods (just calls them), it still
> needs System.Core.dll. I've tried your workaround but it didn't help.
> The compiler doesn't find the methods. Any further ideas?
> 
> My ultimate goal is for my project using extension methods to be
> runnable under .NET 2.0, if that's even possible.
> _______________________________________________
> 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