[Moonlight-list] How: Compiling Silverlight Apps?
nate at nutty.ca
Sat Nov 21 23:34:53 EST 2009
Thanks Technomage, that's exactly what I was looking for.
> There are a couple of pre processing steps you need to go through before
> getting the xaml files into your assembly / app.
> 1) you need to use a tool xamlg to compile your xaml into a
> you need to call it
> xamlg -sl2app:<AssemblyName> <Xaml file>,<Xaml Files>.g.cs
> for this for all your xaml files
> 2) you then need to use respack to put all your xaml files into one file
> respack <Assembly>.g.resources file1.xaml,file1.xaml
> you might be wondering why you specify file1.xaml twice with a comma? the
> part before the comma is the name of the file , the part after it is the
> resource key.
> 3) now compile your source using smcs includng all the xaml.g.cs files you
> created and the .g.resources.
> The g.resources file is included using -resource:<assembly>.g.resources ,
> the xaml.g.cs files can be included just like normal cs files
> The alternative is to use MonoDevelope which will do all of this for you,
> Michael Hutchinson has blogged about how to do this.
View this message in context: http://old.nabble.com/How%3A-Compiling-Silverlight-Apps--tp26421397p26462786.html
Sent from the Moonlight mailing list archive at Nabble.com.
More information about the Moonlight-list