Download Assembly on Demand Sample 2

This sample has defined a common interface type that is shared between the type in the downloaded assembly and the assemblies that reside within the XAP file.

This sample compiles in the reference to the type that will be downloaded on demand (note the method marked with MethodImplAttribute for disabling the Release mode compiler InLining). The key here is that the UtilityLibrary reference in the Silverlight app has been marked as Copy Local False (select the reference and look at the properites listing). Try clicking the Use button without first pressing the Download button (it will fault)...now press the Download button (wait for it to stop being disabled)...now press the Use button again. Source: LoadOnDemandDemo2.zip

Get Microsoft Silverlight