There are pretty many articles about what are PCL like this.
However, from all what I found, they just mostly say something like:
The Portable Library Tools CTP adds a new "Portable Class Library" project template to Visual Studio that can be used to create class libraries in C# and VB that run on the various .NET platforms without recompiling.
But carefully read this superb explanation of how .NET (and Mono) works, I became even more unclear why PCLs even needed.
Because if I've built some Assembly and it contains CIL bytecode (which can be used through any other platform (if corresponding platform has CLR implementation (as the main idea of .NET was))), then what's the problem? Why we would then also need the PCLs?
Although the IL may be the same, the available libraries are not. If you want to target a desktop computer, a Windows 8 app, and Silverlight, you want to ensure that your code uses things that are actually present in all of those places.
Portable Class Libraries ensure that you only use that set of libraries that are applicable to your selected platforms.
You may want to read more details on this .Net Framework blog from a year or so ago.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With