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-boun...@lists.ironpython.com [mailto:users- > boun...@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@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