|
2 | 2 | title: "MakeDir Task | Microsoft Docs"
|
3 | 3 | ms.date: "11/04/2016"
|
4 | 4 | ms.topic: "reference"
|
5 |
| -f1_keywords: |
| 5 | +f1_keywords: |
6 | 6 | - "http://schemas.microsoft.com/developer/msbuild/2003#MakeDir"
|
7 |
| -dev_langs: |
| 7 | +dev_langs: |
8 | 8 | - "VB"
|
9 | 9 | - "CSharp"
|
10 | 10 | - "C++"
|
11 | 11 | - "jsharp"
|
12 |
| -helpviewer_keywords: |
| 12 | +helpviewer_keywords: |
13 | 13 | - "MakeDir task [MSBuild]"
|
14 | 14 | - "MSBuild, MakeDir task"
|
15 | 15 | ms.assetid: bc951577-1bfb-4100-b1f1-bc8278c45bf7
|
16 | 16 | author: mikejo5000
|
17 | 17 | ms.author: mikejo
|
18 | 18 | manager: jillfra
|
19 |
| -ms.workload: |
| 19 | +ms.workload: |
20 | 20 | - "multiple"
|
21 | 21 | ---
|
22 | 22 | # MakeDir task
|
23 |
| -Creates directories and, if necessary, any parent directories. |
24 |
| - |
25 |
| -## Parameters |
26 |
| - The following table describes the parameters of the `MakeDir` task. |
27 |
| - |
28 |
| -|Parameter|Description| |
29 |
| -|---------------|-----------------| |
30 |
| -|`Directories`|Required <xref:Microsoft.Build.Framework.ITaskItem>`[]` parameter.<br /><br /> The set of directories to create.| |
31 |
| -|`DirectoriesCreated`|Optional <xref:Microsoft.Build.Framework.ITaskItem>`[]` output parameter.<br /><br /> 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.| |
32 |
| - |
33 |
| -## Remarks |
34 |
| - In addition to the parameters listed above, this task inherits parameters from the <xref:Microsoft.Build.Tasks.TaskExtension> class, which itself inherits from the <xref:Microsoft.Build.Utilities.Task> class. For a list of these additional parameters and their descriptions, see [TaskExtension base class](../msbuild/taskextension-base-class.md). |
35 |
| - |
36 |
| -## Example |
37 |
| - The following code example uses the `MakeDir` task to create the directory specified by the `OutputDirectory` property. |
38 |
| - |
39 |
| -```xml |
40 |
| -<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
41 |
| - |
42 |
| - <PropertyGroup> |
43 |
| - <OutputDirectory>\Output\</OutputDirectory> |
44 |
| - </PropertyGroup> |
45 |
| - |
46 |
| - <Target Name="CreateDirectories"> |
47 |
| - <MakeDir |
48 |
| - Directories="$(OutputDirectory)"/> |
49 |
| - </Target> |
50 |
| - |
51 |
| -</Project> |
52 |
| -``` |
53 |
| - |
54 |
| -## See also |
55 |
| - [Tasks](../msbuild/msbuild-tasks.md) |
56 |
| - [Task reference](../msbuild/msbuild-task-reference.md) |
| 23 | +Creates directories and, if necessary, any parent directories. |
| 24 | + |
| 25 | +## Parameters |
| 26 | +The following table describes the parameters of the `MakeDir` task. |
| 27 | + |
| 28 | +|Parameter|Description| |
| 29 | +|---------------|-----------------| |
| 30 | +|`Directories`|Required <xref:Microsoft.Build.Framework.ITaskItem>`[]` parameter.<br /><br /> The set of directories to create.| |
| 31 | +|`DirectoriesCreated`|Optional <xref:Microsoft.Build.Framework.ITaskItem>`[]` output parameter.<br /><br /> 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.| |
| 32 | + |
| 33 | +## Remarks |
| 34 | +In addition to the parameters listed above, this task inherits parameters from the <xref:Microsoft.Build.Tasks.TaskExtension> class, which itself inherits from the <xref:Microsoft.Build.Utilities.Task> class. For a list of these additional parameters and their descriptions, see [TaskExtension base class](../msbuild/taskextension-base-class.md). |
| 35 | + |
| 36 | +## Example |
| 37 | +The following code example uses the `MakeDir` task to create the directory specified by the `OutputDirectory` property. |
| 38 | + |
| 39 | +```xml |
| 40 | +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 41 | + |
| 42 | + <PropertyGroup> |
| 43 | + <OutputDirectory>\Output\</OutputDirectory> |
| 44 | + </PropertyGroup> |
| 45 | + |
| 46 | + <Target Name="CreateDirectories"> |
| 47 | + <MakeDir |
| 48 | + Directories="$(OutputDirectory)"/> |
| 49 | + </Target> |
| 50 | + |
| 51 | +</Project> |
| 52 | +``` |
| 53 | + |
| 54 | +## See also |
| 55 | +[Tasks](../msbuild/msbuild-tasks.md) |
| 56 | +[Task reference](../msbuild/msbuild-task-reference.md) |
0 commit comments