If I launch the RAD Studio command prompt and run
msbuild /t:Rebuild
in a project directory, msbuild will show the full command line to invoke dcc32, including all path settings.
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)?
The RAD Studio command prompt only sets the .Net environment for MSBuild. So there is something else working behind the scenes?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With