NAnt SDK Documentation - v0.92

ExecTask.WorkingDirectory Property

The directory in which the command will be executed.

[Visual Basic]
<TaskAttribute(Required:=False, Name:="workingdir", ExpandProperties:=True, ProcessXml:=True)>
Public Property WorkingDirectory As DirectoryInfo
[C#]
[TaskAttribute(Required=False, Name="workingdir", ExpandProperties=True, ProcessXml=True)]
public System.IO.DirectoryInfo WorkingDirectory {get; set;}

Property Value

The directory in which the command will be executed. The default is the project's base directory.

Remarks

The working directory will be evaluated relative to the project's base directory if it is relative.

See Also

ExecTask Class | NAnt.Core.Tasks Namespace