Backport dotnet-watch changes to main/.NET 11
#10960
Merged
dotnet-watch changes to main/.NET 11
#10960