在预构建步骤中调用VS菜单项 [英] Invoke a VS Menu Item as part of Pre-Build step

查看:72
本文介绍了在预构建步骤中调用VS菜单项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为预构建"步骤的一部分,是否有任何方法可以调用(运行)VS菜单项?更具体一点,我已经加载了VS扩展,并希望将其作为构建的一部分运行,而不是在每次构建之前都必须手动调用它.

Is there any way to invoke (run) a VS menu item as part of the Pre-Build step?  To be a little more specific, I've loaded a VS extension and would like to have it run as part of the build rather than having to invoke it manually before each build.

推荐答案

Wcalcote,

Hi Wcalcote,

据我所知,不可能通过预构建"步骤执行此操作.根据要求,我建议您可以编写一个自定义任务并在构建目标之前在其上运行该任务.有关更多信息,请参阅:

As far as I know, it is impossible to do that via Pre-Build step, As requirement, I would suggest that you could write a custom Task and run the task on before build target. For more information, please refer to:

http://stackoverflow.com /questions/8067654/msbuild-确保目标在其他任何构建步骤之前运行

最诚挚的问候,

吴可乐


这篇关于在预构建步骤中调用VS菜单项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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