Pergunta

Is there any way to force Clean action as a Post / Pre build event for single project in Visual Studio?

Thank you.

Foi útil?

Solução

Yes,

  1. right-click on your project in Solution Explorer and click Properties
  2. go to Build events, then Pre-Build Events
  3. put

    del /F /Q $(TargetDir)*.*

    in command line section.

Outras dicas

This pre-build event works too :

devenv ${ProjectFileName} /Clean
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top