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>