[IronPython] Compiling with Pyc for Silverlight

Dino Viehland dinov at microsoft.com
Mon Apr 20 17:18:30 CEST 2009

In theory there's just 1 IL re-write that's required for this to work.  And that should be replacing the references to mscorlib/IronPython to point at the Silverlight versions.  There's no way to directly have the written binaries target Silverlight because Reflection Emit has no cross-compilation support :(.

Do you know what's happening when trying to import packages?  

> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-
> bounces at lists.ironpython.com] On Behalf Of Michael Foord
> Sent: Monday, April 20, 2009 3:34 AM
> To: Discussion of IronPython
> Subject: [IronPython] Compiling with Pyc for Silverlight
> Hello guys,
> I'd like to modify Pyc to work with Silverlight. I tried it with simple
> modules and it works straightforwardly - but I have a report that it
> doesn't work with packages.
> I'll try it - but if anyone has any idea of how to modify the bytecode
> generation to target the CoreCLR it would be appreciated. As far as I
> can tell from looking at the source it isn't adding any direct
> references to the desktop assemblies. Any clues as to what changes I
> should make? (Other than running from Silverlight and serializing the
> generated assemblies from memory to base64 which I would prefer to
> avoid...).
> Michael
> --
> http://www.ironpythoninaction.com/
> http://www.voidspace.org.uk/blog
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

More information about the Ironpython-users mailing list