title: appsettings.{ENVIRONMENT}.json not transforming - Deploying asp.net 5 web app to IIS
body: <p>In my publish profile for staging (/Properties/PublishProfiles/xxx.pubxml) I have:</p>
  <pre><code>&lt;EnvironmentName&gt;Staging&lt;/EnvironmentName&gt;
  </code></pre>
  <p>I have a file called appsettings.Staging.json.
  When I deploy to the server the file stays as appsettings.Staging.json and doesn't get turned into appsettings.json, as I would expect.</p>
  <p>Am I missing a step, shouldn't the transformation take place automatically.</p>
  <p>The website doesn't work with appsettings.Staging.json file there.</p>
  <p>In web.config on the server there is:</p>
  <pre><code>  &lt;environmentVariable name=&quot;ASPNETCORE_ENVIRONMENT&quot; value=&quot;Staging&quot; /&gt;
  </code></pre>
  <p>which was added because of the line I added to the publish profile.</p>