简体   繁体   中英

Compile Delphi 2010 Project with MSBuild

I am trying to compile a Delpho 2010 project using the msbuild tool. Unfortunately when firing the command

msbuild Delphi.dproj

it returns the error code MSB4040, which means that there is no target in the project.

So far a RAD Delphi 2010 environment is still installed on the machine. Does anybody know which files do I need to compile the project without the RAD environment installed?

Thanks in advance Dennis

Looks like you need following files to get Delphi 2010 compiling process run without RAD Studio installed:

The complete lib folder including the Indy10 folder (if you want to use Indy)

lib
lib\Indy10

And the following files from the bin folder

bin\Borland.Build.Tasks.Common.dll
bin\Borland.Build.Tasks.Delphi.dll
bin\Borland.Build.Tasks.Shared.dll
bin\Borland.Globalization.dll
bin\CodeGear.Common.Targets
bin\CodeGear.Delphi.Targets
bin\DCC32.EXE
bin\lnkdfm140.dll
bin\rlink32.dll

I hope this is the minimal set of needed files.

I had a similar problem and found out that you have to call msbuild from the project-folder instead of the installation folder of msbuild .

...where calling

C:\Windows\Microsoft.NET\Framework\v2.0.50727>msbuild D:\\...\TestProject.dprj

would throw some strange errors, calling

D:\\...\\TestProject>msbuild TestProject.dprj

would work fine for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM