This is a mirror of official site: http://jasper-net.blogspot.com/

What is AppManifest.xaml in Silverlight?

| Sunday, May 8, 2011
Many of you don't aware of it in depth, mainly the freshers who just started doing their hands dirty with the light of Silver. In this post I am going to describe you about AppManifest.xaml file and it's uses in depth. Read the complete post to know more about it.
 
Don't forget to leave your feedback and/or any queries at the end of this post. Appreciate for reading this post.
 
 
The AppManifest.xaml file contains the deployment details needed to run the Silverlight application. The first element of it starts with a Deployment node which defines the Assembly information, Runtime version, Application Entry point and the assembly, extension parts.
 
You can find the complete AppManifest.xaml file inside the .XAP file. It is also available in the Silverlight project's Properties folder (named as "AppManifest.xml"), but you will find it almost empty there. Once you build your project, it gets generated by the IDE and placed inside your XAP file.
 
To find out it, build your solution and go to your Client Bin folder. Open your .XAP with a Zip utility. If you are unable to open that file, rename it to .Zip extension. You will be able to open now.

Once you open the AppManifest.xaml file, you will see the following code there:
 
 
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml
            EntryPointAssembly="AppManifestDemo1" 
            EntryPointType="AppManifestDemo1.App"
            RuntimeVersion="4.0.50826.0">
  <Deployment.Parts>
    <AssemblyPart x:Name="AppManifestDemo1" Source="AppManifestDemo1.dll" />
  </Deployment.Parts>
</Deployment>
 
 
The root element is the Deployment node. It defines the Entry Point Assembly, Entry Point Type (basically the main application class name with full namespace) and the Silverlight Runtime Version.
 
This node contains the Deployment.Parts and/or Deployment.ExternalParts as the child. The Deployment.Parts defines the Assembly Parts those are referenced in the project and present in the .XAP file. It also defines the main output dll as the Assembly part. As shown in the above figure, we have only one assembly in our XAP (the main project output) and hence only one entry in the AppManifest.xaml file.

Read more: Kunal's Blog

Posted via email from Jasper-net

0 comments: