Skip to content

Delete unnecessary spaces #2372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 38 additions & 38 deletions docs/msbuild/makedir-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,55 @@
title: "MakeDir Task | Microsoft Docs"
ms.date: "11/04/2016"
ms.topic: "reference"
f1_keywords:
f1_keywords:
- "http://schemas.microsoft.com/developer/msbuild/2003#MakeDir"
dev_langs:
dev_langs:
- "VB"
- "CSharp"
- "C++"
- "jsharp"
helpviewer_keywords:
helpviewer_keywords:
- "MakeDir task [MSBuild]"
- "MSBuild, MakeDir task"
ms.assetid: bc951577-1bfb-4100-b1f1-bc8278c45bf7
author: mikejo5000
ms.author: mikejo
manager: jillfra
ms.workload:
ms.workload:
- "multiple"
---
# MakeDir task
Creates directories and, if necessary, any parent directories.
## Parameters
The following table describes the parameters of the `MakeDir` task.
|Parameter|Description|
|---------------|-----------------|
|`Directories`|Required <xref:Microsoft.Build.Framework.ITaskItem>`[]` parameter.<br /><br /> The set of directories to create.|
|`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.|
## Remarks
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).
## Example
The following code example uses the `MakeDir` task to create the directory specified by the `OutputDirectory` property.
```xml
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputDirectory>\Output\</OutputDirectory>
</PropertyGroup>
<Target Name="CreateDirectories">
<MakeDir
Directories="$(OutputDirectory)"/>
</Target>
</Project>
```
## See also
[Tasks](../msbuild/msbuild-tasks.md)
[Task reference](../msbuild/msbuild-task-reference.md)
Creates directories and, if necessary, any parent directories.

## Parameters
The following table describes the parameters of the `MakeDir` task.

|Parameter|Description|
|---------------|-----------------|
|`Directories`|Required <xref:Microsoft.Build.Framework.ITaskItem>`[]` parameter.<br /><br /> The set of directories to create.|
|`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.|

## Remarks
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).

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

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

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

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

</Project>
```

## See also
[Tasks](../msbuild/msbuild-tasks.md)
[Task reference](../msbuild/msbuild-task-reference.md)