[IronPython] Building IronPython from sources
dfugate at microsoft.com
Tue Jul 27 17:31:17 CEST 2010
I'd actually suggest doing this with 2.7 Alpha 1 sources...
Building 2.6.1 requires a Silverlight 3.x installation as there were changes to System.Core (e.g., System.Func) between Silverlight 3.x and Silverlight 4.x. As you've discovered, we implemented some of this missing System.Core functionality ourselves in 2.6.1 which is confusing the compiler when there's references to both (4.x) System.Core and MS.Scripting.Utils. If you can't get your hands on a Silverlight 3.x installation to fix this, the next easiest route IMO would be to use 2.7A1 instead.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky
Sent: Tuesday, July 27, 2010 8:09 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Building IronPython from sources
Thanks. Copying my current Silverlight version 4.0.50524.0 to 3.0.50106.0 helped and Microsoft.Scripting.dll compiles fine. Now I get many following errors for Microsoft.Dynamic.dll:
Error 1 'Func' is an ambiguous reference between 'System.Func<T0,T1,T2,T3,T4,TRet>' and 'Microsoft.Scripting.Utils.Func<T0,T1,T2,T3,T4,TRet>' C:\IronPython-2.6.1\Src\Runtime\Microsoft.Dynamic\Interpreter\Instructions\CallInstruction.Generated.cs 278 70 Microsoft.Dynamic
How can I tell Visual Studio to use reference from Microsoft.Scripting.Utils? Thanks.
On 26.7.2010 18:21, Dave Fugate wrote:
Hi Lukas, the error message below is because you don't have the version of Silverlight installed which was used to build IronPython 2.6.1. For this particular release, I believe it was something like "%ProgramFiles%\Microsoft Silverlight\3.0.40624.0". You can find out for sure by examining the "<Silverlight3Path>" element in Src\IronPython\IronPython.csproj. Any ways, there are two workarounds:
Replace all instances of "3.0.40624.0" throughout all C# project files with the version of Silverlight you have installed locally
Copy and rename the version of Silverlight you have installed to whatever is expected by the C# project files
Hope that helps,
From: users-bounces at lists.ironpython.com<mailto:users-bounces at lists.ironpython.com> [mailto:users-bounces at lists.ironpython.com] On Behalf Of Lukas Cenovsky
Sent: Friday, July 23, 2010 12:37 PM
To: Discussion of IronPython
Subject: [IronPython] Building IronPython from sources
I have one wish for the next release of IronPython 2.6.2 (hope it is not too late...) - please make sure it is possible to build IronPython binaries from sources. I have downloaded IronPython-2.6.1-Src-Net20SP1.zip<http://ironpython.codeplex.com/releases/view/36280#DownloadId=116512> and I there is no way for me to build Silverlight binaries from it...
I have opened the solution in VS 2010, solution file was converted to the new version, I selected 'Silverlight Debug' as a solution configuration and I received meny errors as below when building Microsoft.Scripting.dll:
Error 11 The type 'System.SerializableAttribute' exists in both 'c:\IronPython-2.6.1\Bin\Silverlight Debug\Microsoft.Scripting.Core.dll' and 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll' C:\IronPython-2.6.1\Src\Runtime\Microsoft.Scripting\ArgumentTypeException.cs 20 6 Microsoft.Scripting
Error 12 The type or namespace name 'Serializable' could not be found (are you missing a using directive or an assembly reference?) C:\IronPython-2.6.1\Src\Runtime\Microsoft.Scripting\ArgumentTypeException.cs 20 6 Microsoft.Scripting
My goal was to build debug-able Microsoft.Scripting.Silverlight.dll because I'm receiving AddReference error which I'd like to inspect.
Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users