Hi Lukas, the clrtype fix for http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26249 is indeed in in 2.6.1.
About this Silverlight error, I am not sure. Including the mailing list in case someone else can help. error CS1685 : Warning as error : The predefined type 'System.Runtime.InteropSe rvices.DefaultParameterValueAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\IronPython_Main\Src\Runtime\Microsoft. Scripting.Core\Stubs.cs' Done Building Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\ Microsoft.Scripting.Core.csproj" (default targets) -- FAILED. From: Lukas Cenovsky [mailto:cenov...@bakalari.cz] Sent: Friday, March 12, 2010 7:47 AM To: Shri Borde Subject: Re: [IronPython] clrtype: How to subclass ClrClass? Unfortunately I am unable to build IronPython for Silverlight. Is it currently broken or do I do something wrong? C:\IronPython_Main\Src>c:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe IronP ython.sln /p:Configuration="Silverlight Release" Microsoft (R) Build Engine Version 3.5.30729.4926 [Microsoft .NET Framework, Version 2.0.50727.4927] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 12.3.2010 16:40:57. Project "C:\IronPython_Main\Src\IronPython.sln" on node 0 (default targets). Building solution configuration "Silverlight Release|Any CPU". Project "C:\IronPython_Main\Src\IronPython.sln" (1) is building "C:\IronPython_ Main\Src\Runtime\Microsoft.Scripting.Core\Microsoft.Scripting.ExtensionAttribut e.csproj" (2) on node 0 (default targets). Project file contains ToolsVersion="4.0", which is not supported by this versio n of MSBuild. Treating the project as if it had ToolsVersion="3.5". PrepareForBuild: Creating directory "C:\IronPython_Main\Src\..\Bin\Silverlight Release\". CopyFilesToOutputDirectory: Copying file from "obj\Silverlight Release\Microsoft.Scripting.ExtensionAttri bute.dll" to "C:\IronPython_Main\Src\..\Bin\Silverlight Release\Microsoft.Scr ipting.ExtensionAttribute.dll". Microsoft.Scripting.ExtensionAttribute -> C:\IronPython_Main\Bin\Silverlight Release\Microsoft.Scripting.ExtensionAttribute.dll Copying file from "obj\Silverlight Release\Microsoft.Scripting.ExtensionAttri bute.pdb" to "C:\IronPython_Main\Src\..\Bin\Silverlight Release\Microsoft.Scr ipting.ExtensionAttribute.pdb". Done Building Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\ Microsoft.Scripting.ExtensionAttribute.csproj" (default targets). Project "C:\IronPython_Main\Src\IronPython.sln" (1) is building "C:\IronPython_ Main\Src\Runtime\Microsoft.Scripting.Core\Microsoft.Scripting.Core.csproj" (3) on node 0 (default targets). Project file contains ToolsVersion="4.0", which is not supported by this versio n of MSBuild. Treating the project as if it had ToolsVersion="3.5". Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\Microsoft.Scri pting.Core.csproj" (3) is building "C:\IronPython_Main\Src\Runtime\Microsoft.Sc ripting.Core\Microsoft.Scripting.ExtensionAttribute.csproj" (2:2) on node 0 (Ge tTargetPath target(s)). Project file contains ToolsVersion="4.0", which is not supported by this versio n of MSBuild. Treating the project as if it had ToolsVersion="3.5". Done Building Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\ Microsoft.Scripting.ExtensionAttribute.csproj" (GetTargetPath target(s)). Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\Microsoft.Scri pting.Core.csproj" (3) is building "C:\IronPython_Main\Src\Runtime\Microsoft.Sc ripting.Core\Microsoft.Scripting.ExtensionAttribute.csproj" (2:3) on node 0 (Ge tNativeManifest target(s)). Project file contains ToolsVersion="4.0", which is not supported by this versio n of MSBuild. Treating the project as if it had ToolsVersion="3.5". Done Building Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\ Microsoft.Scripting.ExtensionAttribute.csproj" (GetNativeManifest target(s)). error CS1685 : Warning as error : The predefined type 'System.Runtime.InteropSe rvices.DefaultParameterValueAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\IronPython_Main\Src\Runtime\Microsoft. Scripting.Core\Stubs.cs' Done Building Project "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\ Microsoft.Scripting.Core.csproj" (default targets) -- FAILED. Done Building Project "C:\IronPython_Main\Src\IronPython.sln" (default targets) -- FAILED. Build FAILED. "C:\IronPython_Main\Src\IronPython.sln" (default target) (1) -> "C:\IronPython_Main\Src\Runtime\Microsoft.Scripting.Core\Microsoft.Scripting.Co re.csproj" (default target) (3) -> (CoreCompile target) -> error CS1685 : Warning as error : The predefined type 'System.Runtime.Interop Services.DefaultParameterValueAttribute' is defined in multiple assemblies in t he global alias; using definition from 'c:\IronPython_Main\Src\Runtime\Microsof t.Scripting.Core\Stubs.cs' 0 Warning(s) 1 Error(s) Time Elapsed 00:00:01.53 This works fine: c:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe IronPython.sln -- -- Lukáš Lukas Cenovsky wrote: Hi Shri, I have built IronPython Main (I should have known it is so easy :-) and I verified the fix works for me there. I hope it will get into 2.6.1. Thanks. -- -- Lukáš Lukas Cenovsky wrote: Hi Shri, I haven't tried to build IronPython from source yet and I do not have time to test it now (maybe it's easy - I don't know). But I saw the fix is checked in, so I wait for your next build, try it there and let you know. Thanks a lot. -- -- Lukáš Shri Borde wrote: Hi Lukas, I have attached a patch to the bug. If you build from source, you can get the fix. I will also check if we can get it into 2.6.1 or not, but I need to chat with Dino about how impactful the change is From: users-boun...@lists.ironpython.com<mailto:users-boun...@lists.ironpython.com> [mailto:users-boun...@lists.ironpython.com] On Behalf Of Shri Borde Sent: Thursday, February 18, 2010 11:51 AM To: Lukas Cenovsky; Discussion of IronPython Subject: Re: [IronPython] clrtype: How to subclass ClrClass? Sorry, I have not, and unfortunately will not be able to get to it until next week. Please vote on http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26249 if you want to see it fixed in 2.6.1. Depending on the fix, it might have to wait until after 2.6.1 From: Lukas Cenovsky [mailto:cenov...@bakalari.cz] Sent: Thursday, February 18, 2010 5:29 AM To: Shri Borde Subject: Re: [IronPython] clrtype: How to subclass ClrClass? Hello Shri, have you had chance to look at this bug? -- -- Lukáš Shri Borde wrote: It is a know bug. I can take a look next week. -----Original Message----- From: users-boun...@lists.ironpython.com<mailto:users-boun...@lists.ironpython.com> [mailto:users-boun...@lists.ironpython.com] On Behalf Of Michael Foord Sent: Saturday, February 06, 2010 4:10 AM To: Discussion of IronPython Subject: Re: [IronPython] clrtype: How to subclass ClrClass? On 06/02/2010 11:19, Lukas Cenovsky wrote: Hi all, it looks like I cannot subclass a class based on ClrClass metaclass: IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.4927 Type "help", "copyright", "credits" or "license" for more information. import clr import clrtype class Product(object): ... __metaclass__ = clrtype.ClrClass ... p = Product() print "CLR type name: %s" % p.GetType().FullName CLR type name: Product class MyProduct(Product): ... pass ... Traceback (most recent call last): File "<stdin>", line 1, in <module> KeyError: The given key was not present in the dictionary. Is it a bug or am I doing something wrong? Thanks. Hehe, I ran into this a couple of days ago on Silverlight as well. All the best, Michael -- -- Lukáš _______________________________________________ Users mailing list Users@lists.ironpython.com<mailto:Users@lists.ironpython.com> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com