How to build using MSBuild and Delphi XE2 September 24, 2023 by Tarik As reported by the OP, the issue was an incorrect BDS path in the RSVARS.bat file.