This is a migrated thread and some comments may be shown as answers.

Issues with Application Library Caching

1 Answer 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
João
Top achievements
Rank 2
João asked on 24 Sep 2010, 02:25 PM
Hi,

I have a prism based solution where both my shell and modules are marked to use application library caching. I'm caching libraries from prism, telerik and silverlight toolkit. The only problem I have is that in my Shell's AppManifest Visual Studio generates more ExternalParts that reference directly each Telerik assembly that I use..but I want to pack all telerik assemblies in a file called Telerik_2_0812_1040.zip because of upgrade versions.

I have done this with prism and silverlight toolkit and VS doesn't generate a new External Part in my xap, so it works well. The only problem are with Telerik Controls because when a client downloads the main xap the browser will try to download each Telerik assembly referenced in the ExternalParts that VS generated and also the Telerik_2_0812_1040.zip file that I manually specified.

I noticed that this only happened after I installed my licensed version of Telerik Controls for Silverlight. Before that, VS wouldn't generate the Telerik assembly ExternalParts simply because I deleted the .extmap files from my libraries folder.

So I went to C:\Program Files x86\Telerik\etc and deleted the .extmap files that were there and voila, Visual Studio doesn't add any more External Parts in my shell's AppManifest..it does worse, he includes the telerik assemblies in the xap itself, even though they are marked with Copy Local as False.

Just a little more info: my Shell doesn't have ANY DIRECT reference to Telerik assemblies. Instead I reference (Copy Local TRUE) another project that uses about 9 Telerik assemblies marked as Copy Local FALSE. Could this be the reason? Do I need to create DIRECT references for Telerik assemblies in my shell xap and mark them with Copy Local FALSE just to tell VS not to include those assemblies in the xap?

As of my writing, I just tried to reference the telerik assemblies in the shell xap and mark them as copy local false and it worked. VS doesn't generate External Parts nor includes the assemblies in the xap. So, maybe this is a bug on VS? Just because I include a reference with copy local as True to a project that has assemblies marked as copy local false, VS thinks that those assemblies are meant to be included in the xap.

Does anyone else has had similar issues?

Best regards,
Manuel FelĂ­cio.

1 Answer, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 30 Sep 2010, 02:08 PM
Hello Mario,

 For me it sounds like a bug in VS. Although from another point, it make sense, because VS won't Copy the telerik assemblies locally (in the bin of the second project), but the main project will get the referenced assembly(since it's CopyLocal = true) with all assemblies that it's using. 
Well, it will also be interesting to hear answer from MS guys. You may consider posting the question in some of their forums - I guess they will be able to shed more light on this.

Sincerely yours,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
João
Top achievements
Rank 2
Answers by
Miro Miroslavov
Telerik team
Share this question
or