If you create Windows Phone 8 App in Visual Studio and reference any libs with XML documentation files supplied from nuget or manually, Visual Studio will automatically pack those XML files into output XAP as well.
In our case this weird behavior of Visual Studio increases XAP size almost twice. (We have 8Mb of xml docs in total.)
There is no such problem for WP7 app projects.
How to reduce the size of the xap file by forcing Visual Studio not to pack unnecessary documentation files?
Update 14/02/2013:
Steps to reproduce the issue:
- Create Windows Phone 8 App project using Visual Studio
- Reference “Reactive Extensions – Main Library” using NuGet package manager
- Build solution
- Go to Bin folder and unpack XAP archive
You will find there lots of unnecessary XML doc files like “System.Reactive.Core.xml”
I believe this is security issue, because if you enable XML doc generation for your project (or other projects in solution), those XML docs will be packed into XAP as well – this is highly undesirable when anyone may read comments to your code.