我正在尝试使用msbuild构建一些Delphi XE项目.虽然大多数工作没有问题,但是一些具有大量(和长)搜索路径的项目无法使用此错误消息构建:
MSB6003: The specified task executable could not be run. The filename or extension is too long
Run Code Online (Sandbox Code Playgroud)
我找到了原因:我通过/ p添加不同的搜索路径:DCC_UnitSearchPath =其中一些不在dproj文件中.这使得命令很长并且msbuild失败.
所以我想在这里做的只是使用我通过DCC_UnitSearchPath设置的单元搜索路径,但排除/忽略dproj文件中的搜索路径.
有没有办法实现这个目标?
谢谢,
格雷格
将搜索路径的一部分移动到环境变量以访问Spring4D,DSharp和VirtualTreeView:
DSharp=C:\Users\Developer\Versioned\DSharp
Spring4D=C:\Users\Developer\Versioned\Spring4D
VirtualTreeView=C:\Users\Developer\Versioned\VirtualTreeView
Run Code Online (Sandbox Code Playgroud)
然后在您的配置中指定它们,如下所示:
$(DSharp)\Source\Aspects;$(DSharp)\Source\Bindings;$(DSharp)\Source\Collections;$(DSharp)\Source\ComponentModel;$(DSharp)\Source\Core;$(DSharp)\Source\Logging;$(DSharp)\Source\PresentationModel;$(DSharp)\Source\Validation;$(DSharp)\Source\Windows;$(Spring4D)\Source\Base;$(Spring4D)\Source\Base\Collections;$(Spring4D)\Source\Core\Container;$(Spring4D)\Source\Base\Reflection;$(Spring4D)\Source\Core\Services
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
605 次 |
| 最近记录: |