Windows 10 1903 - LongPathAware 不工作?

Windows 10 1903 - LongPathAware not working?

下面是我使用的清单。它适用于 OS 版本信息,但在我的系统上它不支持长路径。我可以采用我的长路径 "x:\whatever\whatever\etc" 失败,路径未在 CreateFile() (Unicode 构建)中找到,只需添加 \?\ 即可正常工作。 DWORD 注册表值 LongPathsEnabledComputer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem 设置为 1 并已重新启动系统。

我做错了什么。我假设它在清单中?

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
  <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> 
    <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> 
      <application> 
        <!--The ID below indicates application support for Windows Vista --> 
          <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> 
        <!--The ID below indicates application support for Windows 7 --> 
          <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> 
        <!--The ID below indicates application support for Windows 8 --> 
          <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
    <!-- Windows 8.1 -->
          <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
    <!-- Windows 10 -->
          <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
      </application> 
    </compatibility>
    <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>  
  </assembly>

尝试以下方法XML:

  <application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
      <ws2:longPathAware>true</ws2:longPathAware>
    </windowsSettings>
  </application>

嗯,问题出在清单内容上。有效的清单是:

<application xmlns="urn:schemas-microsoft-com:asm.v3">
      <windowsSettings>
        <longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
      </windowsSettings>
    </application>  

我刚刚替换了原始清单中的该部分,以便可以将其合并到同一个文件中。不要问我为什么那里有这么多错误信息,即使在 MS 站点也是如此。说到那个网站,我发现很多有用的链接现在都死了,为什么 MS 会把旧的 KB 东西留在那里?