Xamarin Shared Library and PCL

PC Parker picture PC Parker · Aug 17, 2015 · Viewed 7.5k times · Source

What is the exact difference between xamarin shared project and portable class library?

When to use shared library and when to use portable class library?

Is this possible to write native functionality in shared projects like showing alert,accessing camera and use it for both android and iOS?

Can anyone please explain me.

Answer

Wosi picture Wosi · Aug 17, 2015

I personally perefer PCLs because the code is much easier to read without any compiler directives. Using MVVMCross you are able to use plenty of plugins via NuGet. So you don't need to write your own classes for camera access, showing alerts etc.