ASP.NET Core and configuration environment

1. Load an existing IConfiguration.

2. Load appsettings.json in the root directory of the project.

3. Load appsettings{Environment}.json in the root directory of the project.

4. When the program runs in the development environment, the program loads the "user secret" configuration.

5. Load the configuration in the environment variable.

6. Load the configuration from the command line.

Environment configuration problem

 

 

 

 

Guess you like

Origin blog.csdn.net/weixin_57062986/article/details/131802934