Silverlight 5 Backward Compatibility

放肆的年华 提交于 2019-12-04 04:48:42

There's little evidence around the internet at the moment, other than that published by Microsoft, which can be found here and here, which states, to summarise:

Several changes have been made to the Silverlight runtime and the Silverlight Tools between Silverlight 4 and Silverlight 5. For these changes, the following principles apply:

  • Most Silverlight 4 applications will work with Silverlight 5 without any changes.

  • When breaking changes are required, Silverlight will try to maintain support for the old behavior, as well as the new behavior, by using a quirks mode.

Nevertheless, some changes made to Silverlight components can potentially cause your older Silverlight-based applications to fail (compile time, XAML load time, or possibly design time) or to behave differently.

And,

There are no known breaking changes between Silverlight 4 and Silverlight 5 in the Silverlight core runtime. Applications that were originally compiled using Silverlight 4 tools, and that continue to target the Silverlight 4 runtime, should work without issues on a client that has the Silverlight 5 runtime.

If your project references any Silverlight SDK client assemblies [...] make sure that your project specifically references the Silverlight 5 version of the SDK client assemblies [...]. A project that targets Silverlight 5 cannot use the Silverlight 4 SDK assemblies.

There's more information in the links I provide, for instance, related to quirks mode, third party references, and behavioural changes.

I have a project with a Silverlight 4 tool used to display a barchart etc. The Project upgrade to VS2013 automatically upgraded to Silverlight 5 and there were no warnings. I worked on other areas of the project and only by chance did I actually run it in debug mode to find that the display was broken somewhere inside the tool. I managed to scamper back to VS2012 and scavenge the changes I had made in the VS2013 version of the project.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!