[Moonlight-list] How: Compiling Silverlight Apps?

TheNut nate at nutty.ca
Sat Nov 21 23:34:53 EST 2009


Thanks Technomage, that's exactly what I was looking for.



technomage1972 wrote:
> 
> Hi
> 
> 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
> <file>.xaml.g.cs
>       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
> <AssemblyName>.g.resources
>  
>     respack <Assembly>.g.resources  file1.xaml,file1.xaml
> files2.xaml,files2.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. 
> 
> 
> http://mjhutchinson.com/journal/2009/05/08/moonlight_development_linux_monodevelop
> http://mjhutchinson.com/journal/2009/05/08/moonlight_development_linux_monodevelop 
> 
> Dean
> 

-- 
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 mailing list