Run Visual Studio 2008 Macro on Pre Build Event(在预构建事件上运行 Visual Studio 2008 宏)
问题描述
我在 Visual Studio 中创建了一些 Visual Studio 宏,它们从宏资源管理器和/或键盘快捷键运行.我想在构建前/构建后事件上自动运行这些,但在项目属性中看不到这样做的选项.谁能告诉我这是否可行,如果可以,怎么做?
在你的宏中有 4 个构建事件可以挂钩:
OnBuildBegin-- 当从 IDE 触发任何构建操作时将触发.它只会触发一次获得完整的解决方案或多项目构建操作.
OnBuildDone -- 在构建操作完成时触发.对于完整的解决方案或多项目构建操作,此事件仅触发一次.
OnBuildProjConfigBegin -- 在项目构建时触发开始.此事件用于捕获解决方案或多项目构建操作中的每个项目构建事件.
OnBuildProjConfigDone -- 将触发当项目构建完成时.这事件用于捕获完成每个项目构建在解决方案或多项目中构建操作.
通用环境对象模型事件p>
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?
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
这篇关于在预构建事件上运行 Visual Studio 2008 宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在预构建事件上运行 Visual Studio 2008 宏
基础教程推荐
- rabbitmq 的 REST API 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- c# Math.Sqrt 实现 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- 如何激活MC67中的红灯 2022-01-01
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01