C++ - Custom build events
-
28-09-2020 - |
Domanda
Is there any way to force Clean
action as a Post / Pre build event for single project in Visual Studio?
Thank you.
Soluzione
Yes,
- right-click on your project in Solution Explorer and click Properties
- go to Build events, then Pre-Build Events
put
del /F /Q $(TargetDir)*.*
in command line section.
Altri suggerimenti
This pre-build event works too :
devenv ${ProjectFileName} /Clean
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow