ASP.NET Core launchSettings.json file

ASP.NET Core provides a file for settings configuration called launchSettings.json.
In this file, we can configure the application URL, authentication settings, Environment variables etc.

Properties/launchSettings.json:

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:63855/",
      "sslPort": 0
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "CosmicASPNETCore": {
      "commandName": "Project",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "http://localhost:63856/"
    }
  }
}

Previous: Program.cs file | Next: First ASP.NET Core Page

<
>