ChangeDirectory Class

Summary

Changes the current working directory.
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Tasks
Base Types
  • Task
graph BT Type-->Base0["Task"] Type["ChangeDirectory"] class Type type-node

Syntax

[TaskName("cd")]
public class ChangeDirectory : Task

Examples

Changes the current working directory to the "subdir" directory, relative to the project base directory.

<cd dir="subdir" />

Attributes

Type Description
TaskName

Properties

Name Value Summary
Directory DirectoryInfo
The path to which the current working directory should be set.

Methods

Name Value Summary
ExecuteTask() void
Changes the current directory.