Note: This API documentation is for FAKE version 4. The migration API documentation can be found here. The API documentation for the new fake 5 modules can be found here

AdditionalSyntax

Provides functions and operators to deal with FAKE targets and target dependencies.

Functions and values

Function or valueDescription
( ? ) f s
Signature: f:('?10450 -> '?10451) -> s:'?10450 -> '?10451
Type parameters: '?10450, '?10451

Allows to use Tokens instead of strings

( ?<- ) f str action
Signature: f:('?10453 -> '?10454 -> '?10455) -> str:'?10453 -> action:'?10454 -> '?10455
Type parameters: '?10453, '?10454, '?10455

Allows to use Tokens instead of strings for TargetNames

( ?=> ) x y
Signature: x:string -> y:string -> string

Defines a soft dependency. x must run before y, if it is present, but y does not require x to be run.

( <=? ) y x
Signature: y:string -> x:string -> string

Defines a soft dependency. x must run before y, if it is present, but y does not require x to be run.

( <=> ) x y
Signature: x:string -> y:string -> string

Defines that x and y are not dependent on each other but y is dependent on all dependencies of x.

( =?> ) x (y, condition)
Signature: x:string -> (y:string * condition:bool) -> string

Defines a conditional dependency - y is dependent on x if the condition is true

( ==> ) x y
Signature: x:string -> y:string -> string

Defines a dependency - y is dependent on x

addDependenciesOnSameLevel(...)
Signature: target:string -> dependency:string -> unit

Specifies that two targets have the same dependencies

addSoftDependenciesOnSameLevel(...)
Signature: target:string -> dependency:string -> unit

Specifies that two targets have the same dependencies

And x y
Signature: x:'?10460 -> y:'?10460 list -> '?10460 list
Type parameters: '?10460

Appends the dependency to the list of dependencies

Dependency(x)
Signature: x:'?10458 -> '?10458 list
Type parameters: '?10458

Converts a dependency into a list

For x y
Signature: x:string -> y:string list -> unit

Allows to use For? syntax for Dependencies

Run(targetName)
Signature: targetName:string -> unit

Runs a Target and its dependencies

RunParameterTargetOrDefault(...)
Signature: parameterName:string -> defaultTarget:string -> unit

Runs the target given by the build script parameter or the given default target

RunTarget()
Signature: unit -> unit

Runs the target given by the target parameter

RunTargetOrDefault(defaultTarget)
Signature: defaultTarget:string -> unit

Runs the target given by the target parameter or the given default target

RunTargetOrListTargets()
Signature: unit -> unit

Runs the target given by the target parameter or lists the available targets

targetsAreOnSameLevel x y
Signature: x:string -> y:string -> unit

Specifies that two targets are on the same level of execution