Software & Finance

Visual Studio.NET - SilverLight Application - XAP File

xap stands for the silverlight based application package. It is actually a. zip file containing the appmanifest.xaml file and the app.dll.


The bottom line is one .xap file good enough in your HTML and ASPX page to deploy the silverlight control.



<form id="form1" runat="server" style="height:100%">

    <div id="silverlightControlHost">

        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">

            <param name="source" value="Silverlight_SimpleArithmetic.xap"/>

            <param name="minRuntimeVersion" value="3.0.40818.0" />

            <param name="autoUpgrade" value="true" />           






The manifest information in .xap file will have the following similar content:


<Deployment xmlns=""


      xmlns:x=""       EntryPointAssembly="Silverlight_SimpleArithmetic"       EntryPointType="Silverlight_SimpleArithmetic.App"     RuntimeVersion="3.0.40818.0">




        <AssemblyPart x:Name="Silverlight_SimpleArithmetic"                  

            Source="Silverlight_SimpleArithmetic.dll" />