i am trying to compile a delphi 2010 project with msbuild, without using the RAD Studio Command Prompt. Therefore i created a batch file, setting the environment variables(the开发者_如何学运维 ones from rsvars.bat and the user overrides) and then using this command:
msbuild projectNameHere.dproj
giving me the following error:
C:\Program Files (x86)\Embarcadero\RAD Studio\7.0\Bin\CodeGear.Delphi.Targets(136,3): error MSB6003: The specified task executable could not be run. The filename or extension is too long.
any ideas?
thanks in advance
IIUYC you copied the contents of rsvars.bat into your batch. Instead just call
rsvars.bat in your batch before the msbuild line. This works for me.
It is hard to say from your description, but its possible that your absolute path is greater than 260 characters. Its also possible that your temp folder is full and the build system cannot create the temp files it needs. Check your absolute path length and clean your temp folder.
精彩评论