Thursday, March 20, 2008

Opening a Silverlight 1.1 project in VS2008 after installing Silverlight 2.0

I see a lot of questions on the forums around:
Opening a Silverlight 1.1 project in VS2008 after installing Silverlight 2.0
Below are some of the steps followed by me to resolve this issue:
  1. Open the Silverllight 1.1 solution file
  2. Scroll down until you find the Import Project= element that points to the targets file.
    All you should have to do is replace "VisualStudio9.0\Silverlight\"
    with
    "Silverlight\v2.0\"
    Save the Solution file and then reload the project.
  3. Next steps are to get the right APIs referenced. You'll see that the old ones are no longer valid (the warning icon). You can delete them. In there place you need to references to: System [in C:\Program Files\Microsoft Silverlight\2.0.30226.2]

System.Core [in C:\Program Files\Microsoft Silverlight\2.0.30226.2]

System.Windows [in C:\Program Files\Microsoft Silverlight\2.0.30226.2]

System.Windows.Browser [in C:\Program Files\Microsoft Silverlight\2.0.30226.2]

System.Windows.Controls [in C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Libraries\Client]

System.Windows.Controls.Extended [in C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Libraries\Client]

System.XML [in C:\Program Files\Microsoft Silverlight\2.0.30226.2]

The above are the steps the help you open the Silverlight 1.1 project after installing Silverlight 2.0.

Other deprecated features will still have to manually migrated.

Regards, Neville (http://nevilledubash.blogspot.com/)

No comments: