title: How to create custom clean (post-clean) event in Visual Studio 2008?
body: <p>In our build process, for each project we use Post Build events to copy our executable files into a separate deployment directory.  That works just peachy, but the problem is that we run into problems with stale files after performing a Clean Solution/Clean Project.  I'd like to set up a "Clean" event that deletes the copied file and Visual Studio 2008 does not seem to provide an option in the project properties page.</p>
  
  <p>It has:</p>
  
  <pre><code>Build Events:
     Pre-Build Event
     Pre-Link Event
     Post-Build Event
  Custom Build Step
     General
  </code></pre>
  
  <p>What I'd like to find is some way to execute an arbitrary command line when the project is cleaned.</p>