Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Clean Binary Files from source Tree
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="" DefaultTargets="CleanAll">
<Target Name="CleanAll">
<CreateItem Include=".\**\debug\**\*;.\**\release\**\*;.\**\sql\**\*;.\TestResults\**\*;.\**\*.*scc;.\**\*.user">
<Output ItemName="DbgFiles" TaskParameter="Include"/>
<Message Text="Deleting Debug Files" Importance="high" />
<Delete Files="%(DbgFiles.Identity)" ContinueOnError="true" TreatErrorsAsWarnings="true">
<Output ItemName="DeletedFiles1" TaskParameter="DeletedFiles"/>
<Message Text="%(DeletedFiles1.Identity)" />

ridomin commented May 7, 2013

Simple MSBUILD script to clean binary files from bin\debug and obj folders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment