title: replace web.config in asp.net core vs 2017 on publish
body: <p>i'm trying to replace the web.config with the production version.</p>
  
  <p>I have the production version in <code>~\production\web.config</code> (tilda as the root of my project folder).</p>
  
  <p>I found this in the migration document </p>
  
  <pre><code>&lt;ItemGroup&gt;
  
    &lt;Content Include="Views\**\*" PackagePath="%(Identity)" /&gt;
  
    &lt;None Include="notes.txt" CopyToOutputDirectory="Always" /&gt;
    &lt;!-- CopyToOutputDirectory = { Always, PreserveNewest, Never } --&gt;
  
    &lt;None Include="publishnotes.txt" CopyToPublishDirectory="Always" /&gt;
    &lt;!-- CopyToPublishDirectory = { Always, PreserveNewest, Never } --&gt;
  &lt;/ItemGroup&gt;
  </code></pre>
  
  <p>I tried to use something like this</p>
  
  <pre><code>&lt;ItemGroup&gt;   
       &lt;None Include="_production\web.config" CopyToPublishDirectory="Always" /&gt; 
  &lt;/ItemGroup&gt;
  </code></pre>
  
  <p>but in this way the folder and the file both will copy to the publish directory. it's a combination of mapping and publish and unfortunately  the documentation is suffering from lack of example, so i tried to guess/figure it out  by combining the mapping example with the publish.</p>
  
  <p>first i tried this: </p>
  
  <pre><code>&lt;None Include="_production\web.config" CopyToPublishDirectory="Always"  PackagePath="in/web.test"/&gt;
  </code></pre>
  
  <p>so i was expecting to see a <code>in</code> folder in the publish directory but didn't.</p>
  
  <p>i tried </p>
  
  <pre><code>&lt;None Include="_production\web.config" CopyToPublishDirectory="Always"  PublishPath="in/web.test"/&gt;
  </code></pre>
  
  <p>but didn't worked as well.</p>
  
  <p>you can find the migration document <a href="https://docs.microsoft.com/en-us/dotnet/core/tools/project-json-to-csproj#files" rel="nofollow noreferrer">here</a> </p>