I've been plagued with this issue for a while when running in Radzen Blazor Studio, I have a file upload component on a form.
When the file upload completes I get:
dotnet watch File added: .\wwwroot\Attachments\1.xlsx
dotnet watch Hot Reload of static files succeeded.
dotnet watch No hot reload changes to apply.
Then the page reloads which is a pain.
I have tried adding to the project.csproj:
<ItemGroup>
<Watch Remove="wwwroot/Attachments/**" />
</ItemGroup>
I've also tried the environment variable: $env:DOTNET_WATCH_EXCLUDE="wwwroot/Attachments/**"
When I run the project on Visual studio it does not exhibit this behavior. Is there a solution?