title: How to extract NuGet contentFiles to a specific directory?
body: <h2>What I've tried so far:</h2>
  
  <p>I've got the following .nuspec file, defining my package (simplified for better readability):</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"&gt;
    &lt;metadata&gt;
    .
    .
    .
      &lt;dependencies/&gt;
      &lt;contentFiles&gt;     
        &lt;files include="any\any\config\*.*" buildAction="None" copyToOutput="true" flatten="false"/&gt;
      &lt;/contentFiles&gt;
    &lt;/metadata&gt;
    &lt;files&gt;
      &lt;file src="bin\Assembly.dll" target="lib\net461" /&gt;
      &lt;file src="bin\Assembly.pdb" target="lib\net461" /&gt;
      &lt;file src="Config\cf.xml" target="contentFiles\any\any\config"/&gt;
      &lt;file src="Config\cf.txt" target="contentFiles\any\any\config"/&gt;
    &lt;/files&gt;
  &lt;/package&gt;
  </code></pre>
  
  <p>As you can see, it contains a <em>compiled Assembly</em> along with it's <em>debug symbols file</em> as well as two <em>content Files</em> in a sub directory.</p>
  
  <p>This results in the following compilation output, where the <em>Assembly.dll</em> is extracted to the output directory as well as the <em>config</em> sub directory (with the two cf.* files in it):</p>
  
  <p><a href="https://i.stack.imgur.com/DCZIE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DCZIE.png" alt="actual build output"></a></p>
  
  <hr>
  
  <h2>Question:</h2>
  
  <p>What I want to do is to move the sub directory <em>config</em> one step up in the directory tree, so it sits <em>next</em> to the output directory - basically maintaining the structure of the file input in the .nuspec file (assuming <em>bin</em> is the output directory of my .csproj):</p>
  
  <p><a href="https://i.stack.imgur.com/bxw3N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bxw3N.png" alt="nuspec directory structure"></a>   <a href="https://i.stack.imgur.com/w1G4V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w1G4V.png" alt="desired build output"></a></p>
  
  <p><strong>How can I tell the NuGet package the exact location where I want the contentFiles to be extracted to?</strong></p>