Table of Contents

Class DotnetBuildOptions

Namespace
Invex.Atom.Module.Dotnet.Cli
Assembly
Invex.Atom.Module.Dotnet.dll
public sealed record DotnetBuildOptions
Inheritance
object
DotnetBuildOptions

Constructors

DotnetBuildOptions()

public DotnetBuildOptions()

Properties

Arch

The target architecture.

public string? Arch { get; init; }

Property Value

string

ArtifactsPath

The artifacts path. All output from the project, including build, publish, and pack output, will go in subfolders under the specified path.

public string? ArtifactsPath { get; init; }

Property Value

string

ConfigFile

public string? ConfigFile { get; init; }

Property Value

string

Configuration

The configuration to use for building the project. The default for most projects is 'Debug'.

public string? Configuration { get; init; }

Property Value

string

Debug

public bool? Debug { get; init; }

Property Value

bool?

DisableBuildServers

Force the command to ignore any persistent build servers.

public bool? DisableBuildServers { get; init; }

Property Value

bool?

DisableParallel

public bool? DisableParallel { get; init; }

Property Value

bool?

Force

Force all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting project.assets.json.

public bool? Force { get; init; }

Property Value

bool?

Framework

The target framework to build for. The target framework must also be specified in the project file.

public string? Framework { get; init; }

Property Value

string

GetItem

public string[]? GetItem { get; init; }

Property Value

string[]

GetProperty

public string[]? GetProperty { get; init; }

Property Value

string[]

GetResultOutputFile

public string[]? GetResultOutputFile { get; init; }

Property Value

string[]

GetTargetResult

public string[]? GetTargetResult { get; init; }

Property Value

string[]

IgnoreFailedSources

public bool? IgnoreFailedSources { get; init; }

Property Value

bool?

Interactive

Allows the command to stop and wait for user input or action (for example to complete authentication).

public bool? Interactive { get; init; }

Property Value

bool?

NoDependencies

Do not build project-to-project references and only build the specified project.

public bool? NoDependencies { get; init; }

Property Value

bool?

NoHttpCache

public bool? NoHttpCache { get; init; }

Property Value

bool?

NoIncremental

Do not use incremental building.

public bool? NoIncremental { get; init; }

Property Value

bool?

Do not display the startup banner or the copyright message.

public bool? NoLogo { get; init; }

Property Value

bool?

NoRestore

Do not restore the project before building.

public bool? NoRestore { get; init; }

Property Value

bool?

NoSelfContained

Publish your application as a framework dependent application. A compatible .NET runtime must be installed on the target machine to run your application.

public bool? NoSelfContained { get; init; }

Property Value

bool?

Os

The target operating system.

public string? Os { get; init; }

Property Value

string

Output

The output directory to place built artifacts in.

public string? Output { get; init; }

Property Value

string

Packages

public string? Packages { get; init; }

Property Value

string

Property

public IReadOnlyDictionary<string, string>? Property { get; init; }

Property Value

IReadOnlyDictionary<string, string>

RestoreProperty

public IReadOnlyDictionary<string, string>? RestoreProperty { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Runtime

The target runtime to build for.

public string? Runtime { get; init; }

Property Value

string

SelfContained

Publish the .NET runtime with your application so the runtime doesn't need to be installed on the target machine. The default is 'false.' However, when targeting .NET 7 or lower, the default is 'true' if a runtime identifier is specified.

public bool? SelfContained { get; init; }

Property Value

bool?

Source

public IEnumerable<string>? Source { get; init; }

Property Value

IEnumerable<string>

Target

Build these targets in this project. Use a semicolon or a comma to separate multiple targets, or specify each target separately.

public string[]? Target { get; init; }

Property Value

string[]

UseCurrentRuntime

Use current runtime as the target runtime.

public bool? UseCurrentRuntime { get; init; }

Property Value

bool?

Verbosity

Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

public VerbosityOptions? Verbosity { get; init; }

Property Value

VerbosityOptions?

VersionSuffix

Set the value of the $(VersionSuffix) property to use when building the project.

public string? VersionSuffix { get; init; }

Property Value

string

Methods

ToArguments()

Converts these options to individual command-line arguments, in schema order.

public IReadOnlyList<string> ToArguments()

Returns

IReadOnlyList<string>

The arguments. Each option name and each value is a separate element, so values need no quoting.