-
Notifications
You must be signed in to change notification settings - Fork 16
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
[BUG] VS Code on Mac: Cannot use Hot Reload in .NET Maui 9 apps #1748
Comments
@cklumph - Can you look in the Also, would you mind checking Android as well, as knowing whether or not that works can give additional clues. Finally, is Catalyst / iOS XAML Hot Reload something that used to work on your machine, then stopped working at some point? If that's the case, any idea what may have changed? Thx. |
Hi @BretJohnson, thanks for the help.
2025-02-06 09:01:32.189 [info] XAML: Started Hot Reload connection listener on 127.0.0.1:53198
If there are other detailed logs what would be helpful, please let me know and I'll help out. Thanks! |
Note: I tried it on the new VS Code version that came out today (1.97.0) with the same results of Hot Reload not working. |
UPDATE: Working now. I uninstalled and then re-installed everything, and now Hot Reload with .NET MAUI 9 projects is working. The details: I uninstalled VS Code, VS Code user preferences, all .NET SDKs, and MAUI workloads. I then re-installed the .NET 9 SDK, VS Code, MAUI workloads, normal extensions (C#, C# Dev Kit, and .NET MAUI (all Release versions)), turned on the "Experimental: Hot reload" setting, and now Hot Reload is working. |
Describe the Issue
I was just dialoguing with James Montemagno on X about this issue (https://x.com/JamesMontemagno/status/1887277494841319562). I have all the latest .NET 9 MAUI workloads (9.0.100), XCode 16.2, and C#/Maui extensions. I'm using latest VS Code on MacOS Sequoia (15.3). I have the Hot Reload options turned on in my extension settings. I create a "dotnet new" bot template and debug on an iOS simulator (iPhone 16, iOS 18.2). While I can hit breakpoints and debug that way, I cannot use Hot Reload. I make a change in the XAML (for example, a Label's text) and when I save or hit Hot Reload, it says "No code changes detected" in the Hot Reload output window. I've tried targetting MacCatalyst with the same result. Have not tried Android.
Steps To Reproduce
Expected Behavior
The UI should update when you save the XAML document.
Environment Information
MacOS Sequoia (15.3)
XCode 16.2 (managed through XCodes app)
Maui workload 9.0.100 (maui, maui-ios, and maui-maccatalyst)
VS Code 1.96.4
Extension: .NET MAUI v1.8.5
Extension: C# Dev Kit v1.17.4
The text was updated successfully, but these errors were encountered: