Configuring AppSettings with ASP.Net Core on Azure Web App for Containers: Whither Colons?

后端 未结 1 1065
没有蜡笔的小新
没有蜡笔的小新 2021-02-07 04:16

Consider this appsettings.json:

{
  \"Parent\": {
    \"ChildOne\": \"C1 from secrets.json\",
    \"ChildTwo\": \"C2 from secrets.json\"
  }
}
         


        
1条回答
  •  我在风中等你
    2021-02-07 05:13

    After more experimentation than I'd like to admit I think I have the answer.

    Where you use : on an App Service, use a __ (double underscore) on an App Service with containers.

    So Parent__ChildOne instead of Parent:ChildOne.

    0 讨论(0)
提交回复
热议问题