Table of Contents

Class DotNetNuGetPush

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Uploads a NuGet package and, unless disabled, its matching symbol package.

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

Inheritance

Implements

Properties

AllowInsecureConnections

Allows connections to package sources using HTTP.

public bool AllowInsecureConnections { get; init; }

Property Value

bool

ApiKey

The credential sent to the package source; use a DotNetDo.Secret value to keep it redacted.

public string? ApiKey { get; init; }

Property Value

string?

CommandParts

Gets every canonically ordered rendered command fragment.

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

Property Value

IReadOnlyList<string?>

ConfigFile

Uses this NuGet configuration file instead of the configuration hierarchy.

public string? ConfigFile { get; init; }

Property Value

string?

DisableBuffering

Disables buffering when pushing to an HTTP(S) server.

public bool DisableBuffering { get; init; }

Property Value

bool

ForceEnglishOutput

Forces invariant English output.

public bool ForceEnglishOutput { get; init; }

Property Value

bool

Interactive

Allows the command to wait for interactive authentication or input.

public bool Interactive { get; init; }

Property Value

bool

NoServiceEndpoint

Prevents api/v2/package from being appended to the source URL.

public bool NoServiceEndpoint { get; init; }

Property Value

bool

NoSymbols

Prevents symbol packages from being pushed.

public bool NoSymbols { get; init; }

Property Value

bool

Package

The .nupkg file to upload; glob patterns are accepted by the .NET CLI.

public string? Package { get; init; }

Property Value

string?

SkipDuplicate

Skips packages whose version already exists at the source.

public bool SkipDuplicate { get; init; }

Property Value

bool

Source

The source name, path, or URL receiving the package; defaults to NuGet configuration.

public string? Source { get; init; }

Property Value

string?

SymbolApiKey

The credential sent when uploading the symbol package.

public string? SymbolApiKey { get; init; }

Property Value

string?

SymbolSource

The source name, path, or URL receiving the symbol package.

public string? SymbolSource { get; init; }

Property Value

string?

Timeout

Maximum duration allowed for a server push; rendered as whole seconds.

public TimeSpan? Timeout { get; init; }

Property Value

TimeSpan?