Reducing XAP Size in Silverlight and Problems

We were having problem with reducing XAP size. Basically third party were not getting picked automatically with the “Application Library Caching” in silverlight.

So searched a little we found out that based on following articals, we needed to have “.extmap.xml” for each assembly that we used in Silverlight.

For Instance InfragisticsSL4.Controls.Editors.v10.3.extmap.xml, now this file contains following mapping xml for that assembly.

<?xml version=”1.0″?>
<manifest xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema“>
  <assembly>
    <name>InfragisticsSL4.Controls.Editors.v10.3</name>
    <version>10.3.20103.1006</version>
    <publickeytoken>7dd5c3163f2cd0cb</publickeytoken>
    <relpath>InfragisticsSL4.Controls.Editors.v10.3.dll</relpath>
    <extension downloadUri=”InfragisticsSL4.Controls.Editors.v10.3.zip” />
  </assembly>
</manifest>

NOTE:

  1. version, publickeytoken should be same as per assembly.
  2. The ExtMap XML files need to be at the Location from where you added refrence to silverlight project. (like some seperate folder for assemblies)
  3. You can download EMM tool fromhttp://blogs.microsoft.co.il/blogs/alex_golesh/archive/2009/07/16/small-utility-extmap-maker.aspx and make your life easy.

References:

http://forums.esri.com/Thread.asp?c=158&f=2455&t=297234

http://blogs.microsoft.co.il/blogs/alex_golesh/archive/2009/07/16/small-utility-extmap-maker.aspx

Thanks,