The following example removes the directories specified by the OutputDirectory and DebugDirectory properties. These paths are treated as relative to the project directory.
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2005">
<PropertyGroup>
<OutputDirectory>\Output\</OutputDirectory>
<DebugDirectory>\Debug\</DebugDirectory>
</PropertyGroup>
<Target Name="RemoveDirectories">
<RemoveDir
Directories="$(OutputDirectory);$(DebugDirectory)" />
</Target>
</Project>
|