<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. &nbsp;The code would look like this:</div><div><br></div><div><div>using System;</div><div>
namespace System.Runtime.CompilerServices {</div><div>&nbsp;&nbsp; &nbsp;[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly)]</div><div>&nbsp;&nbsp; &nbsp;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">&lt;<a href="mailto:ronnie.maor@gmail.com">ronnie.maor@gmail.com</a>&gt;</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&#39;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&#39;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 &#39;System.Runtime.CompilerServices.ExtensionAttribute..ctor&#39; <br><br>If it isn&#39;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>&nbsp;&nbsp;&nbsp; &lt;Reference Include=&quot;log4net, Version=<a href="http://1.2.10.0" target="_blank">1.2.10.0</a>, Culture=neutral, PublicKeyToken=1b44e1d426115821&quot; /&gt;<br>

&nbsp;&nbsp;&nbsp; &lt;Reference Include=&quot;Microsoft.Scripting, Version=1.0.0.5000, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;Reference Include=&quot;Microsoft.Scripting.Core, Version=1.0.0.5000, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL&quot; /&gt;<br>

&nbsp;&nbsp;&nbsp; &lt;Reference Include=&quot;IronPython, Version=2.0.0.5000, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;Reference Include=&quot;IronPython.Modules, Version=2.0.0.5000, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL&quot; /&gt;<br>

&nbsp;&nbsp;&nbsp; &lt;Reference Include=&quot;System&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;Reference Include=&quot;System.Core&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RequiredTargetFramework&gt;3.5&lt;/RequiredTargetFramework&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/Reference&gt;<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>