Skip to content

Instantly share code, notes, and snippets.

@chrisvire
Created June 18, 2014 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisvire/de84f9398ee3ac327c06 to your computer and use it in GitHub Desktop.
Save chrisvire/de84f9398ee3ac327c06 to your computer and use it in GitHub Desktop.
Clean Target to work around mono-3 bug in globbing
<ItemGroup>
<ExistingObjectFiles
Include="$(RootDir)/output/$(Configuration)/**/*"
/>
</ItemGroup>
<Target Name="Clean">
<Exec
Command="find . -name obj -type d -print0 | xargs -0 rm -rf"
WorkingDirectory="$(RootDir)" />
<Delete Files="@(ExistingObjectFiles)" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment