簡體   English   中英

使用msbuild構建時,從dproj中排除搜索路徑

[英]Exclude search paths from dproj when building with msbuild

我正在嘗試使用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文件中的搜索路徑。

有沒有辦法實現這個目標?

謝謝,

格雷格

將搜索路徑的一部分移動到環境變量以訪問Spring4DDSharpVirtualTreeView

DSharp=C:\Users\Developer\Versioned\DSharp
Spring4D=C:\Users\Developer\Versioned\Spring4D
VirtualTreeView=C:\Users\Developer\Versioned\VirtualTreeView

然后在您的配置中指定它們,如下所示:

$(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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM