Namespaces

Types in Fake

Type TargetHelper

Namespace Fake

Methods

Properties

Public static methods

void ActivateFinalTarget(string name)

Activates the FinalTarget

void addDependenciesOnSameLevel(string target, string dependency)

void addExecutedTarget(string target, TimeSpan time)

void AllTargetsDependOn(string target)

Set a dependency for all registered targets

FSharpList<a> And<a>(a x, FSharpList<a> y)

Appends the dependency to the list of dependencies

Tuple<TargetTemplate`1, TargetTemplate`1> checkIfDependencyCanBeAdd(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

FSharpList<a> Dependency<a>(a x)

Converts a dependency into a list

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 DoNothing()

Do nothing - fun () -> ()

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

void For(string x, FSharpList<string> y)

Allows to use For? syntax for Dependencies

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 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 RunParameterTargetOrDefault(string parameterName, string defaultTarget)

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

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 targetsAreOnSameLevel(string x, string y)

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 PrintStackTraceOnError get; set;

FSharpFunc<string, Unit> Run get;

Runs a Target and its dependencies

Dictionary<string, TargetTemplate`1> TargetDict get;

TargetDictionary