question

mehdijafari-5939 avatar image
7 Votes"
mehdijafari-5939 asked adinas-8708 commented

XAML Hot Reload not working.

Hello
First of All I updated VS to 8.9 on my Mac but I couldn't see XHR after that,
I uninstalled VS for Mac and installed it again, Then XHR added to VS but it does not work!

I have VS 8.9 (Latest ver) now and Xamarin.Froms 5.0.0.2012. I updated every things but...

linker is "Don't link". XHT is enabled. I test both of mode "Change only" and "Full Page". It doesn't work.

XHR output in statusbar is:

XAML Hot Reload is using 'changes only' mode
XAML Hot Reload initializing...
WARN: Unknown Breakpoint Hit: Android.Runtime.JNIEnv.RegisterJniNatives(System.IntPtr typeName_ptr, int typeName_len, System.IntPtr jniClass, System.IntPtr methods_ptr, int methods_len)
HotReload: Initialized Agent.XAML Hot Reload Connected and Ready.

I don't know why XHR not working.

thanks in advance.

dotnet-xamarin
· 15
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Exact same message here.
No hot reload.
When making changes in XAML and saving, it looks Hot Reload is trying to do something, but nothing happens.
Deleted bin & obj folders and restarted VS: Nothing.

3 Votes 3 ·

This is still not working in 16.9.3 and 16.9.4. I think this should be fixed asap. A lot of people have this problem, but they constantly get closed because "a solution has been implemented, install latest version". However, that never works

2 Votes 2 ·

I believe you are talking about reports on the Visual Studio developer community site. Many issues of all sorts have this problem where they are
either providing workarounds that aren't sufficiently fleshed out and do not work, or quick to close the issues, claiming in a vague way that some sort of fix has been implemented and eventually released, and nothing seems to have changed. One example where this happened (and was eventually fixed) was the "Error adding Apple account" problem. There was very little communication from Microsoft for a long time on the issue. Staying engaged with us even before anything is fixed will go a long way towards keeping the peace and fostering good will.

The Xamarin tooling in VS has really been unstable this year and it has disrupted the "inner dev loop" such that it often doesn't "loop" at all. It's actually beyond frustrating for those of us that use Xamarin in Visual Studio as our day job.

0 Votes 0 ·

Same issue here on Windows 10. My installation is as below. Why is this issue not being fixed properly?

Microsoft Visual Studio Community 2019
Version 16.9.6
VisualStudio.16.Release/16.9.6+31313.79
Microsoft .NET Framework
Version 4.8.04084

Xamarin Forms 5.0.0.2012

Installed Version: Community

2 Votes 2 ·

The only thing that finally worked for me is doing a clean reinstall

0 Votes 0 ·

It's really broken on 16.10.3! There is no way of making it work! =(

2 Votes 2 ·

Same issue here with a new Xamarin project. Hot reload not working.

1 Vote 1 ·
Show more comments
BrianSavage-1159 avatar image
0 Votes"
BrianSavage-1159 answered BrianSavage-1159 rolled back

This may help.

I updated all the Android tools in the sdk manager to use the latest versions, and also removed all old versions.

Cleaned solution and restarted VS.

I am using full page reload rather than changes, and it now works. Although I won't be surprised if it stops working again!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

StefanBogaard-2372 avatar image
0 Votes"
StefanBogaard-2372 answered EmilAlipiev-5934 commented

Switching back to reload full page fixed it for me

119319-image.png



image.png (5.6 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Tried that

Didn't work.

I cannot believe how much time this feature saved when it worked. And they have disabled the xaml editor which would have helped.

0 Votes 0 ·

only solution is to going back to 16.9.6 version on windows. On Mac i have no solution. for Ios is totally broken probably connected to Xcode also

0 Votes 0 ·

Unfortunately, as a sole developer, I am using the community version, and no rollback is allowed.

I understand MS need to make money and am grateful for the free use of some fantastic software from which I can earn income, but at least we ought to be able to uninstall some versions if they are breaking.

0 Votes 0 ·
Show more comments
WillemvanRumpt-9665 avatar image
0 Votes"
WillemvanRumpt-9665 answered BrianRunck-7667 commented

Fixed in 16.9.2 (for me at least)

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I found XAML Hot Reload on iOS to be completely broken in 16.10.x, it initializes but never does anything. Found the same behavior with 16.11 preview 2.0.
Was able to test it using an old version of 16.9.0 and both updating on changes and updating on save worked just fine. Upgrading that version to 16.9.8 (which was the last version of 16.9 released) has updating on changes as broken but will work and update on save (if you have your settings configured to do so).

All tests were performed using the exact same solution with the exact same project options (linker set to Don't Link, etc.)

So this functionality has deteriorated over time; first "update on changes" broke sometime between 16.9.0 and 16.9.8, and now in 16.10.x and later both "update on changes" and "update on save" are completely broken regardless of settings. It's not clear this is getting onto the radar screen of the people that need to know about it.

1 Vote 1 ·

not only IOS but also Android if you are on Windows VS 2019. last working version is VS 16.92. I downgraded and works again on android but Ios no chance.

0 Votes 0 ·

It works on VS Windows 16.9.x but after 16.10.x VS team messed up again and not working.

0 Votes 0 ·