Skip to content

Instantly share code, notes, and snippets.

@ridomin
Created May 7, 2013 14:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ridomin/5533116 to your computer and use it in GitHub Desktop.
Save ridomin/5533116 to your computer and use it in GitHub Desktop.
Clean Binary Files from source Tree
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="CleanAll">
<Target Name="CleanAll">
<CreateItem Include=".\**\debug\**\*;.\**\release\**\*;.\**\sql\**\*;.\TestResults\**\*;.\**\*.*scc;.\**\*.user">
<Output ItemName="DbgFiles" TaskParameter="Include"/>
</CreateItem>
<Message Text="Deleting Debug Files" Importance="high" />
<Delete Files="%(DbgFiles.Identity)" ContinueOnError="true" TreatErrorsAsWarnings="true">
<Output ItemName="DeletedFiles1" TaskParameter="DeletedFiles"/>
</Delete>
<Message Text="%(DeletedFiles1.Identity)" />
</Target>
</Project>
@ridomin
Copy link
Author

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