Skip to content
New issue

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

fix: 修复会读取到非指定环境的appsettings的问题 #24

Merged
merged 1 commit into from
Mar 26, 2022
Merged

fix: 修复会读取到非指定环境的appsettings的问题 #24

merged 1 commit into from
Mar 26, 2022

Conversation

KamenRiderKuuga
Copy link
Collaborator

当多个环境的appsettings配置文件同时存在于项目启动目录时,由于只会跳过appsettings.jsonappsettings.{env}.json配置文件的加载,会导致其它环境的appsettings配置文件被读取,如:

appsettings.Development.json
appsettings.json
appsettings.LocalTest.json
appsettings.Production.json
NetPro.Sample.API.csproj

Development环境,配置项会被Production环境的配置项覆盖

@liuyl1992 liuyl1992 merged commit bd21a3a into LeonKou:dev_6.0 Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants