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

前端 未结 2 630
有刺的猬
有刺的猬 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.

提交回复
热议问题