Table of Contents

Class NugetPushOptions

Namespace
Ando.Operations
Assembly
ando.dll

Fluent builder for configuring 'dotnet nuget push' command options. Methods return 'this' for chaining.

public class NugetPushOptions
Inheritance
NugetPushOptions
Inherited Members

Fields

NuGetOrgSource

Default NuGet.org API endpoint.

public const string NuGetOrgSource = "https://api.nuget.org/v3/index.json"

Field Value

string

Properties

ApiKey

API key for authentication with the NuGet feed.

public string? ApiKey { get; }

Property Value

string

NoSymbols

Don't push symbol packages (.snupkg).

public bool NoSymbols { get; }

Property Value

bool

SkipDuplicate

Skip pushing if package version already exists. Defaults to true.

public bool SkipDuplicate { get; }

Property Value

bool

Source

NuGet feed source URL.

public string? Source { get; }

Property Value

string

Methods

SkipDuplicates(bool)

Skips pushing if the package version already exists on the feed. Prevents failures when re-running builds that may have already pushed.

public NugetPushOptions SkipDuplicates(bool skip = true)

Parameters

skip bool

Returns

NugetPushOptions

ToNuGetOrg()

Sets nuget.org as the target feed.

public NugetPushOptions ToNuGetOrg()

Returns

NugetPushOptions

ToSource(string)

Sets the NuGet feed source URL.

public NugetPushOptions ToSource(string source)

Parameters

source string

Returns

NugetPushOptions

WithApiKey(string)

Sets the API key for authentication.

public NugetPushOptions WithApiKey(string apiKey)

Parameters

apiKey string

Returns

NugetPushOptions

WithoutSymbols(bool)

Don't push symbol packages (.snupkg). Use when symbols are not needed or handled separately.

public NugetPushOptions WithoutSymbols(bool noSymbols = true)

Parameters

noSymbols bool

Returns

NugetPushOptions