Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MakeDir Task 

Creates directories and, if necessary, any parent directories.

The following table describes the parameters of the MakeDir task.

Parameter Description


Required ITaskItem[] parameter.

The set of directories to create.


Optional ITaskItem[] output parameter.

The directories that are created by this task. If some directories could not be created, this may not contain all of the items that were passed into the Directories parameter.

The following code example uses the MakeDir task to create the directory specified by the OutputDirectory property.

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">


    <Target Name="CreateDirectories">


Community Additions

© 2015 Microsoft