Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use HotReload feature in Xamarin.Forms UWP project

I've added UWP project to my Xamarin.Forms solution. There is a link on the top of the page that says: Hot Reload Available

but nothing happens when I change the XAML code!. as far as I've checked, for this feature, I should not add any extra libraries of extensions. how can I turn-on this feature?

like image 223
Mironline Avatar asked Dec 07 '22 11:12

Mironline


1 Answers

EDIT: The documentation I referenced below now states that hot reload is now implemented for Xamarin Forms UWP apps in addition to iOS and Android. Yay!

I'm adding this answer in the hope that it saves someone else some time wondering why it isn't working for them.

The short answer to the question originally asked is that, right now

Hot Reload is NOT available for Xamarin Forms UWP projects.

despite that misleading "Hot Reload available" message at the top of the window in the emulator.

It DOES work for Xamarin Forms iOS and Android projects, and it works for non-Xamarin UWP projects.

This is documented, a few paragraphs down:

http://learn.microsoft.com/en-us/xamarin/xamarin-forms/xaml/hot-reload

I suggest you upvote this suggestion if you want it to receive more attention:

https://developercommunity.visualstudio.com/content/idea/661682/xaml-hot-reload-for-xamarinforms-on-uwp.html

like image 112
terriblememory Avatar answered Jan 04 '23 17:01

terriblememory