<div dir="ltr"> <assemblies><br> <add assembly="System.Core, Version=<a href="http://3.5.0.0">3.5.0.0</a>, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><br> <add assembly="System.Web.Extensions, Version=<a href="http://3.5.0.0">3.5.0.0</a>, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><br>
<add assembly="System.Data.DataSetExtensions, Version=<a href="http://3.5.0.0">3.5.0.0</a>, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><br> <add assembly="System.Xml.Linq, Version=<a href="http://3.5.0.0">3.5.0.0</a>, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><br>
<add assembly="System.Web.Entity, Version=<a href="http://3.5.0.0">3.5.0.0</a>, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><br> <add assembly="Microsoft.Scripting.Core, Version=1.0.0.4000, Culture=neutral, PublicKeyToken=1f108baf14f877c2, processorArchitecture=MSIL" /><br>
</assemblies><br><br>This is how the web.config refers to the assembly in GAC.<br><br>and this is the compiler options<br><br>compilerOptions="/reference:DLR=c:\Microsoft.Scripting.Core.dll"<br><br><br>
and this is the error.<br><br>(0,0): error CS1703: An assembly with the same identity 'Microsoft.Scripting.Core, Version=1.0.0.4000, Culture=neutral, PublicKeyToken=1f108baf14f877c2' has already been imported. Try removing one of the duplicate references.<br>
<br><br><div class="gmail_quote">On Tue, Aug 19, 2008 at 8:48 PM, Dino Viehland <span dir="ltr"><<a href="mailto:dinov@microsoft.com">dinov@microsoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">But can't you leave the assembly in the GAC and have <a href="http://ASP.NET" target="_blank">ASP.NET</a>
pick it up from there? It should be that it can be referenced for compilation
from one spot and loaded from the GAC.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>
[mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>] <b>On Behalf Of </b>Dody Gunawinata<br>
<b>Sent:</b> Tuesday, August 19, 2008 10:46 AM<div><div></div><div class="Wj3C7c"><br>
<b>To:</b> Dino Viehland<br>
<b>Cc:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] defined in multiple assemblies (framework 3.5)</div></div></span></p>
</div><div><div></div><div class="Wj3C7c">
<p> </p>
<div>
<p style="margin-bottom: 12pt;">Nope. This compiles well but it
won't be available for code behind. ASP.Net can only compiles dll located
either on the GAC or under /bin directory.<br>
<br>
If I put Microsoft.Scripting.Core under /bin and this option, it will generate
error<br>
<br>
"Error 10 An assembly with the same
identity 'Microsoft.Scripting.Core, Version=1.0.0.4000, Culture=neutral,
PublicKeyToken=1f108baf14f877c2' has already been imported. Try removing one of
the duplicate references. <br>
"<br>
<br>
<br>
<br>
</p>
<div>
<p>On Tue, Aug 19, 2008 at 8:34 PM, Dino Viehland <<a href="mailto:dinov@microsoft.com" target="_blank">dinov@microsoft.com</a>> wrote:</p>
<div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Ahh, apparently csc can't pick
up assemblies out of the gac… </span><span style="font-size: 11pt; font-family: Wingdings; color: rgb(31, 73, 125);">L</span><span style="font-size: 11pt; color: rgb(31, 73, 125);"> But you should be able to copy
Microsoft.Scripting.Core.dll anywhere you want and then reference it. Now
that it's in the GAC it should get picked up… So I believe the final
answer should be something like:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">/r:DLR="C:\Microsoft.Scripting.Core.dll"</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Where C:\ is some directory
where you decide to stash the DLL.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>
[mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>]
<b>On Behalf Of </b>Dody Gunawinata<br>
<b>Sent:</b> Tuesday, August 19, 2008 10:24 AM</span></p>
<div>
<div>
<p><span style="font-size: 10pt;"><br>
<b>To:</b> Dino Viehland<br>
<b>Cc:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] defined in multiple assemblies (framework 3.5)</span></p>
</div>
</div>
</div>
<div>
<div>
<p> </p>
<div>
<p style="margin-bottom: 12pt;"><i>I might be doing something wrong</i>, <i>but
Microsoft.Scripting.Core.dll is definitely in the GAC.</i><br>
<br>
(No space)<br>
compilerOptions="/reference:DLR=Microsoft.Scripting.Core,Version=1.0.0.4000,Culture=neutral,PublicKeyToken=31bf3856ad364e35,processorArchitecture=MSIL"<br>
generates<br>
<br>
"Error 10 A /reference option that
declares an extern alias can only have one filename. To specify multiple
aliases or filenames, use multiple /reference options."<br>
<br>
(Quotes)<br>
compilerOptions='/reference:DLR="Microsoft.Scripting.Core,
Version=1.0.0.4000, Culture=neutral, PublicKeyToken=31bf3856ad364e35,
processorArchitecture=MSIL"'<br>
<br>
Error 10 Metadata file
'Microsoft.Scripting.Core,Version=1.0.0.4000,Culture=neutral,PublicKeyToken=31bf3856ad364e35,processorArchitecture=MSIL'
could not be found <br>
<br>
</p>
<div>
<p>On Tue, Aug 19, 2008 at 8:13 PM, Dino Viehland <<a href="mailto:dinov@microsoft.com" target="_blank">dinov@microsoft.com</a>>
wrote:</p>
<div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Have you tried quotes? It
should just be getting passed to the command line so maybe quotes need to be
present for the compiler to recognize it correctly – or maybe just removing the
spaces will work.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Dody Gunawinata [mailto:<a href="mailto:empirebuilder@gmail.com" target="_blank">empirebuilder@gmail.com</a>] <br>
<b>Sent:</b> Tuesday, August 19, 2008 10:13 AM</span></p>
<div>
<div>
<p><span style="font-size: 10pt;"><br>
<b>To:</b> Dino Viehland<br>
<b>Cc:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] defined in multiple assemblies (framework 3.5)</span></p>
</div>
</div>
</div>
<div>
<div>
<p> </p>
<div>
<p style="margin-bottom: 12pt;">hmm..still not working. ASP.Net reads those
four qualifier as four additional assemblies.<br>
<br>
Error 10 Source file 'Version=1.0.0.4000,'
could not be found <br>
Error 11 Source file 'Culture=neutral,'
could not be found <br>
Error 12 Source file
'PublicKeyToken=31bf3856ad364e35,' could not be found
<br>
Error 13 Source file
'processorArchitecture=MSIL}' could not be found
</p>
<div>
<p>On Tue, Aug 19, 2008 at 7:43 PM, Dino Viehland <<a href="mailto:dinov@microsoft.com" target="_blank">dinov@microsoft.com</a>>
wrote:</p>
<div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Doh! I forgot you
probably need to use the fully qualified assembly name -
/reference:DLR=Microsoft.Scripting.Core, Version=1.0.0.4000, Culture=neutral,
PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Dody Gunawinata [mailto:<a href="mailto:empirebuilder@gmail.com" target="_blank">empirebuilder@gmail.com</a>] <br>
<b>Sent:</b> Tuesday, August 19, 2008 9:40 AM<br>
<b>To:</b> Dino Viehland<br>
<b>Cc:</b> Discussion of IronPython</span></p>
<div>
<div>
<p><span style="font-size: 10pt;"><br>
<b>Subject:</b> Re: [IronPython] defined in multiple assemblies (framework 3.5)</span></p>
</div>
</div>
</div>
<div>
<div>
<p> </p>
<div>
<p style="margin-bottom: 12pt;">Yikes..<br>
<br>
"Error 19 Metadata file
'Microsoft.Scripting.Core.dll' could not be found". This is weird.
<br>
<br>
<br>
<compiler language="c#;cs;csharp" extension=".cs"
warningLevel="4"<br>
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=<a href="http://2.0.0.0" target="_blank">2.0.0.0</a>, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
compilerOptions="/reference:DLR=Microsoft.Scripting.Core.dll"><br>
<providerOption
name="CompilerVersion" value="v3.5"/><br>
<providerOption
name="WarnAsError" value="false"/><br>
</compiler></p>
<div>
<p>On Tue, Aug 19, 2008 at 7:00 PM, Dino Viehland <<a href="mailto:dinov@microsoft.com" target="_blank">dinov@microsoft.com</a>>
wrote:</p>
<p>Ok, another thought... can you GAC the DLR assemblies and then add an
updated compilers tag to web.config which includes the alias? Something
like:<br>
<br>
<system.codedom><br>
<compilers><br>
<compiler language="c#;cs;csharp"
extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,
System, Version=%ASSEMBLY_VERSION%, Culture=neutral,
PublicKeyToken=%ECMA_PUBLICKEY%" warningLevel="1"
compilerOptions="/reference:DLR=Microsoft.Scripting.Core.dll"/><br>
</compilers><br>
</system.codedom></p>
<div>
<p style="margin-bottom: 12pt;"><br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>
[mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>]
On Behalf Of Fernando Correia<br>
Sent: Tuesday, August 19, 2008 4:19 AM<br>
To: <a href="mailto:dody@nomadlife.org" target="_blank">dody@nomadlife.org</a>;
Discussion of IronPython<br>
Subject: Re: [IronPython] defined in multiple assemblies (framework 3.5)</p>
</div>
<div>
<div>
<p>That's a huge issue for my project. I'm trying to leverage the DLR and<br>
IronPython on a <a href="http://ASP.NET" target="_blank">ASP.NET</a>
application that targets 3.5. I hope there is<br>
a work-around.<br>
<br>
2008/8/19 Dody Gunawinata <<a href="mailto:empirebuilder@gmail.com" target="_blank">empirebuilder@gmail.com</a>>:<br>
> - This pretty much locks up IronPython 2 from any .Net 3.5 based website.<br>
> The ASP.Net MVC framework is based on .Net 3.5 too and they use a bunch of<br>
> System.Core facilities in their code base. The nicest thing about .Net 3.5<br>
> is to be able to use LINQ on code behind and right now when I compile my<br>
> application, I got a bunch of warnings about duplicated LINQ definition<br>
> methods existing in 2 assemblies. Now I cannot use Action<> or
Func<> in<br>
> code behind.<br>
><br>
> - I think this will prevent the next IP for ASP.Net to be able to use .Net<br>
> 3.5 libraries.</p>
</div>
</div>
<div>
<div>
<p>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank">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></p>
</div>
</div>
</div>
<p style="margin-bottom: 12pt;"><br>
<br clear="all">
<br>
-- <br>
<a href="http://nomadlife.org" target="_blank">nomadlife.org</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p style="margin-bottom: 12pt;"><br>
<br clear="all">
<br>
-- <br>
<a href="http://nomadlife.org" target="_blank">nomadlife.org</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p style="margin-bottom: 12pt;"><br>
<br clear="all">
<br>
-- <br>
<a href="http://nomadlife.org" target="_blank">nomadlife.org</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p style="margin-bottom: 12pt;"><br>
<br clear="all">
<br>
-- <br>
<a href="http://nomadlife.org" target="_blank">nomadlife.org</a></p>
</div>
</div></div></div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br><a href="http://nomadlife.org">nomadlife.org</a><br><br>
</div>