如何为Delphi项目执行MSBUILD的“试运行"? [英] How can I perform a 'dry run' of MSBUILD for a Delphi project?

查看:98
本文介绍了如何为Delphi项目执行MSBUILD的“试运行"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我启动RAD Studio命令提示符并运行

if I launch the RAD Studio command prompt and run

msbuild/t:重建

msbuild /t:Rebuild

在项目目录中,msbuild将显示完整的命令行来调用dcc32,包括所有路径设置. (请参阅是否有一个Delphi库可以返回项目的所有有效源路径?)

in the project directory, msbuild will show the full command line to invoke dcc32, including all path settings. (see Is there a Delphi library which returns all effective source paths for a project?)

如果我只想在文件中捕获此msbuild控制台输出,而不需要编译器执行,是否有一种方法可以只运行msbuild来显示它将执行的操作?我已经检查了msbuild选项,但似乎没有空转"开关.

If I only want to capture this msbuild console output in a file, and do not need the compiler execution, is there a way to run msbuild only to display which actions it will perform? I have checked the msbuild options but there seems to be no 'dry run' switch.

一种可能的(但业余的)解决方案是修改PATH,以使msbuild无法找到编译器.

One possible (but amateurish) solution could be to modify the PATH so that msbuild will not find the compiler.

推荐答案

您可以使用自己的应用程序替换dcc32.exe,该应用程序将记录命令行并退出.

You can replace dcc32.exe with your own application which will log the command line and exit.

这篇关于如何为Delphi项目执行MSBUILD的“试运行"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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