Is the launchsettings.json meant to be used in production or is it only for development purposes?
The one that is created by default has ASPNETCORE_ENVIRONMENT set to Development and also a localhost applicationUrl. Am I suppose to create separate production/staging profile or is this more of a development tool?
The launchSettings.json
file is only used by Visual Studio during debugging and when running the app via dotnet run
command.
See the quote from the official documentation :
The launchSettings.json file:
- Is only used on the local development machine.
- Is not deployed.
- contains profile settings.
So for everyone who is looking for the short confirmed answer:
No, it's not used in production.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.