有没有办法关闭MSBuild调用的DCC32中的安静模式? [英] Is there a way to turn off the quiet mode in DCC32 called by MSBuild?
问题描述
默认情况下,使用-Q开关调用DCC32编译器,该开关将打开安静模式.有没有办法在.dproj文件中或通过命令行参数禁用此开关?
By default, the DCC32 compiler is called with the -Q switch that turns the quiet mode on. Is there a way to disable this switch in the .dproj file or by a command line parameter?
我在我的Delphi项目中使用msbuild进行构建自动化.不幸的是,当它由MSBuild执行时,找不到任何对DCC32参数的引用.通常,我首先在Delphi IDE中更改编译器参数,然后检查项目文件中所做的更改.但是,这种方法不适用于安静模式,因为我在IDE中找不到此选项.
I use msbuild for the build automation in my Delphi project. Unfortunately I can't find any reference to the DCC32 parameters when it is executed by MSBuild. Usually I first change a compiler parameter in the Delphi IDE and then check what was changed in the project file. However, this approach won't work for the quiet mode as I can't find this option in the IDE.
推荐答案
您可以编辑$(BDS)\bin\CodeGear.Delphi.Targets
(XML)文件,并将DCC
节点的Quiet
属性的值更改为false
:
You can edit your $(BDS)\bin\CodeGear.Delphi.Targets
(XML) file and change the value of the Quiet
attribute of the DCC
node to false
:
<DCC DelphiCompile="$(_ProjectFiles)"
...
Quiet="false"
...
/>
更新:DCC MSBuild任务配置为禁止显示详细的dcc32输出.有关如何更改它,请参见此答案.
Update: The DCC MSBuild task is configured to suppress the verbose dcc32 output. See this answer on how to change it.
这篇关于有没有办法关闭MSBuild调用的DCC32中的安静模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!