If you need to build against against 2.0 and use it from within a 2.0
assembly but write 3.5 tests for that, you can ignore warning CS1685
(Defined in multiple assemblies, using definition from xyz).

On Tue, Sep 14, 2010 at 6:50 AM, Jb Evain <[email protected]> wrote:

> Bonjour Simon,
>
> On Tue, Sep 14, 2010 at 7:46 AM, Simon Cropp <[email protected]>
> wrote:
> > Turns out that this was caused by the hack/workaround you do to use
> > extension methods in a .net 2 project.
> >
> http://github.com/jbevain/cecil/blob/master/System.Runtime.CompilerServices/ExtensionAttribute.cs
> >
> > For me to get around this I had to re-compile cecil against .net 4 and
> > remove ExtensionAttribute.cs
>
> That works.
>
> But otherwise, depending on the framework you're targeting, you can
> simply define NET_3_5 or NET_4_0.
>
> --
> Jb Evain  <[email protected]>
>
> --
> --
> mono-cecil

-- 
--
mono-cecil

Reply via email to