从 PrebuildEvent 运行插件
我正在编写一个 VS 2008 加载项以将安装项目版本与启动项目程序集版本同步。效果很好。 但我想知道是否可以从我的安装项目的预构建事件中调用加载项。 它在命令行窗口中工作正常,但我没有找到任何语法使其在预构建事件中工作。有人有主意吗? 谢谢
I'm writing an VS 2008 add-in to synchronize Setup project Version with startup project assembly version. It works fine.
But I was wondering if it was possible to call add-in from the Pre-build Event of my setup project.
It works fine by command line window, but I didn't find any syntax to make it work in Pre-build Event. Is Someone has an idea ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需键入 DOS 命令行即可在预构建事件中调用实用程序。 msbuild 支持许多宏来帮助您访问 dll、设置等。
如果它真的涉及到,您可能想要构建自己的 TaskItem - 在那里您将完全控制情况
Just type the DOS command line to call your utility in the Pre -build event. There is a number of macros supported by msbuild to help you access the dll, settings, etc.
If it gets really involved, you might want to build your own TaskItem - there you will have full control over the situation