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
BuildOptions
dotnet build command options
Record Fields
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) |
Framework
Signature: string option
|
Target framework to compile for (--framework) |
MSBuildParams
Signature: CliArguments
|
Other msbuild specific parameters |
Native
Signature: bool
|
Native flag (--native) |
NoRestore
Signature: bool
|
Doesn't execute an implicit restore during build. (--no-restore) |
OutputPath
Signature: string option
|
Output path (--output) |
Runtime
Signature: string option
|
Target runtime to publish for (--runtime) |
Instance members
Instance member | Description |
x.Environment
Signature: Map<string,string>
|
Gets the current environment |
x.WithCommon(f)
Signature: (f:(Options -> Options)) -> BuildOptions
|
Changes the "Common" properties according to the given function |
x.WithEnvironment(map)
Signature: map:Map<string,string> -> BuildOptions
|
Sets the current environment variables. |
x.WithRedirectOutput(shouldRedirect)
Signature: shouldRedirect:bool -> BuildOptions
|
Sets a value indicating whether the output for the given process is redirected. |
Static members
Static member | Description |
BuildOptions.Create()
Signature: unit -> BuildOptions
|
Parameter default values. |
BuildOptions.Default
Signature: BuildOptions
Attributes: [<Obsolete("Use BuildOptions.Create instead")>] |
OBSOLETEUse BuildOptions.Create instead |