Breaking Changes in Silverlight 2.0 Beta


I was eagerly awaiting for Silverlight 2.0 Beta and it did arrive. But there are a lot of breaking changes in this version as I expected. MSDN contains a list of breaking changes at http://msdn2.microsoft.com/en-us/library/cc189007(vs.95).aspx

While trying to open the project in VS 2008, you will get an error:

The imported project
“C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\Silverlight\
Microsoft.Silverlight.CSharp.targets (or VisualBasic.targets)” was not found.

and you won’t be able to open the project. Click OK and let it load the solution.

In the Solution Explorer you should see the project listed but unavailable. Right click on it and choose the Edit option. The project’s MSBuild file will open. Now replace

<Import Project=“$(MSBuildExtensionsPath)\Microsoft\
VisualStudio\v9.0\Silverlight\Microsoft.Silverlight.Csharp.targets” />

With

<Import Project=“$(MSBuildExtensionsPath)\Microsoft\
Silverlight\v2.0\Microsoft.Silverlight.CSharp.targets” />

Now you can reload the project after saving.Now you need to update the reference dlls with the new ones. So delete all the Silverlight 1.1 dlls referenced in the project and add the following new ones

  1. mscorelib.dll
  2. system.dll
  3. System.Core.dll
  4. System.Windows.dll
  5. System.Windows.Browser.dll
  6. System.Xml.dll
  7. System.Windows.Controls.dll
  8. system.windows.controls.extended.dll

Now you may have to fix other code related error. I’ll write about the soon…




No comments yet. Be the first.

Leave a reply