Description
Describe the bug
Since upgrading to 9.0.200 when I run dotnet watch run
and my web app writes to the logs folder to a log file it now sees it as a change and the watch process sees it as an event and hot reloads and my browser reloads the page. If I try to run it the way I used to with just the dotnet watch
command then it goes into an infinite loop with the hot reload. I am using serilog to log to the console and a log file in a folder called logs. I have excluded the logs folder from the project and my project file looks like this now since I have added the Watch="false"
pieces to it like the documentation states to do.
And here is what the console is showing what dotnet is doing:
Then the browser window reloads. This was not happening in 9.0.100, but I was having the issue of it not hot reloading the changes like other were in 9.0.100. Now with this issue it is worse. Hopefully a hotfix can be put out quickly or a work around.
To Reproduce
Just have the logger output to a log file within the project folder and run the dotnet watch run
command and do something that causes it to write to the log file or add or delete files from the log folder.