I'm trying to port an MSBuild script to XBuild and running into the following issue: <RemoveDir Directories="Imp/bin" /> This crashes and stops building if Imp/bin does not exist. On MSBuild, it will just do nothing and ignore the command. Is this a bug? Is there any way I can say "delete the directory if it exists?" Thanks! Mike