Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
MSBuild Reference
 MakeDir Task
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework General Reference
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>

Concepts

Other Resources

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker