Using Portable Class Libraries with Xamarin

Play Using Portable Class Libraries with Xamarin


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.




The Discussion

  • User profile image

    PCL in VS Express! NOW!

  • User profile image

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

  • User profile image

    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

    @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:

  • User profile image

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

  • User profile image

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

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.