Table of Contents

Class DotNetRestore

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Resolves NuGet dependencies and writes the assets required by later build operations.

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

Inheritance

Implements

Properties

Architecture

Shorthand restore architecture combined with the default runtime identifier.

public string? Architecture { get; init; }

Property Value

string?

ArtifactsPath

Places restore outputs for all projects beneath this artifacts root.

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?>

ConfigFile

Uses only this NuGet configuration file instead of the configuration hierarchy.

public string? ConfigFile { get; init; }

Property Value

string?

CurrentRuntime

Uses the current runtime as a restore target in addition to project-declared runtimes.

public bool CurrentRuntime { get; init; }

Property Value

bool

DisableBuildServers

Prevents reuse of persistent build servers during restore.

public bool DisableBuildServers { get; init; }

Property Value

bool

DisableParallel

Restores projects sequentially instead of concurrently.

public bool DisableParallel { get; init; }

Property Value

bool

Force

Re-resolves every dependency even when the existing assets file is current.

public bool Force { get; init; }

Property Value

bool

ForceEvaluate

Re-evaluates dependencies and updates the lock file even when it is otherwise current.

public bool ForceEvaluate { get; init; }

Property Value

bool

IgnoreFailedSources

Treats unavailable sources as warnings when required packages are available elsewhere.

public bool IgnoreFailedSources { get; init; }

Property Value

bool

Interactive

Allows authentication providers and other restore operations to prompt for input.

public bool Interactive { get; init; }

Property Value

bool

LockedMode

Fails when restore would change the existing dependency lock file.

public bool LockedMode { get; init; }

Property Value

bool

LockFilePath

Writes the lock file to this project-relative path instead of packages.lock.json.

public string? LockFilePath { get; init; }

Property Value

string?

NoDependencies

Restores the selected project without restoring project references.

public bool NoDependencies { get; init; }

Property Value

bool

NoHttpCache

Bypasses cached HTTP responses and downloads package metadata again.

public bool NoHttpCache { get; init; }

Property Value

bool

OperatingSystem

Shorthand restore operating system combined with the default runtime identifier.

public string? OperatingSystem { get; init; }

Property Value

string?

Packages

Directory in which restored packages are installed.

public string? Packages { get; init; }

Property Value

string?

Runtime

Restores packages for this runtime identifier in addition to project-declared runtimes.

public string? Runtime { get; init; }

Property Value

string?

Sources

Package sources used instead of those configured in NuGet configuration files.

public IReadOnlyList<string> Sources { get; init; }

Property Value

IReadOnlyList<string>

UseLockFile

Generates or updates a dependency lock file during restore.

public bool UseLockFile { get; init; }

Property Value

bool