c# - Is launchsettings.json in a dotnet core project used in production?
问题描述
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.
推荐阅读
- php - 让数值超出范围,但我已经创建了 BigInt
- magento - 尝试编辑可配置产品时...丢失此错误...如何修复它
- xml - 使用 powershell 比较部分节点 xml 文件
- sql-server - 选择任何列作为名称作为变量
- java - 如何修复 ORA-00911:Mybatis 查询中的无效字符
- c++ - OpenCV cmake 在为 Docker 构建映像时找不到 CUDA
- amazon-web-services - AWS API Gateway http 代理端点 url 报告 {proxy} 错误
- protractor - 如何单击在 DOM 中没有任何更改的单选按钮,除了量角器中的“::before ==”等一些标签
- c++ - 二叉树递归方法的直径
- angular - 带有路由的Angular 7多个参数