[Mono-list] RemoveDir - XBuild vs MSBuild
Jonathan Chambers
joncham at gmail.com
Wed Aug 3 22:01:48 EDT 2011
Mike,
This seems to be a bug. Please file this, and as a workaround try adding a
Condition attribute with an Exists check:
http://msdn.microsoft.com/en-us/library/7szfhaft.aspx
Something like:
<RemoveDir Condition="Exists('Imp/bin')" Directories="Imp/bin" />
Thanks,
Jonathan
On Wed, Aug 3, 2011 at 9:13 PM, Mike Christensen <mike at kitchenpc.com> wrote:
> 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
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20110803/4be08d10/attachment.html
More information about the Mono-list
mailing list