Xap file contents changes if built in Visual Studio or build server

Posted by arch on Stack Overflow See other posts from Stack Overflow or by arch
Published on 2010-05-13T16:11:54Z Indexed on 2010/05/14 4:34 UTC
Read the original article Hit count: 231

Filed under:
|
|
|
|

I'm using MEF with my Silverlight 4 app to dynamically load xap files. To optimize this process, I've removed various assemblies from my xaps since I know they've already been loaded by the base xap. This reduces the size of my dynamically loaded xaps. I accomplished this by setting the "Copy Local" flag for each assembly reference to "false".

This all seems to work fine when I build in Visual Studio 2010 - my xaps are much smaller. However, when the same projects are built by the build server, all the excluded references are once again in the xap file hence tripling the size of the xap.

I've read several blogs/articles regarding similar experiences but no resolution. Very frustrating - any help is appreciated.

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about MEF