Table of Contents

Class DotNetBuild

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Compiles selected projects and their dependencies, restoring first unless disabled.

public sealed record DotNetBuild : DotNetBuildOptionsCommand, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<ExecResult>>, IEquatable<ExecToolCommand>, IEquatable<DotNetTargetCommand>, IEquatable<DotNetBuildOptionsCommand>, IEquatable<DotNetBuild>

Inheritance

Implements

Properties

Architecture

Shorthand target architecture combined with the default runtime identifier.

public string? Architecture { get; init; }

Property Value

string?

CommandParts

Gets every canonically ordered rendered command fragment.

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

Property Value

IReadOnlyList<string?>

Debug

Enables additional CLI debug diagnostics.

public bool Debug { get; init; }

Property Value

bool

Framework

Builds only the specified target framework, which must exist in the project.

public string? Framework { get; init; }

Property Value

string?

NoDependencies

Builds the selected project without building project references.

public bool NoDependencies { get; init; }

Property Value

bool

NoIncremental

Forces a clean dependency graph evaluation instead of an incremental build.

public bool NoIncremental { get; init; }

Property Value

bool

OperatingSystem

Shorthand target operating system combined with the default runtime identifier.

public string? OperatingSystem { get; init; }

Property Value

string?

SelfContained

Controls whether the .NET runtime is bundled; null leaves project defaults unchanged.

public bool? SelfContained { get; init; }

Property Value

bool?

Version

Sets the build version.

public string? Version { get; init; }

Property Value

string?