Update a Silverlight reference

To update a reference that was written in a separate Silverlight class library, a call must be placed to that class library.

Procedure

  1. In the Display Editor, on the Silverlight Config tab, select the reference you want to remove, and then click Remove.
  2. Click Add to re-add the reference, and then click Save. Recompiling the file to disk is not sufficient since this reference must be saved to the server.
    Note: The referenced assembly is bundled into the form's XAP file. Any projects built against a specific referenced assembly version continue to use that older version, even if the reference is updated in the Silverlight Config interface, because the older version is referenced in the form's XAP file.
  3. To use the new version of the assembly, open the form's project in the Silverlight Designer, and then save and build it.
    A new XAP file is created.
    Note: If changes to the assembly include removal of controls or modification of public properties, a screen may appear that indicates there was a load failure.

    The error in the Feedback zone attempts to indicate what the issue is. Often, the XAML file must be manually edited to correct the load failure. For example, the following line defining the Silverlight Control should be removed because the reference to SilverlightClassLibrary1.dll where this control was defined was removed: <scl:SilverlightControl …/>

  4. Click Save after removing the line.
  5. Click Open, and then reload the project to see it load properly.