We will walk through creating the Xamarin / Visual Studio Solution and connect it to TheAppsPajamas Asset Catalogue.

To get started create a Cross Platform Xamarin / Visual Studio solution called TheAppsPajamas.White

For more information on how to do this refer to

After creating your initial Xamarin / Visual Studio solution it should look like

Xamarin initial solution configuration

We'll create the Bear Configuration and then repeat for the Blue and FluffyConfigurations.

  • Right click the solution, and choose Build / Configurations


Standard Xamarin configurations

To create the BearRelease Configurations

  • Select the existing Release Configuration
  • Choose Copy
  • Select Any CPU from the Platform dropdown
  • Leave the Create configurations for all solution items checkbox selected
  • Click OK
Xamarin Bear Release Any CPU Configuration

  • Select the existing Release|iPhone Configuration
  • Choose Copy
  • Select iPhone from the Platform dropdown
  • Leave the Create configurations for all solution items checkbox selected
  • Click OK

Xamarin Bear Release iPhone Configuration

  • Select the existing Release|iPhoneSimulator Configuration
  • Choose Copy
  • Select iPhoneSimulator from the Platform dropdown.
  • Leave the Create configurations for all solution items checkbox selected
  • Click OK

Xamarin Bear Release iPhoneSimulator Configuration
  • Repeat this process for the BearDebug Configurations
  • Select OK to create these configurations
  • You should have six new Configurations created
Xamarin Bear All Configurations

Next we need to rearrange the Configuration Mappings to remove the iPhone and iPhoneSimulator Configurations from the projects which do not need them, i.e. the Core PCL Library and the Android Project.

  • Open the Build / Configurations window again
  • Select Configuration Mappings
  • Choose BearRelease from the Configuration dropdown
  • Select iPhone from the Platform dropdown
  • For the TheAppsPajamas.White (PCL Library) Solution Item
    • Click Configuration
    • Choose BearRelease
  • For the TheAppsPajamas.Droid (Android Project) Solution Item
    • Click Configuration
    • Choose BearRelease
  • Repeat for the iPhoneSimulator platform
  • Repeat for the BearDebug Build Configuration
  • Click OK to save the Configuration Mappings
Xamarin Bear Release Configuration Mappings

Repeat this process for the remaining Build Configurations

  • BlueRelease
  • BlueDebug
  • FulffyRelease
  • FluffyDebug
info

Xamarin / Visual Studio likes to have a Debug and Release Build Configuration, and often recreates them if you delete them, so we recommend that you consider Debug and Release as your Test Build Configurations. As Debug is the default Build Configuration when you open Xamarin / Visual Studio we also recommend you design your API with a Test user so you can better test the app.