[Ironpython-users] Compiling IronPython for .NET 2.0
jdhardy at gmail.com
Thu Jul 28 17:57:46 CEST 2011
On Thu, Jul 28, 2011 at 6:40 AM, Jimmy Schementi <jschementi at gmail.com> wrote:
> I'm a little confused about the issues, as with this simple patch:
> I'm able to build IronPython (using IronPython.Mono.sln as that still
> has v2Debug build configurations):
> msbuild Solutions\IronPython.Mono.sln /p:Configuration=v2Debug
> And run it, showing it's using .NET 2.0:
> D:\iron-main>bin\v2Debug\ipy.exe -V
> IronPython 3.0 18.104.22.168 on .NET 2.0.50727.5446
> How are you seeing issues with extension methods and IStrongBox?
The "v2" configurations actually target .NET 3.5. You'll have to edit
the .csproj file and change TargetFrameworkVersion to 2.0 to see how
it really builds. IStrongBox (and extension methods) were added in
3.5* and Markus wants to target pure .NET 2 (well, SP1, since that's
what IP 2.6 required). However, IP 2.6 had a workaround
(Microsoft.Scripting.ExtensionMethodAttribute) that allowed EM's to
work as long as you used the newer compiler, so I'm not sure why
that's now broken.
I wasn't planning on supporting < 3.5 in 2.7, but if someone provides
the patches, it certainly bears consideration.
I don't know why Markus' clients can't/won't upgrade to 3.5, but I'm
sure they're not good reasons. :)
* Remember that 3.5 runs on the .NET 2 CLR - whoever was responsible
for *that* numbering decision should be tarred and feathered.
> On Thu, Jul 28, 2011 at 4:31 AM, Markus Schaber
> <m.schaber at 3s-software.com> wrote:
>> Von: Markus Schaber
>>> > > [Compiling IPy 2.7 for a pure .NET 2.0]
>>> > I did try to patch some of the problems
>>> > git at github.com:markusschaber/IronLanguages.git (2.7-maint branch)
>>> > Now I have about 270 problems mostly relating to extension methods,
>>> > maybe I will find enough time to fix some of them this evening.
>>> Apart from the straight forward task of resolving all the extension
>>> methods, there seems to be one Problem which is not solvable that
>>> The IStrongBox interface is missing in .NET 2.0, and I do have enough
>>> internal knowledge to see whether we can replace it with our own
>> I wanted to say: I do _not_ have enough internal knowledge...
>> Best regards
>> Markus Schaber
>> We software Automation.
>> 3S-Smart Software Solutions GmbH
>> Markus Schaber | Developer
>> Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 |
>> Fax +49-831-54031-50
>> Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com
>> CoDeSys internet forum: http://forum.3s-software.com
>> Download CoDeSys sample projects:
>> Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner |
>> Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
>> Ironpython-users mailing list
>> Ironpython-users at python.org
> Ironpython-users mailing list
> Ironpython-users at python.org
More information about the Ironpython-users