You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running dotnet watch in the directory of an ASP.NET Core 8.0 application using the .NET 9 SDK.
My app generates non-code files in the ~\App_Data directory as part of a background process (this includes binary, xml, json, and other non code files). When this happens, dotnet watch records the files being created or modified and will even hot reload
For example
dotnet watch ⌚ Files added: .\App_Data\LuceneSearch\QANDA_SEARCH\i-g0000059-p_False\write.lock, .\App_Data\LuceneSearch\QANDA_SEARCH\i-g0000059-p_False_taxonomy\write.lock
dotnet watch ⌚ Files added: .\App_Data\LuceneSearch\QANDA_SEARCH\i-g0000059-p_False\write.lock, .\App_Data\LuceneSearch\QANDA_SEARCH\i-g0000059-p_False_taxonomy\write.lock
dotnet watch ⌚ No hot reload changes to apply.
I have tried ignoring specific files but none of the recommendations work. Even if they did work, there's no reason I should have to explicitly ignore some .txt files in App_Data to keep my app from reloading.
seangwright
changed the title
dotnet watch records new non-code files
dotnet watch hot reloads for all non-code files - potential infinite reload loop
Nov 21, 2024
Describe the bug
I'm running
dotnet watch
in the directory of an ASP.NET Core 8.0 application using the .NET 9 SDK.My app generates non-code files in the
~\App_Data
directory as part of a background process (this includes binary, xml, json, and other non code files). When this happens,dotnet watch
records the files being created or modified and will even hot reloadFor example
I have tried ignoring specific files but none of the recommendations work. Even if they did work, there's no reason I should have to explicitly ignore some
.txt
files inApp_Data
to keep my app from reloading.To Reproduce
dotnet watch
App_Data\Test
becausedotnet watch
keeps reloading the pageExceptions (if any)
dotnet watch
should not process files that have nothing to do with rebuilding or hot-reloading my .NET application.Further technical details
The text was updated successfully, but these errors were encountered: