Table of Contents

Class NugetPackOptions

Namespace
Ando.Operations
Assembly
ando.dll

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

public class NugetPackOptions
Inheritance
NugetPackOptions
Inherited Members

Properties

Configuration

Build configuration (Debug or Release).

public Configuration? Configuration { get; }

Property Value

Configuration?

IncludeSource

Include source files in the symbol package.

public bool IncludeSource { get; }

Property Value

bool

IncludeSymbols

Include symbol package (.snupkg) for debugging.

public bool IncludeSymbols { get; }

Property Value

bool

NoBuild

Skip build before packing (uses existing build output).

public bool NoBuild { get; }

Property Value

bool

NoRestore

Skip package restore before packing.

public bool NoRestore { get; }

Property Value

bool

OutputPath

Output directory for the generated package.

public BuildPath? OutputPath { get; }

Property Value

BuildPath?

Version

Explicit package version (overrides project file version).

public string? Version { get; }

Property Value

string

VersionSuffix

Version suffix for pre-release packages (e.g., "beta1", "preview").

public string? VersionSuffix { get; }

Property Value

string

Methods

Output(BuildPath)

Sets the output directory using a BuildPath.

public NugetPackOptions Output(BuildPath path)

Parameters

path BuildPath

Returns

NugetPackOptions

Output(string)

Sets the output directory using a string path.

public NugetPackOptions Output(string path)

Parameters

path string

Returns

NugetPackOptions

SkipBuild()

Skips build before packing (uses existing build output).

public NugetPackOptions SkipBuild()

Returns

NugetPackOptions

SkipRestore()

Skips package restore before packing.

public NugetPackOptions SkipRestore()

Returns

NugetPackOptions

WithConfiguration(Configuration)

Sets the build configuration (Debug or Release).

public NugetPackOptions WithConfiguration(Configuration configuration)

Parameters

configuration Configuration

Returns

NugetPackOptions

WithSource(bool)

Includes source files in the symbol package.

public NugetPackOptions WithSource(bool include = true)

Parameters

include bool

Returns

NugetPackOptions

WithSymbols(bool)

Includes symbol package (.snupkg) for debugging support.

public NugetPackOptions WithSymbols(bool include = true)

Parameters

include bool

Returns

NugetPackOptions

WithVersion(string)

Sets the explicit package version.

public NugetPackOptions WithVersion(string version)

Parameters

version string

Returns

NugetPackOptions

WithVersionSuffix(string)

Sets the version suffix for pre-release packages.

public NugetPackOptions WithVersionSuffix(string suffix)

Parameters

suffix string

Returns

NugetPackOptions