Table of Contents

Class NugetFeedOptions

Namespace
Invex.Atom.Workflows.Dotnet.Nuget
Assembly
Invex.Atom.Workflows.dll

Represents the configuration for a NuGet feed to be added during a build workflow.

public sealed record NugetFeedOptions
Inheritance
object
NugetFeedOptions

Examples

new NugetFeedOptions
{
    FeedName = "MyPrivateFeed",
    FeedUrl = "https://nuget.pkg.github.com/MyOrg/index.json",
    SecretName = "PRIVATE_NUGET_API_KEY"
}

Remarks

This record defines a NuGet package source, including its name, URL, and the secret required for authentication. It is typically used to grant build workflows access to private or custom NuGet repositories.

Constructors

NugetFeedOptions()

public NugetFeedOptions()

Properties

FeedName

Gets the name used to identify the NuGet feed in configurations and logs.

public required string FeedName { get; init; }

Property Value

string

FeedUrl

Gets the URL of the NuGet package source endpoint.

public required string FeedUrl { get; init; }

Property Value

string

SecretName

Gets the name of the secret (e.g., in GitHub Secrets) that stores the API key or token for authenticating with the NuGet feed.

public required string SecretName { get; init; }

Property Value

string