“ERROR MSB4040 There is no target in the project” when using msbuild+Delphi2009

前端 未结 2 616
有刺的猬
有刺的猬 2021-01-04 05:15

I\'m trying to automate the build of a project in Delphi 2009.

I\'m using msbuild with .net 3.5

I simply call:

Z:\\Server>C:\\WINDOWS\\Mic         


        
相关标签:
2条回答
  • 2021-01-04 06:08

    There is a batch file called rsvars.bat (search for it in the RAD Studio folder). Call that before calling MSBuild, and it will setup the necessary environment variables. Make sure the folders are correct in rsvars.bat if you have the compiler in a different location to the default.

    0 讨论(0)
  • 2021-01-04 06:11

    Have you set an environment variable named "BDS", equal to your RAD Studio folder?

    0 讨论(0)
提交回复
热议问题