title: How to generate the appsettings.<EnvironmentName>.json file?
body: <p>I have an ASP.NET Core 2 WebAPI which will be deployed across the following environments:</p>
  <p>INT, QA, STAGE, PRODUCTION environments.</p>
  <p>Based on the above, I need to have <code>appsettings.&lt;EnvironmentName&gt;.json</code> file for each environment. From the link : <a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-2.1" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-2.1</a>, I see that</p>
  <p>In case of local development environment, the Environment Variable called ASPNETCORE_ENVIRONMENT is set to Development. In case of the deployment where ASPNETCORE_ENVIRONMENT is not set, the default is Production</p>
  <p>I would like to know what are the steps required to take care while preparing the <code>appsettings.&lt;EnvironmentName&gt;.json</code> file for INT, QA and STAGE environment. Do I need to set the environment explicitly for each environment web server:</p>
  <p>set ASPNETCORE_ENVIRONMENT=Development.</p>
  <p>Can anyone help me to by providing their guidance?</p>