Q: I’m using Silverlight Viewer and I need to migrate from Silverlight 4 to Silverlight 5. What should I do?
A: Firstly, you need to download latest Silverlight 5 installer and install it:
http://www.silverlight.net/downloads
In order to use Silverlight Viewer in Silverlight 5 application you need to install the following packages:
Silverlight 5 Tools for Visual Studio 2010 SP1
Silverlight 5 Toolkit
Silverlight 5 Developer Runtime – Optionally allows you to debug Silverlight applications.
Then we have an application with Silverlight 4 target framework which hosts our component.
Let’s say this is a sample from our site:
SilverlightViewerForReportingServices2008GettingStartedExample.zip
Make sure that it works fine with Silverlight 4.
Then we need to change target Silverlight version:
Now we need to update references in the Client side project:
- Delete the following referencies:
- System.Windows.Controls
- System.Windows.Controls.Input.Toolkit
- System.Windows.Controls.Toolkit
2. Add them again and make sure they are targeting Silverlight 5
One more change you need to do is to add a reference on the following library:
System.Xml.Linq.dll
That’s all we need to do in order to migrate our application to Silverlight 5.