<div dir="ltr">Ouch.<div><br></div><div>For now, you can work around this problem by adding an ExtensionAttribute class to your own source. The code would look like this:</div><div><br></div><div><div>using System;</div><div>
namespace System.Runtime.CompilerServices {</div><div> [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly)]</div><div> sealed class ExtensionAttribute : Attribute { }</div><div>
}</div></div><div><br></div><div>On Tue, Sep 23, 2008 at 8:30 AM, Ronnie Maor <span dir="ltr"><<a href="mailto:ronnie.maor@gmail.com">ronnie.maor@gmail.com</a>></span> wrote:<br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">I have an issue with compiling extension methods. I've read the <a href="http://devhawk.net/2008/09/17/DLR+Namespace+Change+Fire+Drill.aspx" target="_blank">blog </a>on this, but can't get it to work.<br>
<br>The symptom is that when I have an extension method in my project, I get the following error:<br>
Missing compiler required member 'System.Runtime.CompilerServices.ExtensionAttribute..ctor' <br><br>If it isn't a trivial mistake with an obvious solution, then let me know what other information I should give to help diagnose this<br>
some things that might be relevant:<br><br>my project targets .NET 3.5<br> <br>my references from proj file:<br> <Reference Include="log4net, Version=<a href="http://1.2.10.0" target="_blank">1.2.10.0</a>, Culture=neutral, PublicKeyToken=1b44e1d426115821" /><br>
<Reference Include="Microsoft.Scripting, Version=1.0.0.5000, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /><br> <Reference Include="Microsoft.Scripting.Core, Version=1.0.0.5000, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /><br>
<Reference Include="IronPython, Version=2.0.0.5000, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /><br> <Reference Include="IronPython.Modules, Version=2.0.0.5000, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /><br>
<Reference Include="System" /><br> <Reference Include="System.Core"><br> <RequiredTargetFramework>3.5</RequiredTargetFramework><br> </Reference><br><br>thanks<br>
Ronnie<br><br><br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br></div></div>