Configure MSBuild to call XE2 dcc32.exe

1.3k views Asked by At

I have both Delphi 2010 and XE2 installed on my machine (Windows 7, 64bits). I use FinalBuilder 5.5 to build my Delphi projects, which calls DCC32.exe to do a full build.

Now that I upgraded my project from Delphi 2010 to XE2, I'm facing this issue: MSBuild keeps calling Delphi 2010 dcc32.exe (ie. C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\Bin\dcc32.exe) instead of XE2's dcc32.exe

I went & updated path in environment as well as bds path, but it didn't help.

How can I fix this?

2

There are 2 answers

5
David Heffernan On BEST ANSWER

You need to set all the appropriate environment variables in your build environment. The way to do this is to execute the rsvars.bat script in the Delphi bin directory.

My other tip is to remove all Delphi entries from your system path. This forces you to be explicit about setting the appropriate environment variables for the correct version.

0
Albert On

Go To "Windows Environment Variables" setting, find the variable "Path".

Please check and make sure the path to your "....\Rad Studio\9.0\bin" (Delphi XE2 version) is located before any folder that contain dcc32.exe (Older delphi version). This usually happens when you install newer Delphi version into machine that already installed with older delphi version.