title: How exclude certain appsettings files from publishing
body: <p>I have asp.net core 2 application. Based on <a href="https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.0&amp;tabs=aspnetcore2x#deploy-the-app" rel="noreferrer">documentation</a> i have created <code>.pubxml</code> file for my development environment. I am using web deployment (remote agent) to deploy the web package to target web server.  On our build server where, jenkins is installed, i run the following command to build &amp; deploy</p>
  
  <pre><code>D:\Jenkins\myproject\workspace\myapplication\Src\Api&gt;dotnet publish Api.csproj /p:PublishProfile=development.pubxml
  </code></pre>
  
  <p>It builds and deploys the application successfully to target web server.  </p>
  
  <p>However my application has multiple <code>appsettings</code> files specific to each environment. For example <code>appsettings.json</code>, <code>appsettings.development.json</code>, <code>appsettings.staging.json</code> and <code>appsettings.production.json</code> The deployment process deploys all the appsettings files to web server. (in this case to development web server)   </p>
  
  <p>How do i only include environment specific appsettings file? (in this case i want to deploy <code>appsettings.json</code>, <code>appsettings.development.json</code> but not other 2 files)</p>