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
DependencyVersion
The rule used to select dependency versions.
public NuGetDependencyVersion? DependencyVersion { get; init; }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
ExcludeVersion
Omits the package version from the installation directory name.
public bool ExcludeVersion { get; init; }Property Value
FallbackSources
Package sources consulted after the primary sources fail.
public IReadOnlyList<string> FallbackSources { get; init; }Property Value
Framework
The target framework used to choose compatible dependencies.
public string? Framework { 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
PackageId
The package ID.
public string? PackageId { get; init; }Property Value
PackageSaveMode
The package artifacts retained after download.
public NuGetPackageSaveMode? PackageSaveMode { get; init; }Property Value
PackagesConfigPath
The packages.config file whose packages are downloaded.
public AbsolutePath? PackagesConfigPath { get; init; }Property Value
Prerelease
Includes prerelease packages.
public bool Prerelease { 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
Version
The package version.
public string? Version { get; init; }