MSBuild如何找到Delphi搜索路径? [英] How does MSBuild find the Delphi search path?

查看:222
本文介绍了MSBuild如何找到Delphi搜索路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

If I launch the RAD Studio command prompt and run

msbuild /t:Rebuild

在项目目录中,msbuild将显示完整的命令行以调用dcc32,包括所有路径设置。

in a project directory, msbuild will show the full command line to invoke dcc32, including all path settings.

MSBuild根据IDE设置(存储在注册表中)和项目文件(其中包含诸如$( DCC_UnitSearchPath)?

Which kind of magic does MSBuild use to find the search paths, based on the IDE settings (stored in the registry) and the project file (which contains placeholders like $(DCC_UnitSearchPath)?

RAD Studio命令提示符仅为MSBuild设置.Net环境,幕后还有其他工作?

The RAD Studio command prompt only sets the .Net environment for MSBuild. So there is something else working behind the scenes?

推荐答案

如果您检查项目文件,您会注意到它包括CodeGear.Delphi.Targets,其中包括CodeGear.Common.Targets,其中还包括EnvOptions.proj EnvOptions.proj由IDE进行更新,以包含注册表中的路径。

If you examine the project file, you'll notice that it includes CodeGear.Delphi.Targets which includes CodeGear.Common.Targets which in turn includes EnvOptions.proj. EnvOptions.proj is updated by the IDE to contain the paths from the registry.

这篇关于MSBuild如何找到Delphi搜索路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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