var() task can be used to access a variable with the specified name in the enclosing build target scope. This task works the same way as accessing a variable via the dereferencing operator. However it cannot be used to access expression specific local variables (e.g.
foreach loop variables). In any other cases, it works the same way as dereferencing an expression.
The result of the
var() task can be used on the left hand side of an assignment expression.
The following parameters are used by the task:
|unnamed||Required name of the variable that is being accessed.|
The reference to the variable.