Run Visual Studio 2008 Macro on Pre Build Event

后端 未结 2 1850
南旧
南旧 2020-12-19 16:46

I have some Visual Studio Macros created in visual studio which run from the macro explorer and/or keyboard shortcuts. I would like to run these automatically on pre/post bu

相关标签:
2条回答
  • 2020-12-19 16:57

    I don't belive it's possible. That said, you can quickly create custom MSBuild tasks to do the job of the macros.

    0 讨论(0)
  • 2020-12-19 17:12

    In your macro there are 4 build events you can hook into:

    • OnBuildBegin -- Will fire when any build operation is fired from the IDE. It fires only once for a full solution or multiproject build operation.

    • OnBuildDone -- Will fire when a build operation completes. This event fires only once for a full solution or multiproject build operation.

    • OnBuildProjConfigBegin -- Will fire when a project build begins. This event is used to catch each project build event within a solution or multiproject build operation.

    • OnBuildProjConfigDone -- Will fire when a project build completes. This event is used to catch the completion of each project build within a solution or multiproject build operation.

    Common Environment Object Model Events

    0 讨论(0)
提交回复
热议问题