sanosdole
sanosdole

Reputation: 2489

Using .Net standard assemblies in Silverlight 5

Can or will .Net Core assemblies build using the .Net standard be compatible with Silverlight 5?

Ideally binary compatible but a re-compile is fine also. And if they are, is there any documentation on how to create such assemblies?

I could not find anything about Silverlight in the documentation at e.g. .Net Standard Documentation

Upvotes: 0

Views: 690

Answers (3)

Killianlcq
Killianlcq

Reputation: 1

Thread is kinda old, but if you're still looking for a Silverlight app migration, you might want to take a look at this : http://www.cshtml5.com

It allows you to keep the existing C# and XAML code, and compile the files to HTML5 and JavaScript.

They also have a guide dedicated to SL migration :http://www.cshtml5.com/links/migrating-from-silverlight.aspx

Upvotes: 0

Berin Loritsch
Berin Loritsch

Reputation: 11463

The only way to reference the same DLL from both Silverlight and .Net is to use a Portable Class Library (PCL). Since PCL's have to be cross-platform, and the technology predates .Net Standard you will be pretty limited in what you can do in a PCL (more limited than what you can do in Silverlight).

Since Silverlight is already on the path to being sunsetted, there will be no new features for the technology. Only bug fixes and security patches until October 2021. Silverlight's compatibility has been shrinking since the announcement, and all modern browsers have dropped support (or never had it).

The list of browsers that do not support Silverlight include:

  • Firefox since version 52.0
  • Chrome since they disabled NPAPI support
  • Safari since ersion 9.x
  • Microsoft Edge (never added support)

All have also disabled flash support as well. The only browser that still supports Silverlight is Internet Explorer.

Since there are 3 years left (as of 2018) till Silverlight will be completely dead, I would recommend migrating away from it and using standards based HTML5/CSS3/JavaScript6 solutions.

Upvotes: 1

J. Doe
J. Doe

Reputation: 2747

No. Only Silverlight what is supported (on .Net Standard 1.0) is Windows Phone Silverlight 8.0. More information https://github.com/dotnet/standard/blob/master/docs/versions.md

Upvotes: 0

Related Questions