We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASPNETCORE_ENVIRONMENT 环境变量
Development 开发环境
Staging 预发布、部署上线前的最终测试环境、生产环境的物理镜像
Production 生产环境(安全性、高性能、稳健性)
bundled
minified
CDN
diagnostic ErrorPages
friendly error pages
production logging
monitoring
注:
Windows 不区分大小写,Linux 默认区分大小写。
设置:右键项目属性-调试-环境变量,另在 ~\Properties\launchSettings.json 可看到具体配置。
~\Properties\launchSettings.json
Secret Manager
本机设置
set ASPNETCORE_ENVIRONMENT=Development
The text was updated successfully, but these errors were encountered:
No branches or pull requests
多环境工作
ASPNETCORE_ENVIRONMENT 环境变量
Development 开发环境
Staging 预发布、部署上线前的最终测试环境、生产环境的物理镜像
Production 生产环境(安全性、高性能、稳健性)
bundled
,minified
或CDN
diagnostic ErrorPages
friendly error pages
production logging
和monitoring
注:
Windows 不区分大小写,Linux 默认区分大小写。
设置:右键项目属性-调试-环境变量,另在
~\Properties\launchSettings.json
可看到具体配置。Secret Manager
存放加密信息。本机设置
set ASPNETCORE_ENVIRONMENT=Development
The text was updated successfully, but these errors were encountered: