This is part of the Fake.DotNet.Cli module.
dotnet publish command options
Record Field | Description |
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)
|
NoLogo
Signature: bool
|
Don't show copyright messages. (--nologo)
|
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 member | Description |
x.Environment
Signature: Map<string,string>
|
Gets the current environment
|
x.WithCommon(f)
Signature: (f:(Options -> Options)) -> PublishOptions
Modifiers: inline
|
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 member | Description |
PublishOptions.Create()
Signature: unit -> PublishOptions
|
Parameter default values.
|
PublishOptions.Default
Signature: PublishOptions
Attributes:
[<Obsolete("Use PublishOptions.Create instead")>]
|
OBSOLETE
Use PublishOptions.Create instead
|