Migrating from Silverlight 2 to 3

Discussion in 'Silverlight' started by mike72, Dec 2, 2009.

  1. What do I need to do to migrate from Silverlight 2 to 3? Do I need a new Silverlight DLL in my bin folder? Do I need a new silverlight.js file in my project? Do I need to make my <asp:Silverlight> tags refer to a new version?

    Thanks,

    Mike
     
  2. Hi,
    The SL v3 JS file and binaries do need to be updated.
    Create a new "dummy" project in Blend and compare the files.
    All the best,
    Mark
     
  3. Hi,

    I have created dummy projects in Blend and VS, and I get a new silverlight.js file, but no DLLs in the bin folder apart from the project DLLs. It is a while since I created my Silverlight 2 project so I can't quite remember where I got the Silverlight.dll from, do I need a new one, and if so, where do I get it from?


    Thanks,

    Mike
     
  4. I think you're probably referring to System.Web.Silverlight.dll that is present in the "%Program Files%\Microsoft SDKs\Silverlight\v2.0\Libraries\Server" folder.

    If you have the SL2 SDK installed it will still be there but it's not intended to be used in SL3. This also means that in SL3 you don't use the asp:Silverlight control any more but use the more generic object tag instead when including a SL application in html/aspx markup.
     
  5. So in SL3 the System.Web.Silverlight.dll is no longer required?
     
  6. In cases where a Silverlight 2 application is in the process of being upgraded to Silverlight 3 it might be necessary to include this assembly for some time during the lifecycle, if there are some dependencies on it in the existing codebase. Ideally over time, these dependancies would get removed from the code and eventually the requirement for this assembly will disappear from the application entirely.

    That said, it's not required at all for brand new SL3 applications and it's not recommended to use it in brand new app development since it's old technology that will no longer be updated by Microsoft. In short, it's not included in the SL3 SDK.

    Read more on Tim Heuers' blog here and see the item about halfway down titled ASP.NET Server Controls that talks about the removal of the asp:Silverlight control.
     

Share This Page