Using Portable Class Libraries with Xamarin

Download this episode

Download Video

Download captions

Download Captions

Description

This is the second of a four part series on building cross platform apps using Xamarin and C#. In this episode Robert is joined by James Montemagno, a developer evangelist at Xamarin, who gives us a deep dive into code sharing with Portable Class Libraries on Android, iOS, and Windows platforms. We will see how to leverage popular PCL libraries from NuGet and how to share 80%+ business logic from a single PCL in an Android, iOS, and Windows Phone 8 application.

If you missed part one, you can view it here.

Resources:

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      Stilgar

      PCL in VS Express! NOW!

    • User profile image
      terrajobst

      @Stilgar: We hear you. I can't commit to anything but it's certainly on our list.

    • User profile image
      pasniak

      I spent weekend on writing a trivial PCL/Xamarin.Android app... Few comments: 1) the GUI project does not compile in VS ($999 "Business" release is required) 2) apparently Xamarin Studio (IDE) allows building GUI projects, but, in my case, I cannot even build a PCL project + GUI stub ("User code size, 265942 bytes, is larger than 65536 and requires a Indie (or higher) License.")  I guess it's time to learn Java!

    • User profile image
      James​Montemagno

      @pasniak: To use Visual Studio you will need the Business Edition which is part of the 30 day free trial as well. After the 30 days you will drop down to starter which limits the app size. This app is much larger and has a lot of components so it does exceed the app size for the starter edition and you would need at least Indie. You can always email in about extending your trial though.

      For some samples of starter we have a page dedicated to some samples: http://xamarin.com/starter

    • User profile image
      Jon

      Could please tell me the emulator you are using For IOS ?

    • User profile image
      Logan

      @Jon it looks like he's using a mac for ios simulation(to his right) but using a tool called reflector (http://www.airsquirrels.com/reflector/) to mirror the screen over airplay.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.