top button
Flag Notify
Site Registration

What is the AppManifest.xml file?

+1 vote
500 views
What is the AppManifest.xml file?
posted May 11, 2015 by Karthi Kumar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

First, let’s look at an example AppManifest.xaml file:

<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  EntryPointAssembly="SilverlightApplication1" 
  EntryPointType="SilverlightApplication1.App" 
  RuntimeVersion="2.0.30226.2">
    <Deployment.Parts>
        <AssemblyPart x:Name="SilverlightApplication1" 
           Source="SilverlightApplication1.dll" />
        <AssemblyPart x:Name="System.Windows.Controls" 
           Source="System.Windows.Controls.dll" />
        <AssemblyPart x:Name="System.Windows.Controls.Extended" 
           Source="System.Windows.Controls.Extended.dll" />
    </Deployment.Parts>
</Deploymnt>

The first element in AppManifest.xaml is a Deployment node. This node defines the application, and contains the child AssemblyPart nodes.

As you can see the AssemblyPart nodes define what assemblies (DLLs) are contained within the .xap file, and give each of them a name.

Now, if you look back up to the top, you'll see the Deployment node has the EntryPointAssembly and EntryPointType attributes. The EntryPointAssembly attribute defines which assembly defined below (as a child AssemblyPart node) is the main assembly (DLL) for the application. And, the EntryPointType attribute specifies the class contained within the assembly (DLL), defined in the EntryPointAssembly attribute, is the main class that will be instantiated to start the application.

The Deployment node also has a RuntimeVersion attribute that defines the version of Silverlight the application is built for.

answer May 12, 2015 by Jdk
Similar Questions
...