Table of Contents

Class NuGetRestore

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Restores packages for legacy NuGet project formats.

public sealed record NuGetRestore : NuGetConfiguredCommand, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<ExecResult>>, IEquatable<ExecToolCommand>, IEquatable<NuGetCommand>, IEquatable<NuGetConfiguredCommand>, IEquatable<NuGetRestore>

Inheritance

Implements

Properties

CommandParts

Gets every canonically ordered rendered command fragment.

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

Property Value

IReadOnlyList<string?>

DirectDownload

Downloads packages without populating the HTTP or global-packages caches.

public bool DirectDownload { get; init; }

Property Value

bool

DisableParallelProcessing

Downloads or restores packages sequentially.

public bool DisableParallelProcessing { get; init; }

Property Value

bool

FallbackSources

Package sources consulted after the primary sources fail.

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

Property Value

IReadOnlyList<string>

Force

Restores even when the last restore is considered current.

public bool Force { get; init; }

Property Value

bool

ForceEvaluate

Reevaluates every dependency even when the lock file is current.

public bool ForceEvaluate { get; init; }

Property Value

bool

LockedMode

Fails when restore would change the lock file.

public bool LockedMode { get; init; }

Property Value

bool

LockFilePath

The packages lock file to use.

public AbsolutePath? LockFilePath { get; init; }

Property Value

AbsolutePath?

MSBuildPath

The directory containing the MSBuild executable to use.

public AbsolutePath? MSBuildPath { get; init; }

Property Value

AbsolutePath?

MSBuildVersion

The MSBuild version to use when locating MSBuild.

public string? MSBuildVersion { get; init; }

Property Value

string?

NoHttpCache

Bypasses the HTTP request cache.

public bool NoHttpCache { get; init; }

Property Value

bool

OutputDirectory

The directory that receives command output.

public AbsolutePath? OutputDirectory { get; init; }

Property Value

AbsolutePath?

PackageSaveMode

The package artifacts retained after download.

public NuGetPackageSaveMode? PackageSaveMode { get; init; }

Property Value

NuGetPackageSaveMode?

PackagesDirectory

The directory that receives restored packages.

public AbsolutePath? PackagesDirectory { get; init; }

Property Value

AbsolutePath?

ProjectPath

The solution, project, or packages.config file to restore.

public AbsolutePath? ProjectPath { get; init; }

Property Value

AbsolutePath?

ProjectToProjectTimeout

The timeout for resolving project-to-project references.

public TimeSpan? ProjectToProjectTimeout { get; init; }

Property Value

TimeSpan?

Recursive

Restores project references recursively.

public bool Recursive { get; init; }

Property Value

bool

RequireConsent

Checks whether package restore consent has been granted.

public bool RequireConsent { get; init; }

Property Value

bool

SolutionDirectory

The solution directory used to resolve packages and repository metadata.

public AbsolutePath? SolutionDirectory { get; init; }

Property Value

AbsolutePath?

Sources

Package sources used instead of configured sources.

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

Property Value

IReadOnlyList<string>

UseLockFile

Creates and uses a packages lock file.

public bool UseLockFile { get; init; }

Property Value

bool