[英]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? launchsettings.json 是用于生产还是仅用于开发目的?
The one that is created by default has ASPNETCORE_ENVIRONMENT set to Development and also a localhost applicationUrl.默认情况下创建的一个将 ASPNETCORE_ENVIRONMENT 设置为 Development 以及一个 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. launchSettings.json
文件仅在调试期间和通过dotnet run
命令运行应用程序时由 Visual Studio 使用。
See the quote from the official documentation :请参阅官方文档中的引用:
The launchSettings.json file: launchSettings.json 文件:
- 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.不,它不在生产中使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.