Table of Contents

Class DotNetToolUpdate

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Updates a global, local-manifest, or explicit-path .NET tool.

public sealed record DotNetToolUpdate : ExecToolCommand, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<ExecResult>>, IEquatable<ExecToolCommand>, IEquatable<DotNetToolUpdate>

Inheritance

Implements

Properties

AddSources

Additional NuGet package sources.

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

Property Value

IReadOnlyList<string>

All

Whether every tool in the selected manifest or scope is updated.

public bool All { get; init; }

Property Value

bool

AllowDowngrade

Whether an explicit downgrade is allowed.

public bool AllowDowngrade { get; init; }

Property Value

bool

CommandParts

Gets every canonically ordered rendered command fragment.

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

Property Value

IReadOnlyList<string?>

ConfigFile

An explicit NuGet configuration file.

public string? ConfigFile { get; init; }

Property Value

string?

DisableParallel

Whether parallel restore is disabled.

public bool DisableParallel { get; init; }

Property Value

bool

Framework

An explicit target framework.

public string? Framework { get; init; }

Property Value

string?

Global

Whether the global tool installation is updated.

public bool Global { get; init; }

Property Value

bool

IgnoreFailedSources

Whether unavailable package sources are treated as warnings.

public bool IgnoreFailedSources { get; init; }

Property Value

bool

Interactive

Whether authentication may prompt interactively.

public bool Interactive { get; init; }

Property Value

bool

Local

Whether the local tool manifest is updated.

public bool Local { get; init; }

Property Value

bool

NoHttpCache

Whether NuGet caches are bypassed.

public bool NoHttpCache { get; init; }

Property Value

bool

Package

The tool package ID.

public string? Package { get; init; }

Property Value

string?

Prerelease

Whether prerelease packages are eligible.

public bool Prerelease { get; init; }

Property Value

bool

Sources

Replacement NuGet package sources.

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

Property Value

IReadOnlyList<string>

ToolManifest

An explicit local tool manifest.

public string? ToolManifest { get; init; }

Property Value

string?

ToolPath

An explicit tool installation directory.

public string? ToolPath { get; init; }

Property Value

string?

Verbosity

The restore logging verbosity.

public string? Verbosity { get; init; }

Property Value

string?

Version

An explicit package version.

public string? Version { get; init; }

Property Value

string?