Here&#39;s what we recommend as a workaround.<div><br></div><div>The CodePlex work item that tracks this request (<a href="http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=19126">http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=19126</a>) now contains a modified version of Microsoft.Scripting.ExtensionAttribute.dll. &nbsp;For this one particular case, where simultaneous referencing of the original version of our assembly and System.Core.dll causes problems, you can replace the &quot;shipping version&quot; of our DLL with the modified version. &nbsp;This will eliminate the &quot;is ambiguous&quot; error message.</div>
<div><br></div><div>The magic that makes this work is called &quot;type forwarding&quot;. &nbsp;The updated DLL simply contains a type forwarder to System.Core for the type System.Runtime.CompilerServices.ExtensionAttribute. &nbsp;As a result, there is no second copy of that class, and the CLR loader redirects all references from the rest of IronPython to System.Core.</div>
<div><div><br></div><div>This file, though strongly-named and signed, is even more &quot;not supported&quot; than the rest of IronPython :). &nbsp;By this I mean primarily that we haven&#39;t run any test passes using the new assembly, and don&#39;t plan to. &nbsp;However, as it doesn&#39;t actually contain any code, the risks from this modified version should be very small.</div>
<div><br></div><div>We hope to address this problem differently for the next release, but our promise to stay compatible with .NET 2.0 for this release has somewhat constrained the type of solution we are able to offer. &nbsp;Thanks for your patience!<br>
<br><div class="gmail_quote">On Thu, Oct 23, 2008 at 9:56 AM, Fernando Correia <span dir="ltr">&lt;<a href="mailto:fernandoacorreia@gmail.com">fernandoacorreia@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I&#39;m trying to upgrade from Beta 5 to RC1 and I&#39;m getting, again, errors trying to build an <a href="http://ASP.NET" target="_blank">ASP.NET</a> 3.5 website that uses IronPython.<br><br>The errors are similar to what happened with Beta 1:<br>

<br>(0,0): warning CS1685: The predefined type &#39;System.Runtime.CompilerServices.Ex<div>tensionAttribute&#39;
is defined in multiple assemblies in the global alias; using definition
from &#39;c:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll&#39;<br><br>InternalXmlHelper.vb(9,0): error BC30560: &#39;ExtensionAttribute&#39; is ambiguous in the namespace &#39;System.Runtime.CompilerServices&#39;.</div>

<br>I opened issue 19126 with more details.<br><br>Regards,<br><font color="#888888"><br>Fernando.<br><br><br>
</font><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>