【问题标题】:Visual-studio extension project build error in "Debug" mode“调试”模式下的 Visual-studio 扩展项目构建错误
【发布时间】:2019-06-24 18:19:00
【问题描述】:

我为 Visual-studio 创建了扩展。当我在“调试”模式下构建项目时,我收到消息 The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters 的错误。但在“发布”模式下,它正在成功构建。

在调试模式下,项目通过以下路径在文件夹中构建: “C:\Users\UserName\AppData\Local\Microsoft\VisualStudio\15.0_ed6a412fExp\Extensions\CompanyName\ProjectName\1.3 + 项目的所有子文件夹” 总共超过 260 个符号。 p>

我尝试了下一个选项来解决这个问题:

  1. 我在“本地组策略编辑器”对话框中为“Win32 长路径”设置了启用。
  2. 在项目的文件清单中我设置了下一个配置
<application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings xmlns:ws2="https://schemas.microsoft.com/SMI/2016/WindowsSettings">
        <ws2:longPathAware>true</ws2:longPathAware>
    </windowsSettings>
</application>

这些步骤对我没有帮助。我能解决当前的问题吗?

谢谢。

【问题讨论】:

标签: c# visual-studio-2017 visual-studio-extensions


【解决方案1】:
【解决方案2】:

你可以试试这个

  1. 以管理员身份运行 regedit.exe
  2. 找到 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
  3. 将数据值 [LongPathsEnabled] (DWORD) 更改为“1”
  4. 关闭注册表并重新启动 Windows

取自link

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-10
    • 2021-02-06
    • 1970-01-01
    • 2015-07-23
    • 2013-03-26
    • 1970-01-01
    • 2015-11-06
    • 2015-03-20
    相关资源
    最近更新 更多