I'm trying to build some Delphi XE projects using msbuild. While most work without a problem, some projects which have a lot of (and long) search paths, fail to 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 differing search paths via /p:DCC_UnitSearchPath= some of which are not in the dproj file. This makes the command very long and msbuild fails.
So basiacally what I want to do here is just use the unit search paths I am setting via DCC_UnitSearchPath but exclude / ignore the search paths from the dproj file.
Is there a way to achieve this?
Thanks,
Greg