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
DirectDownload
Downloads packages without populating the HTTP or global-packages caches.
public bool DirectDownload { get; init; }Property Value
DisableParallelProcessing
Downloads or restores packages sequentially.
public bool DisableParallelProcessing { get; init; }Property Value
FallbackSources
Package sources consulted after the primary sources fail.
public IReadOnlyList<string> FallbackSources { get; init; }Property Value
Force
Restores even when the last restore is considered current.
public bool Force { get; init; }Property Value
ForceEvaluate
Reevaluates every dependency even when the lock file is current.
public bool ForceEvaluate { get; init; }Property Value
LockedMode
Fails when restore would change the lock file.
public bool LockedMode { get; init; }Property Value
LockFilePath
The packages lock file to use.
public AbsolutePath? LockFilePath { get; init; }Property Value
MSBuildPath
The directory containing the MSBuild executable to use.
public AbsolutePath? MSBuildPath { get; init; }Property Value
MSBuildVersion
The MSBuild version to use when locating MSBuild.
public string? MSBuildVersion { get; init; }Property Value
NoHttpCache
Bypasses the HTTP request cache.
public bool NoHttpCache { get; init; }Property Value
OutputDirectory
The directory that receives command output.
public AbsolutePath? OutputDirectory { get; init; }Property Value
PackageSaveMode
The package artifacts retained after download.
public NuGetPackageSaveMode? PackageSaveMode { get; init; }Property Value
PackagesDirectory
The directory that receives restored packages.
public AbsolutePath? PackagesDirectory { get; init; }Property Value
ProjectPath
The solution, project, or packages.config file to restore.
public AbsolutePath? ProjectPath { get; init; }Property Value
ProjectToProjectTimeout
The timeout for resolving project-to-project references.
public TimeSpan? ProjectToProjectTimeout { get; init; }Property Value
Recursive
Restores project references recursively.
public bool Recursive { get; init; }Property Value
RequireConsent
Checks whether package restore consent has been granted.
public bool RequireConsent { get; init; }Property Value
SolutionDirectory
The solution directory used to resolve packages and repository metadata.
public AbsolutePath? SolutionDirectory { get; init; }Property Value
Sources
Package sources used instead of configured sources.
public IReadOnlyList<string> Sources { get; init; }Property Value
UseLockFile
Creates and uses a packages lock file.
public bool UseLockFile { get; init; }