title: Net Core 2.0 looking for appsettings.Production.json
body: <p>I have created a couple of these .net core 2 web app and no issue until this one.</p>
  
  <p>Running local under IISExpress it runs correctly but when I deploy a debug version to an IIS folder on the server I have issues.</p>
  
  <p>When I read the config entry it is not found:</p>
  
  <pre><code>_config["MySettings:MyName"];
  </code></pre>
  
  <p>files contents:</p>
  
  <p><strong>appsettings.Development.json</strong></p>
  
  <pre><code>{
    "Logging": {
      "IncludeScopes": false,
      "LogLevel": {
        "Default": "Trace",
        "System": "Information",
        "Microsoft": "Information"
      }
    },
    "MySettings": {
      "MyName": "JohnDoe"
    }
  }
  </code></pre>
  
  <p><strong>appsettings.json</strong></p>
  
  <pre><code>{
    "Logging": {
      "IncludeScopes": false,
      "Debug": {
        "LogLevel": {
          "Default": "Trace"
        }
      },
      "Console": {
        "LogLevel": {
          "Default": "Warning"
        }
      }
    }
  }
  </code></pre>
  
  <p><strong>launchSetting.json</strong></p>
  
  <pre><code>{
    "iisSettings": {
      "windowsAuthentication": false,
      "anonymousAuthentication": true,
      "iisExpress": {
        "applicationUrl": "http://localhost:60668/",
        "sslPort": 0
      }
    },
    "profiles": {
      "IIS Express": {
        "commandName": "IISExpress",
        "launchBrowser": true,
        "launchUrl": "api/security",
        "environmentVariables": {
          "ASPNETCORE_ENVIRONMENT": "Development"
        }
      },
      "WebApi.ViewerSecurity": {
        "commandName": "Project",
        "launchBrowser": true,
        "launchUrl": "api/security",
        "environmentVariables": {
          "ASPNETCORE_ENVIRONMENT": "Development"
        },
        "applicationUrl": "http://localhost:60669/"
      }
    }
  }
  </code></pre>
  
  <p>If I copy appsettings.Development.json and rename to appsettings.Production.json it works. </p>
  
  <p>I changed the value of "MyName" in the prod file and logged it. Yup, reading from appsettings.Production.json.</p>
  
  <p>How and why? Production isn't defined anywhere.</p>