Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Xamarin App

Alina Popa edited this page Jan 31, 2016 · 1 revision

iOS Xamarin app

A Xamarin license is needed. You will be prompted to sign-in with the Xamarin account within Visual Studio when creating or loading Xamarin projects. For building the iOS app, you need a Mac with OSX Yosemite (10.10.5) or above, with XCode and Xamarin installed. See instructions for setting up your Mac at http://developer.xamarin.com/guides/ios/getting_started/.

Visual Studio needs to have the Cross-Platform tools installed: within the Visual Studio installer, select a Custom install and check the box Cross-Platform Mobile Development > C#/.NET (Xamarin).

Open solution 04_Demos_NativeXamarinApps in Visual Studio. Log into Xamarin account if prompted. Make sure your Mac is available on the network and paired with Visual Studio. If the pairing menu does not automatically appear, in Visual Studio go to Tools > Options > Xamarin > iOS Settings > Find Xamarin Mac Agent, and connect with your Mac.

Set MyHealth.Client.iOS as startup project. Set Configuration to iPhoneSimulator, build and run. The application will start in the Simulator on the Mac. To get data, the ServerUrl string in file [src\MyHealth.Client.Core\AppSettings.cs] (https://github.com/Microsoft/HealthClinic.biz/blob/master/src/MyHealth.Client.Core/AppSettings.cs) needs to be set to the address where the web app was deployed.

Android Xamarin app

Open solution 04_Demos_NativeXamarinApps in Visual Studio. Set MyHealth.Client.Droid as startup project. Set "VS Emulator" in the run configuration. To get data, the ServerUrl string in file [src\MyHealth.Client.Core\AppSettings.cs] (https://github.com/Microsoft/HealthClinic.biz/blob/master/src/MyHealth.Client.Core/AppSettings.cs) needs to be set to the address where the web app was deployed.