Dotnet watch
dotnet watch is a .NET CLI tool that monitors project files and reruns, rebuilds, or reloads an application when supported changes occur.
.NET in Action, Second Edition
dotnet watch is a .NET command-line tool that monitors source files and reruns or reloads an application when changes occur.
- How it is used
- Speeds ASP.NET Core development by replacing repeated stop-save-dotnet-run cycles with file watching.
- How deep it goes
- Defines the command and its recompilation-and-rerun behavior, but does not detail configuration, reload boundaries, or internals.
- Examples
- Uses dotnet watch run while testing an ASP.NET Core endpoint and changing its source files.
- What you can do after
- Apply it via the .NET CLI to recompile and rerun an application after source changes.
Read how .NET in Action, Second Edition explains dotnet watch →
Pro ASP.NET Core 7, Tenth Edition
dotnet watch is a .NET command-line tool that monitors source files and reruns or rebuilds an application when changes occur.
- How it is used
- Runs ASP.NET Core applications during development while monitoring files and applying supported changes automatically.
- How deep it goes
- Explains startup, browser reloading, and restart fallbacks, but stops short of describing hot reload internals.
- Examples
- Uses PartyInvites views, wwwroot HTML, API application startup, and C# namespace edits to demonstrate reloads and failures.
- What you can do after
- Operate a development application with automatic browser updates and choose when unsupported edits require an application restart.
Read how Pro ASP.NET Core 7, Tenth Edition explains dotnet watch →
Related concepts
- dotnet runalternative to · dotnet run is a .NET CLI command that builds and runs an application from its project.
- viewuses · A view is a presentation component or template that renders application data into a user-interface element or client response.
- code reloadinguses · Code reloading is a development technique that detects changed code or resources and refreshes, reevaluates, or restarts affected application components without requiring a full manual restart.
- Razor Pagesuses · Razor Pages is an ASP.NET Core page-focused programming model in which independently addressable pages combine Razor markup with request-handling logic.
- browseruses · A web browser is software that retrieves, interprets, and renders web resources, executes supported web content, and enables interaction with web pages and applications.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

