Does an ordinary Class Library work in Silverlight?

2

A non-target class library can be used in .NET Silverlight ?

The same, would it work in a Silverlight web application? Thanks!

    
asked by anonymous 09.07.2016 / 00:52

1 answer

2

The answer is no.

Silverlight uses a CLR other than the Common Language Runtime (CLR) of the common .netframework. For example, many features such as direct file system access are not available.

In Visual Studio you have two possible project types that can be referenced in a Silverlight application:

  • Silverlight Class Library
  • Class Library (Portable)

This last type of project can be referenced in both Windows, Silverlight and Windows Phone applications.

    
06.09.2016 / 19:35