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

WithContext

Run functions which don't throw and return the context after all targets have been executed.

Functions and values

Function or valueDescription
run parallelJobs targetName args
Signature: parallelJobs:int -> targetName:string -> args:string list -> OptionalTargetContext

Runs a target and its dependencies and returns an OptionalTargetContext

runOrDefault(defaultTarget)
Signature: defaultTarget:string -> OptionalTargetContext

Runs the command given on the command line or the given target when no target is given & get context

runOrDefaultWithArguments(defaultTarget)
Signature: defaultTarget:string -> OptionalTargetContext

Runs the command given on the command line or the given target when no target is given & get context

runOrList()
Signature: unit -> OptionalTargetContext

Runs the target given by the target parameter or lists the available targets & get context