Several tools available only on a per-project basis using DotnetCliToolReference are now available as part of the .NET Core SDK. These tools include:
dotnet watchdotnet watch provides a file system watcher that waits for a file to change before executing a designated set of commands. For example, the following command automatically rebuilds the current project and generates verbose output whenever a file in it changes:
.NET Core CLI
dotnet watch -- --verbose build
-- option that precedes the --verbose option delimits the options passed directly to the dotnet watch command from the arguments passed to the child dotnet process.-- option, the --verbose option applies to the dotnet watch command, not the dotnet build command.dotnet-watch configurationSome configuration options can be passed to dotnet watch through environment variables. The available variables are:
| Setting | Description | 
|---|---|
| DOTNET_USE_POLLING_FILE_WATCHER | If set to 1ortrue,dotnet watchuses a polling file watcher instead of CoreFx'sFileSystemWatcher. Used when watching files on network shares or Docker mounted volumes. | 
| DOTNET_WATCH_SUPPRESS_MSBUILD_INCREMENTALISM | By default, dotnet watchoptimize the build by avoiding certain operations such as running restore or re-evaluating the set of watched files on every file change. If set to1ortrue, these optimizations are disabled. | 
| DOTNET_WATCH_SUPPRESS_LAUNCH_BROWSER | dotnet watchrun attempts to launch browsers for web apps with launchBrowser configured inlaunchSettings.json. If set to1ortrue, this behavior is suppressed. | 
| DOTNET_WATCH_SUPPRESS_BROWSER_REFRESH | dotnet watchrun attempts to refresh browsers when it detects file changes. If set to1ortrue, this behavior is suppressed. This behavior is also suppressed ifDOTNET_WATCH_SUPPRESS_LAUNCH_BROWSERis set. | 
dotnet dev-certsdotnet dev-certs generates and manages certificates used during development in ASP.NET Core applications.
dotnet user-secretsdotnet user-secrets manages the secrets in a user secret store in ASP.NET Core applications.
dotnet sql-cachedotnet sql-cache creates a table and indexes in a Microsoft SQL Server database to be used for distributed caching.
dotnet efdotnet ef is a tool for managing databases, DbContext objects, and migrations in Entity Framework Core applications.
dotnet command, which is part of the .NET Core SDK.