> 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

Reply via email to