Table of Contents

Class NuGetUpdate

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Updates packages in legacy NuGet project formats.

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

Inheritance

Implements

Properties

CommandParts

Gets every canonically ordered rendered command fragment.

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

Property Value

IReadOnlyList<string?>

ConfigPath

The solution or packages.config file whose dependencies are updated.

public AbsolutePath? ConfigPath { get; init; }

Property Value

AbsolutePath?

DependencyVersion

The rule used to select dependency versions.

public NuGetDependencyVersion? DependencyVersion { get; init; }

Property Value

NuGetDependencyVersion?

FileConflictAction

The action taken when an updated package conflicts with an existing file.

public NuGetFileConflictAction? FileConflictAction { get; init; }

Property Value

NuGetFileConflictAction?

Ids

Package IDs selected for update.

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

Property Value

IReadOnlyList<string>

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?

Prerelease

Includes prerelease packages.

public bool Prerelease { get; init; }

Property Value

bool

RepositoryPath

The directory containing installed packages.

public AbsolutePath? RepositoryPath { get; init; }

Property Value

AbsolutePath?

Safe

Restricts updates to versions with the same major and minor components.

public bool Safe { get; init; }

Property Value

bool

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?