This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Creates directories and, if necessary, any parent directories.
The following table describes the parameters of the
The set of directories to create.
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
In addition to the parameters listed above, this task inherits parameters from the TaskExtension class, which itself inherits from the Task class. For a list of these additional parameters and their descriptions, see TaskExtension Base Class.
The following code example uses the
MakeDir task to create the directory specified by the
<Project xmlns="https://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <OutputDirectory>\Output\</OutputDirectory> </PropertyGroup> <Target Name="CreateDirectories"> <MakeDir Directories="$(OutputDirectory)"/> </Target> </Project>