Xamarin Shared Library and PCL

2019-01-17 06:56发布

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条回答
干净又极端
2楼-- · 2019-01-17 07:41

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.

查看更多
登录 后发表回答