Skip to content

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

License

Notifications You must be signed in to change notification settings

klofberg/Xamarin.Forms.Xaml.LiveReload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published