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

Jiří Zárevúcký zarevucky.jiri at gmail.com
Thu Apr 16 21:18:15 EDT 2009


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.


More information about the Mono-list mailing list