O'Reilly logo

Cross-platform UI Development with Xamarin.Forms by Paul F. Johnson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Making Your Application Portable

Part of the advantage of using the .NET Framework to create an application is that it is possible to write the core of the application, and this core will work on anything supported by the .NET Framework. This is great until you hit a simple issue—what happens if the platform itself does not support a feature? This is when a portable common library comes in handy.

In this chapter, we will cover the following topics:

  • The advantages and disadvantages of using a PCL
  • Writing your PCL

PCLs – the pros and cons

One of the biggest advantages of using a PCL (Portable Class Library) is that as the name suggests, the library contains only code that is guaranteed to run on all .NET platforms. You write it once, you deploy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required