[Mono-list] RemoveDir - XBuild vs MSBuild

Mike Christensen mike at kitchenpc.com
Wed Aug 3 22:09:26 EDT 2011


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 <joncham at gmail.com> 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 <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
>
>


More information about the Mono-list mailing list