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.
It has:
Build Events:
Pre-Build Event
Pre-Link Event
Post-Build Event
Custom Build Step
General
What I'd like to find is some way to execute an arbitrary command line when the project is cleaned.