运行Visual Studio 2008中宏在pre构建事件 [英] Run Visual Studio 2008 Macro on Pre Build Event

查看:150
本文介绍了运行Visual Studio 2008中宏在pre构建事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio中创建了一些Visual Studio的宏从宏资源管理器和/或键盘快捷方式运行。我想在pre /后自动运行这些构建事件,但看不出有任何选项,这样做在项目属性。谁能告诉我,如果这是可能的,如果是这样,怎么样? 谢谢 杰森

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 build events but see no option to do so in the project properties. Can anyone tell me if this is possible and, if so, how? Thank you Jason

推荐答案

在宏有4个版本的事件,你可以连接到:

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

  • OnBuildBegin - 将火时,任何构建操作从IDE解雇。它只是触发 一次,一个完整的解决方案或 多建操作。

  • 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 - 构建操作完成时将闪光。此事件只有一次完整的解决方案和多版本的操作。

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

OnBuildProjConfigBegin - 将火时,项目构建 开始。此事件用于捕获在一个解决方案,或者多建立操作的每个项目生成的事件。

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 - 必火 当项目构建完成。本 事件是用来捕捉 每个项目构建完成 一个解决方案或者多内 建立操作。

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.

共同环境对象模型活动

这篇关于运行Visual Studio 2008中宏在pre构建事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆