I'll get this filed right away, thanks! I found another bug which I'll also log:
This works on MSBuild: <RemoveDir Directories="$(BuildDir)" Condition=" Exists( $(BuildDir) ) " /> But causes a parsing error on xbuild. It works if you put in the value rather than the property. Thanks! Mike On Wed, Aug 3, 2011 at 7:01 PM, Jonathan Chambers <[email protected]> wrote: > 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 <[email protected]> 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 - [email protected] >> http://lists.ximian.com/mailman/listinfo/mono-list > > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
