Open StringEpsilon opened 1 week ago
@tmat, looks like this is a dotnet watch
issue.
@StringEpsilon Could you share the full --verbose
output for the case when you get Unable to apply hot reload, restart is needed to apply the changes.
error?
@tmat I have only had that happen once so far from changes in the .git directory, which was when I was testing the reproduction steps for this issue.
If I find a way to provoke that reliably, I'll try to get the verbose output for it. But I'll not run --verbose for my everyday work to catch what turned out to be a fluke, hope you'll understand.
The main issue still stands tho.
@StringEpsilon Thanks. We can certainly special-case and exclude the .git
directory, but there should be no difference in functionality. Just more console output.
Describe the bug
The
dotnet watch run
command watches the.git
folder of my project, sometimes even recompiling due to this error:From a simple git stash / git stash pop:
To Reproduce
touch test
git add test
dotnet watch run
git stash -S
Now observe the
dotnet watch
console output.Exceptions (if any)
N/A
Further technical details
dotnet --info
output:dotnet --info