Namespaces

Types in Fake

Type TargetHelper

Namespace Fake

Methods

Properties

Public static methods

void ActivateFinalTarget(string name)

Activates the FinalTarget

void addExecutedTarget(string target, TimeSpan time)

void AllTargetsDependOn(string target)

Set a dependency for all registered targets

Tuple<TargetTemplate`1, TargetTemplate`1> checkIfDependencyCanBeAdded(string targetName, string dependentTargetName)

Checks wether the dependency can be add

FSharpFunc<FSharpList<string>, Unit> Dependencies(string targetName)

Adds the dependencies to the list of dependencies

void dependencyAtEnd(string targetName, string dependentTargetName)

Appends the dependency to the list of dependencies

void dependencyAtFront(string targetName, string dependentTargetName)

Adds the dependency to the front of the list of dependencies

string dependencyString<a>(TargetTemplate`1 target)

void Description(string text)

Sets the Description for the next target

void DoNothing()

Do nothing - fun () -> ()

void FinalTarget(string name, FSharpFunc<Unit, Unit> body)

FSharpList<string> getAllTargetsNames()

Returns a list with all targetNames

TargetTemplate`1 getTarget(string name)

Gets a target with the given name from the target dictionary

void listTargets()

void PrintDependencyGraph(bool verbose, string target)

Writes a dependency graph.
Parameters
bool verbose

Whether to print verbose output or not.

string target

The target for which the dependencies should be printed.

void run(string targetName)

Runs a target and its dependencies
Parameters
string targetName

The target to run.

void runFinalTargets()

Runs all activated final targets (in alphabetically order)

void Target(string name, FSharpFunc<Unit, Unit> body)

void targetError(string targetName, Exception exn)

void targetFromTemplate<a>(TargetTemplate`1 template, string name, a parameters)

void TargetsDependOn(string target, IEnumerable<string> targets)

Set a dependency for all given targets

FSharpFunc<string, FSharpFunc<a, Unit>> TargetTemplate<a>(FSharpFunc<a, Unit> body)

FSharpFunc<string, FSharpFunc<a, Unit>> TargetTemplateWithDependecies<a>(FSharpList<string> dependencies, FSharpFunc<a, Unit> body)

void WriteTaskTimeSummary<a>(a total)

Writes a build time report.
Parameters
a total

The total runtime.

Public properties

FSharpFunc<string, FSharpFunc<string, Unit>> dependency get;

Adds the dependency to the list of dependencies

HashSet<string> ExecutedTargets get;

The executed targets

List<Tuple<string, TimeSpan>> ExecutedTargetTimes get;

The executed target time

Dictionary<string, bool> FinalTargets get;

Final Targets - stores final target and if it is activated

bool isListMode get;

string LastDescription get; set;

bool PrintStackTraceOnError get; set;

Dictionary<string, TargetTemplate`1> TargetDict get;

TargetDictionary