How to use AppSettings.json for a different .NET environment

Опубликовано: 20 Декабрь 2024
на канале: Round The Code
5,359
85

#shorts

With appsettings.json in ASP.NET Core, you can create a new file depending on the environment.

This will overwrite the main appsettings.json file for your .NET app.

For example, if you have a different SQL Server connection in a production environment, you can add it to appsettings.Production.json.