Google News
logo
ASP.NET - Interview Questions
What is the purpose of the appsettings.json file?
Appsettings.json contains all of the application's settings, which allow you to configure your application behavior.
 
Here is an example of an appsettings.json file.
{
 "Logging": {
     "LogLevel": {
          "Default": "Information",
    "Microsoft": "Warning",
    "Microsoft.Hosting.Lifetime": "Information"
      }
  },
"ConnectionStrings": {
    "AppConnection": ""
},
"AWS": {
  "Profile": "local-test-profile",
  "Region": "us-west-2"
},
"AllowedHosts": "*"
}
Advertisement