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
* Add support for reloading static files
* Update vanilla css files without a browser reload
* Refresh the browser when changes to other static content is detected.
Copy file name to clipboardexpand all lines: src/Tools/dotnet-watch/README.md
+2
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,8 @@ Some configuration options can be passed to `dotnet watch` through environment v
32
32
| DOTNET_WATCH_SUPPRESS_MSBUILD_INCREMENTALISM | By default, `dotnet watch` optimizes the build by avoiding certain operations such as running restore or re-evaluating the set of watched files on every file change. If set to "1" or "true", these optimizations are disabled. |
33
33
| DOTNET_WATCH_SUPPRESS_LAUNCH_BROWSER |`dotnet watch run` will attempt to launch browsers for web apps with `launchBrowser` configured in `launchSettings.json`. If set to "1" or "true", this behavior is suppressed. |
34
34
| DOTNET_WATCH_SUPPRESS_MSBUILD_INCREMENTALISM |`dotnet watch run` will attempt to refresh browsers when it detects file changes. If set to "1" or "true", this behavior is suppressed. This behavior is also suppressed if DOTNET_WATCH_SUPPRESS_LAUNCH_BROWSER is set. |
35
+
| DOTNET_WATCH_SUPPRESS_STATIC_FILE_HANDLING | If set to "1", or "true", `dotnet watch` will not perform special handling for static content file
36
+
35
37
### MSBuild
36
38
37
39
dotnet-watch can be configured from the MSBuild project file being watched.
// Now wait for a file to change before restarting process
134
153
context.ChangedFile=awaitfileSetWatcher.GetChangedFileAsync(cancellationToken,()=>_reporter.Warn("Waiting for a file to change before restarting dotnet..."));
0 commit comments