- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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.
Ссылка скопирована
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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?
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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

- Подписка на RSS-канал
- Отметить тему как новую
- Отметить тему как прочитанную
- Выполнить отслеживание данной Тема для текущего пользователя
- Закладка
- Подписаться
- Страница в формате печати