[IronPython] defined in multiple assemblies (framework 3.5)

Dino Viehland dinov at microsoft.com
Tue Aug 19 00:30:52 CEST 2008


The only thing I can think of is to explicitly provide the list of assemblies (which I believe you can do through config) and exclude System.Core - of course that only works if you're not using any of the new features.  I haven't tried it though so maybe that doesn't work :(...  But I do believe ASP.NET via CodeDom is passing /noconfig to the compiler.

Another idea would be to lock your project back to .NET 2.0.   There's a new CompilerVersion tag that needs to be specified via config that was added w/ .NET 3.5.  You can set the version there to v2.0 and we'll then use the original C# 2.0 compiler.

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dody Gunawinata
Sent: Monday, August 18, 2008 2:01 PM
To: Discussion of IronPython
Subject: Re: [IronPython] defined in multiple assemblies (framework 3.5)

I'm having the same problem. That makes the two of us :) I'm trying to migrate from Beta 2 to Beta 4. Still diggin'

Dody G.
On Mon, Aug 18, 2008 at 9:53 PM, Fernando Correia <fernandoacorreia at gmail.com<mailto:fernandoacorreia at gmail.com>> wrote:
I'm getting lots of trouble trying to upgrade a C# project that
embedds IronPython from Beta 1 to Beta 4. We target the 3.5 framework.

The project has some assemblies and a website. I was able to make the
assemblies compile by adding a reference to Microsoft.Scripting.Core
and setting the alias to MSCore. In the source code where I use
IronPython I inserted this line: extern alias MSCore.

But in the website that uses these assemblies, I am getting 244 errors
like this: The predefined type
'System.Runtime.CompilerServices.ExtensionAttribute' is defined in
multiple assemblies in the global alias; using definition from
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET<http://ASP.NET>
Files\website\4ab7ec98\acce05f3\assembly\dl3\b6dd741b\00e0903e_70f2c801\microsoft.scripting.core.DLL'

and also: 'ExtensionAttribute' is ambiguous in the namespace
'System.Runtime.CompilerServices'. InternalXmlHelper.vb.

I can't see a way to assign an alias to a reference in the website,
since Microsoft.Scripting.Core.dll is just copied to the Bin
directory.

I think I have the latest version of the framework. Even installed the
Visual Studio 2008 Service Pack today, along with .NET Framework 3.5
SP1.

It seems I am stuck with Beta 1... can someone give me some help?
_______________________________________________
Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



--
nomadlife.org<http://nomadlife.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080818/061c7351/attachment.html>


More information about the Ironpython-users mailing list