Does a common Class Library work on Silverlight?

Asked

Viewed 22 times

2

A destination class library can be used in .NET Silverlight?

inserir a descrição da imagem aqui

Would it work in a Silverlight web application? Thank you!

1 answer

2


The answer is no.

Silverlight uses a different CLR (Common Language Runtime) than the common . netframework. For example many features like direct access to file system is not available.

Visual Studio has two types of possible projects that can be referenced in a Silverlight application:

  • Silverlight Class Library
  • Class Library(Portable)

inserir a descrição da imagem aqui

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.