如何在VS代码中实现pre / post构建事件? [英] How to implement pre/post build event in VS code?

查看:86
本文介绍了如何在VS代码中实现pre / post构建事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个如下命令

apidoc -ifilepath-ofilepath/ doc /

但我想在构建应用程序时自动执行。



我的尝试:



{

label:echotest,

command:apidoc -ifilepath-ofilepath/ doc /,

args :[test],

type:shell

}



但它是不工作。

I have a command like below
apidoc -i "filepath" -o "filepath"/doc/
but i want to excecute automatically while building the application.

What I have tried:

{
"label": "echotest",
"command": "apidoc -i "filepath" -o "filepath"/doc/",
"args": ["test"],
"type": "shell"
}

but it's not working.

推荐答案

1.右键单击解决方案资源管理器中的项目,然后选择属性

2.单击Build events in左侧窗格

3.在您要运行的命令的预构建区域类型中
1.Right click on the project in the solution explorer and choose properties
2. Click on the Build events in the left pane
3. in the pre-build area type in the commands you want to run


这篇关于如何在VS代码中实现pre / post构建事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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