/Xamarin.Forms.Xaml.LiveReload

Live reloading of XAML pages in the iOS and Android simulators when saving changes to XAML files from Visual Studio.

Primary LanguageC#MIT LicenseMIT

Live reload for Xamarin.Forms XAML pages

Live reloading of XAML pages in the iOS and Android simulators when saving changes to XAML files from Visual Studio.

Build Status

klofberg MyGet Build Status

Instructions

  1. Install nuget package Xamarin.Forms.Xaml.LiveReload from https://www.myget.org/F/klofberg/api/v3/index.json

  2. Add the following to your Xamarin.Forms App class

    public partial class App : Application
    {
        protected override void OnStart()
        {
            #if DEBUG
            Xamarin.Forms.Xaml.LiveReload.LiveReload.Enable(this, exception =>
            {
                System.Diagnostics.Debug.WriteLine(exception);
            });
            #endif
        }
    }
  1. Start the live reload server from your solution directory .\packages\Xamarin.Forms.Xaml.LiveReload.*\livereload.exe

  2. Debug the app from Visual Studio, change a XAML file to see it reload automatically in the simulator