如何在 Visual Studio 6 中设置自定义构建步骤?
不幸的是,由于各种原因,我似乎不得不使用 Visual Studio 6,而不是更新版本的 VS。
我已经很久没有使用它了。 我正在浏览它的菜单,没有看到任何明显的方法来设置任何自定义构建步骤(预构建、后构建、预链接......任何东西实际上都会有所帮助)。
谁能指导我如何设置这样的步骤?
Unfortunately it looks like for various reasons I'm going to have to use Visual Studio 6 instead of a newer version of VS.
It's been a long time since I've used it. I'm looking through its menus and don't see any obvious way to set up any custom build steps (pre-build, post-build, pre-link... anything would help actually).
Can anyone give me instructions on how to set up steps like this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
打开您的项目,然后打开“项目设置”屏幕(“项目”→“设置”或 ALT-F7)。 或者,右键单击文件视图中的文件并选择设置。
从“项目设置”屏幕,转到“常规”选项卡并选中“始终使用自定义构建步骤”。 这意味着您刚刚选择的文件将是自定义构建步骤的输入文件。 然后,您可以从“自定义构建”选项卡发出要运行的命令并指定将生成哪些文件。
对于预链接、构建后等,请从“项目设置”屏幕中选择可执行文件(或库)。 然后使用小箭头按钮滚动到最右侧的选项卡。 从那里您将找到预链接和构建后步骤。
这非常简单,真的,我相信这足以让您入门。
Open your project, then open the Project Settings screen (Project → Settings or ALT-F7). Alternatively, right click on a file in the FileView and select Settings.
From the Project Settings screen, go to the General tab and check "Always use custom build step". This means that the file you just chose will be an input file for a custom build step. From the "Custom Build" tab you can then give the commands to run and specify what files will be generated.
For pre-link, post-build and such, select an executable (or library) from the Project Settings screen. Then use the little arrow button to scroll to the rightmost tabs. From there you'll find the Pre-link and Post-build steps.
It's quite simple, really, I'm sure this is enough to get you started.