生成错误:指定的路径,文件名或两者都太长

问题描述

一个新的Jenkins构建正在尝试在Bitbucket中构建一个功能分支,该分支是主分支的附件,并且超出了文件路径名阈值,如以下错误所示:

    error message:
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\VisualStudio\v15.0\Web\Microsoft.Web.Publishing.targets(3007,5): error : copying file 
App_Config\Include\Serialization\Master\xxxxxxx.xxxxxxx.Serialization.Master.Content.GlobalConfiguration.Release.config.disabled to 
obj\Release\Package\PackageTmp\App_Config\Include\Serialization\Master\xxxxxxx.xxxxxxx.Serialization.Master.Content.GlobalConfiguration.Release.config.disabled Failed. The specified path,file name,or both are too long. The fully qualified file name must be less than 260 characters,and the directory name must be less than 248 characters.

似乎有些人遇到类似的事情,但是我发现没有解决方案真的有帮助。 我们的软件版本

  • Visual Studio生成工具2017 15.8.28010.2048
  • MSBuild 14.0版

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)