For a "dotnet new web" project, if you try to make a change and hit save, you will not see the change even if you force refresh the browser
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 281
Description
### Describe the bug
Hot Reload doesn't work when you create a new endpoint using minimal API, it doesn't even rebuild and refresh the browser, and when you force refresh the browser the changes are still not reflected.

### To Reproduce
- In WSL - Ubuntu 20.04 LTS
- Create a new web app using "dotnet new web"
- Use "code ." to open it in VS Code
- In the Terminal type "dotnet watch"
- Open the link in the browser
- Open Project.cs
- Create a new endpoint OR update the existing "Hello World" text
- Hit CTRL+S
- You will see the message "No hot reload changes to apply. Application restarting because changes were detected to the app's initialization code."
- At this point you would assume the changes have been reflected in the browser.
- If you goto the browser, it has not refreshed, and if you force refresh the browser, you will still not see the changes.
### Further technical details
- Output of `dotnet --info`
.NET SDK (reflecting any global.json):
Version: 6.0.100-preview.5.21302.13
Commit: d6380bcae7
Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: ubuntu.20.04-x64
Base Path: /home/mac/dotnet/sdk/6.0.100-preview.5.21302.13/
Host (useful for support):
Version: 6.0.0-preview.5.21301.5
Commit: ec3e0b276b
.NET SDKs installed:
6.0.100-preview.5.21302.13 [/home/mac/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.0-preview.5.21301.17 [/home/mac/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.0-preview.5.21301.5 [/home/mac/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
- The IDE: VS Code

Contributor guide
Assessment
This issue has not been assessed yet.