I have the following on an ASP.NET Core Startup:
builder
.AddJsonFile("config.json", false)
.AddJsonFile($"config.{hostingEnvironment.EnvironmentName}.json", true);
This way I can use the config files:
config.json
config.development.json
config.production.json
config.staging.json
If I have a property that is different in production but the same in development and staging should I place that property on config.json and other one in production to replace the valie in config.json?
Or do I need to add the property in config.development.json, config.production.json and config.staging.json and remove it from config.json?
I mean, is there property replacement in ASP.NET Core configs like there was in Web.config of ASP.NET 4?