Skip to main content
All docs
V23.2

ASP.NET Core Blazor Server and Web API Service Configuration Files

The Solution Wizard generates appsettings.json and appsettings.Development.json configuration files for ASP.NET Core-based projects. For production, you should also manually add an appsettings.Production.json file to your ASP.NET Core project. For more information, see Use multiple environments in ASP.NET Core.

The default JsonConfigurationProvider loads configuration information in the following order:

  1. appsettings.json

  2. appsettings.{Environment}.json. For example, the appsettings.Production.json and appsettings.Development.json files. Values from the appsettings.{Environment}.json file override keys in appsettings.json. For example:

    • In development mode, appsettings.Development.json configuration options override similar values from appsettings.json.
    • In production mode, appsettings.Production.json configuration options override similar values from appsettings.json.