我有一个项目,其中包含一个作为构建过程的一部分运行的脚本。在此脚本中有一个 AspNetCompiler 任务,当我在本地运行脚本时不会导致任何问题。任务看起来像这样:
<AspNetCompiler
VirtualPath="/CompanyName.SolutionName.ComponentName"
PhysicalPath="$(MSBuildProjectDirectory)\SolutionName.ComponentName"
TargetPath="$(TargetFolder)\Setup\SolutionName.ComponentName"
Updateable="true"
Force="true"
Debug="false"
Clean="true"
ToolPath="C:\Windows\Microsoft.NET\Framework\v4.0.30319\" >
</AspNetCompiler>
但是,当我在构建服务器上运行它时,出现此错误:
ASPNETCOMPILER : error ASPCONFIG: The path is too long after being fully qualified. Make sure the full path is less than 260 characters and the directory name is less than 248 characters. [(PhysicalPath)]
有问题的路径绝对少于 260 个字符。此外,我的构建服务器上的路径比我的本地机器上的路径短。现在,我不太关心解决错误,而是关心诊断问题到底是什么。错误消息可能与基于证据的问题无关。我什至无法辨别它所抱怨的路径甚至是导致错误的路径。有任何想法吗?