Search⌘ K

Configuring the ASP.NET Core Backend

Explore how to set up environment-specific configuration files in ASP.NET Core, including development, staging, and production settings. Understand how to manage connection strings securely and prepare your backend for deployment to Azure.

In this section, we are going to create separate appsettings.json files for staging and production as well as for working locally in development.

Configure ASP.NET backend for staging and production

Let's open our backend project in Visual Studio and carry out the following steps:

  1. Let’s now go to “Solution Explorer,” as illustrated in the following screenshot:

The appsettings files in Solution Explorer
The appsettings files in Solution Explorer

Notice that two settings files start with the word appsettings.

...