vscode-extension icon indicating copy to clipboard operation
vscode-extension copied to clipboard

Shared PolicySettings from appsettings.json

Open rndthoughts opened this issue 3 years ago • 0 comments
trafficstars

Is is possible to have a set of PolicySettings values that are common across all Environments. If the same setting is declare in a given environment section, it is overridden?

eg:

{
  "Defaults" : [{
       "PolicySettings" : {
           "Setting1" : "Foo",
           "Setting2" : "Bar",
           ... etc
       }
  ]},
  "Environments" : [{
      "Name" : "Test",
      "PolicySettings" : {
            "Setting1" : "Alpha",
            "Setting3" : "Beta",
            .... etc
      }
  }]
}

So "Setting1" and "Setting2" have a default of "Foo" and "Bar" respectively.

For the environment "Test",

  • "Setting1" is "Alpha",
  • "Setting2" is "Bar"
  • "Setting3" is "Beta"

rndthoughts avatar Mar 04 '22 15:03 rndthoughts