path - 如何调试“错误ASPCONFIG:完全限定后路径太长。”?
问题描述
我有一个项目,其中包含一个作为构建过程的一部分运行的脚本。在此脚本中有一个 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 个字符。此外,我的构建服务器上的路径比我的本地机器上的路径短。现在,我不太关心解决错误,而是关心诊断问题到底是什么。错误消息可能与基于证据的问题无关。我什至无法辨别它所抱怨的路径甚至是导致错误的路径。有任何想法吗?
解决方案
推荐阅读
- powerbi - 了解 Averagex - 每个唯一客户的销售额
- javascript - GraphQL - 全局字段解析器
- html - Html CSS div 100% 到高度
- python - 为什么我的代码在 openpyxl 的只读模式下运行速度较慢?
- html - 选择输入时向上移动标签 - 联系表单 7 的 css 技巧
- javascript - React 中的 TypeError,如何修复它以便正确呈现输出?
- encoding - 天蓝色媒体服务编码
- google-cloud-functions - 与 UI 活动代码不匹配的 Cloud Function 运行代码
- python - 在 SELECT 语句中使用请求正文
- python - 数据透视表中的第二个最小值