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
ArtifactsPath
Places restore outputs for all projects beneath this artifacts root.
public string? ArtifactsPath { get; init; }Property Value
CommandParts
Gets every canonically ordered rendered command fragment.
protected override IReadOnlyList<string?> CommandParts { get; }Property Value
ConfigFile
Uses only this NuGet configuration file instead of the configuration hierarchy.
public string? ConfigFile { get; init; }Property Value
CurrentRuntime
Uses the current runtime as a restore target in addition to project-declared runtimes.
public bool CurrentRuntime { get; init; }Property Value
DisableBuildServers
Prevents reuse of persistent build servers during restore.
public bool DisableBuildServers { get; init; }Property Value
DisableParallel
Restores projects sequentially instead of concurrently.
public bool DisableParallel { get; init; }Property Value
Force
Re-resolves every dependency even when the existing assets file is current.
public bool Force { get; init; }Property Value
ForceEvaluate
Re-evaluates dependencies and updates the lock file even when it is otherwise current.
public bool ForceEvaluate { get; init; }Property Value
IgnoreFailedSources
Treats unavailable sources as warnings when required packages are available elsewhere.
public bool IgnoreFailedSources { get; init; }Property Value
Interactive
Allows authentication providers and other restore operations to prompt for input.
public bool Interactive { get; init; }Property Value
LockedMode
Fails when restore would change the existing dependency lock file.
public bool LockedMode { get; init; }Property Value
LockFilePath
Writes the lock file to this project-relative path instead of packages.lock.json.
public string? LockFilePath { get; init; }Property Value
NoDependencies
Restores the selected project without restoring project references.
public bool NoDependencies { get; init; }Property Value
NoHttpCache
Bypasses cached HTTP responses and downloads package metadata again.
public bool NoHttpCache { get; init; }Property Value
OperatingSystem
Shorthand restore operating system combined with the default runtime identifier.
public string? OperatingSystem { get; init; }Property Value
Packages
Directory in which restored packages are installed.
public string? Packages { get; init; }Property Value
Runtime
Restores packages for this runtime identifier in addition to project-declared runtimes.
public string? Runtime { get; init; }Property Value
Sources
Package sources used instead of those configured in NuGet configuration files.
public IReadOnlyList<string> Sources { get; init; }Property Value
UseLockFile
Generates or updates a dependency lock file during restore.
public bool UseLockFile { get; init; }