Skip to content

.NET 8 Preview 4 - Blazor WASM - Hot Reload broken with dotnet watch #8805

@JeepNL

Description

@JeepNL

Describe the bug

  • Static Blazor WASM client.
  • .NET 8 preview 4

Hot Reload isn't usable anymore.

After every (saved) change in a .razor page the dotnet watch cli reports the following error:

dotnet watch ⌚ File changed: .\Pages\Txt2Img.razor.
dotnet watch ⌚ C:\X\Repos\Tusk\ClientTusk\Program.cs(10,28): error CS0246: The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)
dotnet watch ⌚ Found compilation errors during hot reload. Reporting it in application UI.

If you do CTRL-R (restart) everything works again. Without an additional change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions