title: How to enable "Long Path Aware" behavior via manifest in a C++ executable?
body: <p>I'm trying to follow <a href="https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file" rel="noreferrer">Microsoft documentation</a> to lift <code>MAX_PATH</code> file path restriction in APIs under Windows 10. It says:</p>
  
  <blockquote>
    <p>You can also enable the new long path behavior per app via the
    manifest:</p>
  </blockquote>
  
  <pre><code>&lt;application xmlns="urn:schemas-microsoft-com:asm.v3"&gt;
      &lt;windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings"&gt;
          &lt;ws2:longPathAware&gt;true&lt;/ws2:longPathAware&gt;
      &lt;/windowsSettings&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>So, first question. Is it possible to enable it in project properties in Visual Studio 2017?</p>
  
  <p>Second question: I failed to find an answer above, so I decided to go a manual route:</p>
  
  <ol>
  <li><p>I created the <code>additional.manifest</code> text file as such:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&gt;
  &lt;assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" &gt;
  &lt;application xmlns="urn:schemas-microsoft-com:asm.v3"&gt;
      &lt;windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings"&gt;
          &lt;ws2:longPathAware&gt;true&lt;/ws2:longPathAware&gt;
      &lt;/windowsSettings&gt;
  &lt;/application&gt;
  &lt;/assembly&gt;
  </code></pre></li>
  <li><p>I then added it to the project properties:</p></li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/m9x1C.png" rel="noreferrer"><img src="https://i.stack.imgur.com/m9x1C.png" alt="enter image description here"></a></p>
  
  <ol start="3">
  <li>But then when I compile it, it gives me this warning, and that manifest seems to have no effect when the application runs:</li>
  </ol>
  
  <blockquote>
    <p>1>additional.manifest : manifest authoring warning 81010002:
    Unrecognized Element "longPathAware" in namespace
    "<a href="http://schemas.microsoft.com/SMI/2016/WindowsSettings" rel="noreferrer">http://schemas.microsoft.com/SMI/2016/WindowsSettings</a>".</p>
  </blockquote>
  
  <p>So what am I doing wrong?</p>