如何使 Visual Studio 的构建变得非常冗长?
我需要掌握 Visual Studio 二进制文件在构建过程中使用的每个标志和每个开关。我尝试使用 vcbuild
获得详细输出,但我做不到。
我需要做什么才能看到 Visual Studio 为我执行的所有操作?无需在构建窗口中获取输出。任何地方都可以。
I need to get a hold of every flag, every switch used in the build process by the Visual Studio binaries. I tried to obtain a verbose output by using vcbuild
, but I wasn't able.
What do I have to do to see everything performed by Visual Studio for me? It's not necessary to obtain the output in the build window. Anywhere would be fine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
菜单工具→选项→项目和解决方案→构建和运行→MSBuild项目构建输出详细信息< /em>:诊断
Menu Tools → Options → Projects and Solutions → Build and Run → MSBuild project build output verbosity: Diagnostic
打开项目属性对话框,然后选择
配置属性 → C/C++ → 常规
将
抑制启动横幅
的设置更改为否
< /p>cl
命令行将显示在输出窗口中.Open the project properties dialog, then choose
Configuration Properties → C/C++ → General
Change the setting for
Suppress Startup Banner
toNo
The
cl
command line(s) will be shown in the output window.Visual Studio 2008:
转到菜单工具 → 选项,然后项目和解决方案 → 构建和运行部分。您有一个用于详细说明的组合框。
C++ 编译器选项(项目属性):
用于查看翻译单元的文件
由预处理器生成
编译器中包含的文件名
输出
Visual Studio 2008:
Go to menu Tools → Options then Project and Solutions → Build and Run section. You have a combo box for verbosity.
C++ compiler option (project properties):
File for seeing the translation unit
as generated by preprocessor
included file names at compiler
output
如果您正在运行 MSBuild,则可以设置 /v:diag 标志。
If you're running MSBuild, you can set the /v:diag flag.
在 Visual Studio 中,转到您的项目并右键单击它并选择属性。在链接器中有一个命令行选项。在那里您拥有所有选项,并且可以添加自定义选项。添加
/VERBOSE
,链接 Visual Studio 时将显示更多信息。In Visual Studio go to your project and right click on it and select properties. In Linker there is a command line option. There you have all the options and you can add your custom ones. Add
/VERBOSE
and when linking Visual Studio will show a lot more information.