Reduce XAP size by using application library caching setting causes warnings on missing files in ClientBin

1.4k Views Asked by At

When I enable the 'Reduce XAP size by using application library caching' setting on a project in Silverlight, I am finding that certain files are missing from my ClientBin folder and now show up in Visual Studio's solution explorer with the warning icon on them, such as System.Xml.Linq.zip and System.ServiceModel.DomainServices.Client.Web.zip. The vast majority of files copy however and have no warnings. I'm wondering if someone knows how to fix this? If I enable this setting, the missing files copy into ClientBin just fine. I'm assuming that they reason they are missing with the setting disabled is that they are contained within the XAP file, but then why is it still expecting them to be in the ClientBin and giving me the warning indicator icon.

1

There are 1 best solutions below

2
On

In the Properties Section of the files with the warning icon, check the Copy to Output Directory field. Change it to Copy Always. These are those references that you externally add to your project hence the inclusion in ClientBin is necessary. Also check the physical presence of the files in the directory.