[Moonlight-list] How: Compiling Silverlight Apps?

technomage1972 dellis1972 at googlemail.com
Fri Nov 20 17:28:29 EST 2009


There are a couple of pre processing steps you need to go through before
getting the xaml files into your asswembly / 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
    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--tp26421397p26451262.html
Sent from the Moonlight mailing list archive at Nabble.com.

More information about the Moonlight-list mailing list