Skip to content

Instantly share code, notes, and snippets.

@RicardoBritoBrens
Last active September 17, 2019 01:30
Show Gist options
  • Save RicardoBritoBrens/ea85b1b6fe452c052026251ed2201588 to your computer and use it in GitHub Desktop.
Save RicardoBritoBrens/ea85b1b6fe452c052026251ed2201588 to your computer and use it in GitHub Desktop.
Initialize HotReload by thrid-part
Reference to the principal github repository: https://github.com/AndreiMisiukevich/HotReload
Nuget Packages: https://www.nuget.org/packages/Xamarin.HotReload
using Xamarin.Forms;
namespace YourNamespace
{
public partial class App : Application
{
public App()
{
InitializeComponent();
#if DEBUG
HotReloader.Current.Run(this);
#endif
MainPage = new NavigationPage(new MainPage());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment