EnvironmentVariable

[This is preliminary documentation and subject to change.]

Represents an environment variable.

Parameters

Attribute Type Description Required
name string The name of the environment variable. True
file file The value for a file-based environment variable. NAnt will convert it to an absolute filename. False
if bool Indicates if the environment variable should be passed to the external program. If true then the environment variable will be passed; otherwise, skipped. The default is true. False
path PathList The value for a PATH like environment variable. You can use
;
as path separator and NAnt will convert it to the platform's local conventions.
False
unless bool Indicates if the environment variable should not be passed to the external program. If false then the environment variable will be passed; otherwise, skipped. The default is false. False
value string The literal value for the environment variable. False

Requirements

Assembly: NAnt.Core (0.85.1698.0)