Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
0 out of 1 rated this helpful - Rate this topic

MakeDir Task 

Creates directories and, if necessary, any parent directories.

The following table describes the parameters of the MakeDir task.

Parameter Description

Directories

Required ITaskItem[] parameter.

The set of directories to create.

DirectoriesCreated

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">

    <PropertyGroup>
        <OutputDirectory>\Output\</OutputDirectory>
    </PropertyGroup>

    <Target Name="CreateDirectories">
        <MakeDir
            Directories="$(OutputDirectory)"/>
    </Target>

</Project>
Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.