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
Properties
ApiKey
API key for authentication with the NuGet feed.
public string? ApiKey { get; }
Property Value
NoSymbols
Don't push symbol packages (.snupkg).
public bool NoSymbols { get; }
Property Value
SkipDuplicate
Skip pushing if package version already exists. Defaults to true.
public bool SkipDuplicate { get; }
Property Value
Source
NuGet feed source URL.
public string? Source { get; }
Property Value
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
skipbool
Returns
ToNuGetOrg()
Sets nuget.org as the target feed.
public NugetPushOptions ToNuGetOrg()
Returns
ToSource(string)
Sets the NuGet feed source URL.
public NugetPushOptions ToSource(string source)
Parameters
sourcestring
Returns
WithApiKey(string)
Sets the API key for authentication.
public NugetPushOptions WithApiKey(string apiKey)
Parameters
apiKeystring
Returns
WithoutSymbols(bool)
Don't push symbol packages (.snupkg). Use when symbols are not needed or handled separately.
public NugetPushOptions WithoutSymbols(bool noSymbols = true)
Parameters
noSymbolsbool