Table of Contents

Class DotNetWatch

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Watches project files and rebuilds, restarts, or hot-reloads the application after changes.

public sealed record DotNetWatch : ExecToolCommand, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<ExecResult>>, IEquatable<ExecToolCommand>, IEquatable<DotNetWatch>

Inheritance

Implements

Constructors

DotNetWatch()

Creates a command with output volume derived from the current logging level.

public DotNetWatch()

Properties

Architecture

Shorthand target architecture combined with the default runtime identifier.

public string? Architecture { get; init; }

Property Value

string?

ArtifactsPath

Places outputs for all projects beneath this artifacts root, separated by project.

public string? ArtifactsPath { get; init; }

Property Value

string?

CommandParts

Gets every canonically ordered rendered command fragment.

protected override IReadOnlyList<string?> CommandParts { get; }

Property Value

IReadOnlyList<string?>

Configuration

Selects the named build configuration.

public string? Configuration { get; init; }

Property Value

string?

DisableBuildServers

Prevents reuse of persistent build servers during this invocation.

public bool DisableBuildServers { get; init; }

Property Value

bool

Framework

Selects one target framework declared by the project.

public string? Framework { get; init; }

Property Value

string?

Interactive

Allows authentication and other operations to prompt for input.

public bool Interactive { get; init; }

Property Value

bool

List

Lists watched files without starting the application.

public bool List { get; init; }

Property Value

bool

NoHotReload

Restarts the application for changes instead of applying Hot Reload edits.

public bool NoHotReload { get; init; }

Property Value

bool

NonInteractive

Prevents the watcher from waiting for or requesting terminal input.

public bool NonInteractive { get; init; }

Property Value

bool

NoRestore

Skips implicit restore; assets must already be current.

public bool NoRestore { get; init; }

Property Value

bool

OperatingSystem

Shorthand target operating system combined with the default runtime identifier.

public string? OperatingSystem { get; init; }

Property Value

string?

Quiet

Suppresses nonessential command output.

public bool Quiet { get; init; }

Property Value

bool

Runtime

Targets the specified runtime identifier, such as win-x64.

public string? Runtime { get; init; }

Property Value

string?

SelfContained

Publishes and runs a self-contained application with the .NET runtime included.

public bool? SelfContained { get; init; }

Property Value

bool?

Verbose

Writes diagnostic detail beyond normal command output.

public bool Verbose { get; init; }

Property Value

bool

Verbosity

Controls MSBuild output detail for watched builds.

public string? Verbosity { get; init; }

Property Value

string?