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

VersionOptions

dotnet --version command options

Record Fields

Record FieldDescription
Common
Signature: Options

Common tool options

Instance members

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

Gets the current environment

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

Changes the "Common" properties according to the given function

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

Sets the current environment variables.

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

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

Static members

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

Parameter default values.