Is there an existing issue for this?
Describe the bug
MAUI Blazor Hybrid projects and WPF with Blazor projects do not apply CSS changes during hot reload. In WPF Blazor, it's possible to manually hit F5 to see the CSS changes, however in MAUI there seems to be no way to see the changes except for restarting the application.
dotnet watch outputs the following when changing a CSS file:
dotnet watch ⌚ File updated: .\wwwroot\css\app.css
dotnet watch ⌚ No C# changes to apply.
When changing a razor file, the following is logged:
// in WPF
dotnet watch ⚠ [ScsModSync (net9.0-windows)] Expected to find a static method 'ClearCache' or 'UpdateApplication' on type 'Microsoft.AspNetCore.Components.WebView.StaticContentHotReloadManager, Microsoft.AspNetCore.Components.WebView.Wpf, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' but neither exists.
// im MAUI
dotnet watch ⚠ [ScsModSync (net9.0-windows10.0.19041.0)] Expected to find a static method 'ClearCache' or 'UpdateApplication' on type 'Microsoft.AspNetCore.Components.WebView.StaticContentHotReloadManager, Microsoft.AspNetCore.Components.WebView.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' but neither exists.
Expected Behavior
Changing a CSS file while having hot reload enabled should make all CSS changes visible without further user interaction.
Steps To Reproduce
- Create a new MAUI Blazor Hybrid project
- Run the project with the
dotnet watch command
- Change the app.css file
- Changes are not applied to the app automatically. In WPF Blazor, you can hit F5 to refresh manually and see them, but in MAUI this does not work either.
Exceptions (if any)
-/-
.NET Version
.NET SDK 9.0.200
Anything else?
-/-
Is there an existing issue for this?
Describe the bug
MAUI Blazor Hybrid projects and WPF with Blazor projects do not apply CSS changes during hot reload. In WPF Blazor, it's possible to manually hit F5 to see the CSS changes, however in MAUI there seems to be no way to see the changes except for restarting the application.
dotnet watchoutputs the following when changing a CSS file:When changing a razor file, the following is logged:
Expected Behavior
Changing a CSS file while having hot reload enabled should make all CSS changes visible without further user interaction.
Steps To Reproduce
dotnet watchcommandExceptions (if any)
-/-
.NET Version
.NET SDK 9.0.200
Anything else?
-/-