加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

delphi – 使用msbuild构建时从dproj中排除搜索路径

发布时间:2020-12-15 04:18:26 所属栏目:大数据 来源:网络整理
导读:我正在尝试使用msbuild构建一些Delphi XE项目. 虽然大多数工作没有问题,但是一些具有大量(和长)搜索路径的项目无法使用此错误消息构建: MSB6003: The specified task executable could not be run. The filename or extension is too long 我找到了原因:我
我正在尝试使用msbuild构建一些Delphi XE项目.
虽然大多数工作没有问题,但是一些具有大量(和长)搜索路径的项目无法使用此错误消息构建:
MSB6003: The specified task executable could not be run. The filename or extension is too long

我找到了原因:我通过/ p添加不同的搜索路径:DCC_UnitSearchPath =其中一些不在dproj文件中.这使得命令很长并且msbuild失败.

所以我想在这里做的只是使用我通过DCC_UnitSearchPath设置的单元搜索路径,但排除/忽略dproj文件中的搜索路径.

有没有办法实现这个目标?

谢谢,

格雷格

解决方法

将搜索路径的一部分移动到环境变量以访问 Spring4D,DSharp和 VirtualTreeView:
DSharp=C:UsersDeveloperVersionedDSharp
Spring4D=C:UsersDeveloperVersionedSpring4D
VirtualTreeView=C:UsersDeveloperVersionedVirtualTreeView

然后在您的配置中指定它们如下:

$(DSharp)SourceAspects;$(DSharp)SourceBindings;$(DSharp)SourceCollections;$(DSharp)SourceComponentModel;$(DSharp)SourceCore;$(DSharp)SourceLogging;$(DSharp)SourcePresentationModel;$(DSharp)SourceValidation;$(DSharp)SourceWindows;$(Spring4D)SourceBase;$(Spring4D)SourceBaseCollections;$(Spring4D)SourceCoreContainer;$(Spring4D)SourceBaseReflection;$(Spring4D)SourceCoreServices

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读