14 references to AddJsonFile
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
162
builder.Configuration.
AddJsonFile
(configFilePath, optional: false, reloadOnChange: true);
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
921
_innerBuilder.Configuration.
AddJsonFile
(deploymentStatePath, optional: true, reloadOnChange: false);
Microsoft.AspNetCore (4)
WebApplicationBuilder.cs (2)
275
configuration.
AddJsonFile
("appsettings.json", optional: true, reloadOnChange: reloadOnChange)
276
.
AddJsonFile
($"appsettings.{env.EnvironmentName}.json", optional: true, reloadOnChange: reloadOnChange);
WebHost.cs (2)
176
config.
AddJsonFile
("appsettings.json", optional: true, reloadOnChange: true)
177
.
AddJsonFile
($"appsettings.{env.EnvironmentName}.json", optional: true, reloadOnChange: true);
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
Settings.cs (2)
66
.
AddJsonFile
("appsettings.json", optional: true, reloadOnChange: false)
67
.
AddJsonFile
("appsettings.local.json", optional: true, reloadOnChange: false)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (2)
Settings.cs (2)
36
.
AddJsonFile
("appsettings.json", optional: true, reloadOnChange: false)
37
.
AddJsonFile
("appsettings.local.json", optional: true, reloadOnChange: false)
Microsoft.Extensions.Hosting (4)
HostingHostBuilderExtensions.cs (4)
242
appConfigBuilder.
AddJsonFile
("appsettings.json", optional: true, reloadOnChange: reloadOnChange)
243
.
AddJsonFile
($"appsettings.{env.EnvironmentName}.json", optional: true, reloadOnChange: reloadOnChange);
249
appConfigBuilder.
AddJsonFile
($"{sanitizedApplicationName}.settings.json", optional: true, reloadOnChange: reloadOnChange)
250
.
AddJsonFile
($"{sanitizedApplicationName}.settings.{env.EnvironmentName}.json", optional: true, reloadOnChange: reloadOnChange);