launchSettings.json configures local launch profiles for .NET web services. A profile selects the project command, controls browser launching, assigns HTTP and HTTPS URLs, and supplies development environment variables. section 3.1
"profiles": {
"AsciiArtSvc": {
"commandName": "Project", #1
"dotnetRunMessages": true,
"launchBrowser": true, #2
"applicationUrl":
"https://localhost:7041;http://localhost:5292", #3
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
A generated profile uses commandName Project, enables browser launching, assigns HTTPS and HTTP application URLs, and sets ASPNETCORE_ENVIRONMENT to Development. section 3.1
Use the file when local development requires:
- Changing randomly selected service ports that conflict with another application. section 3.1
- Opening the configured URL automatically when launching through an IDE. section 3.1
- Keeping browser-launch behavior distinct from dotnet run, which does not open a browser. section 3.1



