How to create custom clean (post-clean) event in Visual Studio 2008?

后端 未结 6 382
攒了一身酷
攒了一身酷 2020-12-28 16:34

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 i

6条回答
  •  时光说笑
    2020-12-28 16:54

    There is no documented way to insert custom cleanup steps, unfortunately. You can clean up your output in your pre-build event but that will still leave artifacts around just after a clean.

    From MSDN, here is the order of invocation for the various build steps:

    1. Pre-Build event
    2. Custom build steps on individual files
    3. Proxy generator
    4. MIDL
    5. Resource compiler
    6. The C/C++ compiler
    7. Pre-Link event
    8. Linker or Librarian (as appropriate)
    9. BSCMake
    10. Custom build step on the project
    11. Deployment tool.
    12. Post-Build event

      MSDN: Understanding custom build steps

提交回复
热议问题