Shrinking Silverlight XAP Files

27. March 2010

Read this article in your language IT | EN | DE | ES

Was looking for several ways to shrink my 2mb Silverlight XAP file.

Preferences-system.svgI ran across ComponentOne’s XAPOptimzer. However, the online demo failed considerably.  I uploaded my 2mb file and then it just timed out. Tried it twice.

image

Preferences-system.svgGiving up on that I came across Delay’s XAP Shrinker.  The thing I didn’t like about this one is that it requires you to have a zip and unzip in the same folder.  This, though you can auto run after your build which is nice.

Preferences-system.svgThe third tool I came across, ReXapper, which used the same concept as Delay’s but had everything built in and you could run from visual studio. This is the source code, you can compile the etc..

I created a very small application called ReXapper.exe which can do exactly the same as Delay describes but there is no external archiving utility necessary. It uses the SharpZipLib to re-zip the file. So there's just a tiny (124 kb) command-line executable.”  

However, upon using this my xap file actually GREW in size!! (XAP file is rexapped, old size: 2120567, new size: 2120605, time: 439) wtf lol scary.  So back to the drawing board.  I’ve read about using PNG compressors also to shrink your images down.

Nuvola apps edu languages.gifAlso found a good post on it here.

SilverLight, Web Tools , , ,

Comments

8/12/2010 4:59:22 AM #
good post