Jun 1, 2012 at 10:14 AM
Edited Jun 1, 2012 at 10:15 AM
I am using FindUnder to search for bin + obj folders to delete them.
<MSBuild.ExtensionPack.FileSystem.FindUnder TaskAction="FindDirectories" Path="..\" SearchPattern="bin">
<Output ItemName="AllBinDirectories" TaskParameter="FoundItems"/>
<RemoveDir Directories="@(AllBinDirectories)" />
My directory structure:
I am running the msbuild Project in the Test\build folder an like to delete bin folders only in the Project folders.
Is there a possibility to exclude the build folder? If there is a bin folder it should not be deleted.