- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In a VF project I know there are Build Events in properties. What I would like to do is delete some files in a directory if the project is Cleaned. There does not seem to be an option for that. There is also General>Extensions to Delete on Clean but that only deletes from the default folder. I would like to delete from a different folder as well.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I get that but that is when you Build the Solution.
What I am looking for is an event when you Clean the solution.
How do I trigger an action when I click on Build>Clean Solution or Clean Project?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Open a oneAPI CMD prompt
cd to your solution folder
devenv YourSolutionNameHere.sln /clean
del YourExtraFilesHere.xxx
Once you have that working to your satisfaction, enter those commands into a batch file, and place a shortcut (or the batch file) on your desktop (or task bar). Then use that.
Note, with additional effort, you can add an external tool to the MS VS tool bar to run that batch file. But I will leave that for you as an exercise.
Jim Dempsey

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page