I am trying to create some Delphi XE projects using msbuild. Although most of them work without problems, some projects that have many (and long) search paths cannot build with this error message:
MSB6003: The specified task executable could not be run. The filename or extension is too long
I found the reason for this: I add different search paths through / p: DCC_UnitSearchPath = some of them are not in the dproj file. This makes the command very long, and msbuild fails.
So what I want to do here is simply use the element search paths that I set through DCC_UnitSearchPath, but exclude / ignore the search paths from the dproj file.
Is there any way to achieve this?
Thanks,
Greg
delphi msbuild
Greg
source share