liveBook · Manning

Dotnet watch

dotnet watch is a .NET CLI tool that monitors project files and reruns, rebuilds, or reloads an application when supported changes occur.

How 2 Manning books explain it

.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

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.