dotnet / dotnet/sdk

[WebToolsE2E][Hot Reload] Page does not update stylesheet in .NET 11 Blazor Web App with SDK 11 Preview 1

Open
#53,134 10 comments 0 reactions 0 assignees View on GitHub
Area-AspNetCore type-investigation
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

**REGRESSION INFO** Work with NET 10,9,8

**INSTALL STEPS**

1. Clean machine: Win11 x64 24h2 ENU
2. Install SDK 11 Preview 1

**REPRO STEPS**

1. File > New > Project > Blazor Web App > .NET 11.0 (Preview)> WASM > Global > Create.
2. Right click project > Open in terminal > run command `dotnet watch`
3. Open MainLayout.razor.css > Add following code to Line 5:
`background-color: gold;`
5. Save the file.

Note:
- Repro on WASM and Auto.
- Doesn't repro on per page/component.
- This issue reproduces in Visual Studio but does not reproduce in Visual Studio Code.

**ACTUAL**
Background color of the page wasn't updating.

https://github.com/user-attachments/assets/10dbc06d-0e5f-48f6-835d-2a7db3afd13f

**EXPECTED**
Background color of the page should be updating.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.