IT:AD:NET:Portable Class Library (PCL)
- See also:
Summary
The Portable Class Library project supports a subset of assemblies from: * the .NET Framework, * Silverlight, * .NET for Windows Store apps, * Windows Phone, and *Xbox 360
It provides a Visual Studio template that you can use to build assemblies that run without modification on these platforms.
If you don't use a Portable Class Library project, you must target a single app type, and then manually rework the class library for other app types.
With the Portable Class Library project, you can reduce the time and costs of developing and testing code by building portable assemblies that are shared across apps for different devices.
Sounds like an appropriate choice for a library such as Projects:XActLib
Notes
- Advantages:
- Helped move away from monolithic huge .NET to targeting other platforms.
- Considerations:
- Disadvantages:
- A design flaw is
- Every time a new platform comes out, the dll has to be recompiled3).
What to share in a PCL library:
- http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj714086(v=vs.105).aspx#BKMK_WhattoshareinaPortableClasslibrary
Resources
- Spreadsheet of available functions across platforms: