TfsBuildVariablesAliases.

EvaluateTfsBuildVariable(ICakeContext, string) Method

Summary

Evaluate the value of TFS variable. Throws ArgumentException if no variable is found with the given name.

Syntax

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

Examples

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

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
string Value of the variable.