关于NetCore 根据环境变量读取对应的自定义配置文件配置

以 hostsettings.json 举例
1.添加对应环境变量的配置文件

2.Program.cs

原文地址:https://www.cnblogs.com/fei686868/p/14703030.html