So setting the RuntimeVersion in the Chiron.exe.config to 4.0.50401.0
(and also updating our Silverlight binaries to the standard IronPython
2.6.1 version - which I *thought* I had already done) works!
We now have a Silverlight Rich Text Editor working in our app. Still a
bit of work to fully integrate it, but it is now possible.
http://skitch.com/fuzzyman/dy8qe/silverlight-template
Many Thanks!
Michael
On 23/04/2010 01:53, Jimmy Schementi wrote:
On 23/04/2010 00:10, Lukas Cenovsky wrote:
I think when AppManifest.xaml is in app folder, Chiron won't generate it.
That is correct - which means when we add (or remove) an assembly we
have to also manually add it to the AppManifest because Chiron will no
longer do it for us...
You don't need to save the AppManifest.xaml to disk, just change
Silverlight\bin\Chiron.exe.config (in your IronPython installation directory). It's a very
simple change to the<AppManifest.xaml> section: where it says RuntimeVersion change its
value to "4.0.50401.0". This will cause Chiron.exe to generate the appropriate
AppManifest.xaml for you, regardless of whether or not you want to generate it to disk.
However, if you don't want to change every installation of IronPython that you have, saving the
AppManifest.xaml to disk is totally fine, and will still work in the scenario you're
describing. Chiron does NOT do any detection of assemblies in your app and add them to the
AppManifest.xaml, because it doesn't need to. The AppManifest.xaml's<AssemblyParts>
section is the equivalent of "Add Reference" in a C# Silverlight app. In Python, that
just translates to a clr.AddReferenceToFile; there is no need to list it in the
AppManifest.xaml. Even listing it in the AppManfiest.xaml still requires you to do use
clr.AddReferenceToFile, as the DLR integration does not load AssemblyParts for Python to use
(maybe it should, but it doesn't today).
~Jimmy
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
--
http://www.ironpythoninaction.com/
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com