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?
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.