gidmak
gidmak

Reputation: 59

XAML Hot reload keeps stopping. What could be the issue?

I recently started learning xamarin.forms and all was going well suddenly whenever I run an app, the XAML Hot reload will start and then stop. I have restarted my PC several times and even tried creating a new projects but the problem persists.

Upvotes: 2

Views: 5182

Answers (5)

ZIFARIN
ZIFARIN

Reputation: 1

Another case might be you're using an old Xamarin project. If this is the case - it's worth [changing your Xaml Hot Reload Mode to 'full page mode'][1].

This, along with the 'Apply XAML Hot Reload on document save or via Hot Reload button' (which I'm not sure if had any effect or not) was what did the job for me.

[1]: https://learn.microsoft.com/en-us/xamarin/xamarin-forms/xaml/hot-reload#:~:text=From%20Visual%20Studio,Reload%20on%20Mac).

Upvotes: 0

Adel Mourad
Adel Mourad

Reputation: 1543

I just restarted visual studio to get XAML hot reload working again.

Tips:

  • Wait for VS background tasks to complete "status = ready" before lunching the debugging.
  • When debugging is started, watch the below status bar to see "Initializing XAML hot reload" and "XAML hot reload connected" before playing with your XAML

Upvotes: 0

Hossein Hadi
Hossein Hadi

Reputation: 1497

When you're debugging two apps on your simulator simultaneously , this error would happend.

Upvotes: 2

Saket Karnik
Saket Karnik

Reputation: 11

Factory resetting the emulator also helped.

Upvotes: 1

gidmak
gidmak

Reputation: 59

I have resolved the issue. Here's what helped. - a good internet connection - creating another emulator

Upvotes: 0

Related Questions