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

PublishOptions

dotnet publish 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)

Force
Signature: bool option

Force all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting project.assets.json. (--force)

Framework
Signature: string option

Target framework to compile for (--framework)

Manifest
Signature: string list option

Specifies one or several target manifests to use to trim the set of packages published with the app. The manifest file is part of the output of the dotnet store command. This option is available starting with .NET Core 2.0 SDK. (--manifest)

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)

Runtime
Signature: string option

Target runtime to publish for (--runtime)

SelfContained
Signature: bool option

Publish the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine. The default is 'true' if a runtime identifier is specified. (--self-contained)

VersionSuffix
Signature: string option

Defines what * should be replaced with in version field in project.json (--version-suffix)

Instance members

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

Gets the current environment

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

Changes the "Common" properties according to the given function

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

Sets the current environment variables.

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

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

Static members

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

Parameter default values.

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

Use PublishOptions.Create instead