Difference between PCL and ClassLibrary

PCL

  1. Portable class libraries are platform independent
  2. They do not use conditional compilation and unmanaged code, they have no UI inside (UI is platform dependent)
  3. This is because PCL should work on all specified platforms which was chosen as a target. Also, availability of features depends on selected targets. PCL can be referenced by any project which target is specified in the PCL settings.


Class Library
  1. Class Libraries are not platform independent.
  2. No conditional compilation, they too have no UI inside.
  3. Class Libraries of other types can be referenced only by projects which have the same target or by upper subsets of .Net

Comments

Popular posts from this blog

SQL Interview Questions and Answers

Generic Interface and Factory Pattern in C#

How to get device info IMEI programmatically in xamarin android