O'Reilly logo

Xamarin 4.x Cross-Platform Application Development - Third Edition by Jonathan Peppers

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

Setting up a shared project

To understand each option completely and what situations call for, let's define a solution structure for both shared projects and portable class libraries. Let's use the product search example from earlier in the chapter and set up a solution for each approach.

To set up a shared project, perform the following steps:

  1. Open Xamarin Studio and start a new solution.
  2. Select a new Single View App under the Multiplatform | App section.
  3. Name the app ProductSearch, and select Use Shared Library.
  4. Complete this new project wizard and Xamarin Studio will generate three projects: ProductSearch, ProductSearch.Droid, and ProductSearch.iOS.
  5. Add the Product, ProductRepository, and ProductViewModel classes to the ProductSearch project from ...

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