dotnet watch
prints No hot reload changes to apply
when <AdditionalFiles>
is used in .csproj
#45656
Labels
dotnet watch
prints No hot reload changes to apply
when <AdditionalFiles>
is used in .csproj
#45656
Describe the bug
When
<AdditionalFiles Include="any-razor-page.cshtml"/>
is added to the .csproj file, dotnet watch stops working for all files in the project and consistently outputsNo hot reload changes to apply
, despite changes being made to the files.However, the changes can be applied manually by pressing Ctrl+R or restarting dotnet watch.
dotnet watch --verbose
To Reproduce
Steps to reproduce the behavior:
dotnet new razor
dotnet watch
Alternatively, you can clone my repository to see the issue in action: hot-reload-bug-demo-2
Exceptions (if any)
dotnet watch
should detect changes made to any Razor pages and apply hot reload appropriately.Further technical details
dotnet --info
The text was updated successfully, but these errors were encountered: