Why do we use appsettings.json and appsettings.Prod.json but not appsettings.Dev.json? #478
Replies: 2 comments
-
I am forced to use launchSettings.json"Kestrel": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Kestrel Production": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Production"
}
}, The ports specified above conflict and get confused with the ones specified in the file below: appsettings.Production.json "Kestrel": {
"Endpoints": {
"Https": {
"Url": "https://*:443",
"Certificate": {
// TODO
}
},
"Http": {
"Url": "http://*:80"
}
}
}, If you can submit a PR to swap these two (so that |
Beta Was this translation helpful? Give feedback.
-
Great work on this @RehanSaeed! |
Beta Was this translation helpful? Give feedback.
-
The default ASPNET templates have an
appsettings.Development.json
specifically for development. For example: Development database connecting strings, verbose logging and debug sinks for Serilog.What is the motivation behind why we use only
appsettings.json
andappsettings.Production.json
?Beta Was this translation helpful? Give feedback.
All reactions