I have 3 different Silverlight Projects for 3 different Modules.
In each silverlight project, we will be adding reference dll which will be added in to their XAP file.
Eg -
System.Xml.Linq.dll
System.Windows.Controls.Input.dll
These dlls will be used in all the 3 silverlight projects.
By adding reference to these dll in each project, it will be present in all the 3 XAP files.
Is there a way to have these common dll in a seperate folder, so that these 3 silverlight projects can share them ?
Loading

Jaganathan BantheswaranPosted Jul 12, 2011, 9:54 AM
Manikavelu VelayuthamPosted Jul 12, 2011, 8:29 AM
- Training
- Recruiting
- Employee Details
Here each module will be a seperate project. But there are some dll's which are used in all the three modules. Its a duplication, right ?Consider the referenced dll Size is 1MB. If I have it in all the three XAP, so am downloading 3MB extra. Instead If I have it in one location, I will be downloading only one MB.
Before Removing Referenced DLL - 8MB
Training.XAP - 3MB (Referenced DLL)
Recruiting.XAP - 2MB (Referenced DLL)
Employee.XAP - 3MB (Referenced DLL)
After Removing Referenced DLL - 6MB
Training.XAP - 2MB
Recruiting.XAP - 1MB
Employee.XAP - 2MB
Referenced DLL - 1MB
I have said the example with just 3 modules, but in my project I have nearly 10 to 15 modules.
How to handle it in this case ?
Jaganathan BantheswaranPosted Jul 12, 2011, 8:15 AM
Each and every xap file will have a separate copy of assemblies referenced.
We can't share a single assembly for more than one xap. but we can add the same assembly as reference in more than one silverlight project.
Because xap can be distributed to different location. At that time we can't make reference to the common library. that's why the silverlight packs all the assemblies referenced with the project as a single unit.
Jiteendra SampathiraoPosted Jul 12, 2011, 8:00 AM
To share a dll in more than one application...
store that dll in Global assembly cache(GAC).it locates at C:\WINDOWS\assembly..
Hope it help you......