Xamarin Shared Library and PCL
问题 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. 回答1: In shared projects each code file will be compiled for each destination (Android, iOS, Windows Phone etc). You are able to include platform specific code by using #if