Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XAML Hot Reload is not working on Blazor MAUI apps #4474

Closed
mvartuc opened this issue Feb 2, 2022 · 8 comments
Closed

XAML Hot Reload is not working on Blazor MAUI apps #4474

mvartuc opened this issue Feb 2, 2022 · 8 comments
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst platform/windows 🪟 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
Milestone

Comments

@mvartuc
Copy link

mvartuc commented Feb 2, 2022

Description

XAML Hot Reload is not working, UI changes are not updated while debugging. The issue persisted with both blazor and native maui tests that I've made.

Steps to Reproduce

  1. Open Visual Studio Professional 2022 17.1.0 Preview 5.0
  2. Create a new project
  3. Select .NET MAUI Blazor App
  4. Run the app on any platform (debug mode) and change some ui elements
  5. Save the changes
  6. The view is not updated

Version with bug

Preview 12 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, Windows, macOS

Affected platform versions

Windows SDK 10.0.19041

Did you find any workaround?

No, I tried completely uninstalling and reinstalling several times. Reverted visual studio to the factory settings, deleted all the user data etc... Nothing works.

Relevant log output

No response

@mvartuc mvartuc added the t/bug Something isn't working label Feb 2, 2022
@mjangle
Copy link

mjangle commented Feb 2, 2022

Can confirm. Am also experiencing this issue.

@jsuarezruiz jsuarezruiz added this to New in Triage via automation Feb 2, 2022
@jsuarezruiz jsuarezruiz added the area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging label Feb 2, 2022
@Eilon
Copy link
Member

Eilon commented Feb 2, 2022

FYI @dotnet/dotnet-maui-blazor-eng team. I think this is a dup of an existing issue.

@TheFanatr
Copy link

Can confirm that I, too, am experiencing this issue.

1 similar comment
@davidaxtelius
Copy link

Can confirm that I, too, am experiencing this issue.

@shimingsg
Copy link
Collaborator

shimingsg commented Feb 17, 2022

Verified Repro with windows. Repro project
4474.zip

@shimingsg shimingsg added the s/verified Verified / Reproducible Issue ready for Engineering Triage label Feb 17, 2022
@TheFanatr
Copy link

Ok, so I will mention that if you manually remove all other platforms, it does partially work again, but you have to refresh the page (as in the changes are not immediately visible) by going to another page then re-rendering the old one again. To me, it would seem that the issue is the #if directives (or equivalent via MSBuild) are being ignored.

@Redth Redth added this to the 6.0.300 milestone Mar 22, 2022
@kristinx0211
Copy link

Duplicate of #2527

@kristinx0211 kristinx0211 marked this as a duplicate of #2527 Apr 14, 2022
@drasticactions
Copy link
Contributor

XAML Hot Reload (As in, editing XAML, not Razor), as of RC1, should be working fine with a MAUI Blazor app. Judging that I think we're talking about the Razor here, that's a dupe so I'm going to close this issue.

Triage automation moved this from New to Done Apr 15, 2022
@ghost ghost locked as resolved and limited conversation to collaborators May 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst platform/windows 🪟 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
No open projects
Development

No branches or pull requests