Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found here. If the API is already migrated you can check here if exists in a module. More information regarding the migration can be found here

PackOptions

dotnet pack command options

Record Fields

Record FieldDescription
BuildBasePath
Signature: string option

Build base path (--build-base-path)

Common
Signature: Options

Common tool options

Configuration
Signature: BuildConfiguration

Pack configuration (--configuration)

MSBuildParams
Signature: CliArguments

Other msbuild specific parameters

NoBuild
Signature: bool

No build flag (--no-build)

NoRestore
Signature: bool

Doesn't execute an implicit restore when running the command. (--no-restore)

OutputPath
Signature: string option

Output path (--output)

VersionSuffix
Signature: string option

Version suffix to use

Instance members

Instance memberDescription
x.Environment
Signature: Map<string,string>

Gets the current environment

x.WithCommon(f)
Signature: (f:(Options -> Options)) -> PackOptions

Changes the "Common" properties according to the given function

x.WithEnvironment(map)
Signature: map:Map<string,string> -> PackOptions

Sets the current environment variables.

x.WithRedirectOutput(shouldRedirect)
Signature: shouldRedirect:bool -> PackOptions

Sets a value indicating whether the output for the given process is redirected.

Static members

Static memberDescription
PackOptions.Create()
Signature: unit -> PackOptions

Parameter default values.

PackOptions.Default
Signature: PackOptions
Attributes:
[<Obsolete("Use PackOptions.Create instead")>]
OBSOLETE

Use PackOptions.Create instead