Table of Contents

Class NuGetInstall

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Downloads packages without modifying a project.

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

Inheritance

Implements

Properties

CommandParts

Gets every canonically ordered rendered command fragment.

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

Property Value

IReadOnlyList<string?>

DependencyVersion

The rule used to select dependency versions.

public NuGetDependencyVersion? DependencyVersion { get; init; }

Property Value

NuGetDependencyVersion?

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

ExcludeVersion

Omits the package version from the installation directory name.

public bool ExcludeVersion { get; init; }

Property Value

bool

FallbackSources

Package sources consulted after the primary sources fail.

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

Property Value

IReadOnlyList<string>

Framework

The target framework used to choose compatible dependencies.

public string? Framework { 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?

PackageId

The package ID.

public string? PackageId { get; init; }

Property Value

string?

PackageSaveMode

The package artifacts retained after download.

public NuGetPackageSaveMode? PackageSaveMode { get; init; }

Property Value

NuGetPackageSaveMode?

PackagesConfigPath

The packages.config file whose packages are downloaded.

public AbsolutePath? PackagesConfigPath { get; init; }

Property Value

AbsolutePath?

Prerelease

Includes prerelease packages.

public bool Prerelease { 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>

Version

The package version.

public string? Version { get; init; }

Property Value

string?