27

There are different types of Class libraries available in Visual Studio such as Silverlight Class Library, Portable Class library and Class Library. What are the differences between these types? How can we determine the type of a Class library with File.dll file? How can we change a Class library from own type to another type of Class library?

1 Answer 1

29

The Portable Class Library project type enables you to write and build managed assemblies that work on more than one Microsoft platform, whereas the "normal" Class Library project type doesn't.

"Microsoft platforms" include .NET Framework, Windows Phone, .NET for Windows Store Apps, Silverlight, Xbox; all in various versions or flavors.

Source

Go through this for converting from one class library to another type. (See also: this relevant SO question.)

5
  • +1 @Jayram: thanks. How can determine type of dll file. (entityframework class library and portable class library). Commented Jun 29, 2013 at 10:25
  • This might be helpful too. stackoverflow.com/questions/11265132/…
    – Jayram
    Commented Jun 29, 2013 at 10:31
  • Honestly these definitions, although entirely correct, contain a lot of noise with regard to the actual question. The entire first paragraph also applies to PCLs, and all but the first sentence of the second one also apply to classic CLs. In other words, I think you can reasonably simplify your answer to just quoting one sentence without loss of information.
    – tne
    Commented Feb 12, 2016 at 11:12
  • @JayramSingh Alright; this was just a suggestion though so feel free to revert -- this feels like a non-trivial change but I think it's still very much the same answer. I also updated the terminology per the official reference (".NET Framework Platform" -> "Microsoft platform") and updated the link to the source (now targeting the latest version of the document, which changed). And added a link to the relevant SO question regarding your conversion tip.
    – tne
    Commented Feb 12, 2016 at 13:42
  • @tne thanks so much. Yeah this looks much better to understand.
    – Jayram
    Commented Feb 13, 2016 at 6:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.