TfsBuildVariablesAliases.

EvaluateTfsBuildVariable(ICakeContext, string, string) Method

Summary

Evaluate the value of TFS variable. If no variable is found with the given name it returns the default value.

Syntax

public static string EvaluateTfsBuildVariable(this ICakeContext context, string variableName, string defaultValue)

Examples

var value = EvaluateTfsBuildVariable("Tfs.Example.Variable", "defaultValue");

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
variableName string The name of the TFS variable
defaultValue string The default value of the variable

Return Value

Type Description
string Value of the variable.