15 references to AddJsonFile
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
144builder.Configuration.AddJsonFile(configFilePath, optional: false, reloadOnChange: true);
blazor-devserver (1)
Server\Program.cs (1)
45config.AddJsonFile(Path.Combine(applicationDirectory, "blazor-devserversettings.json"), optional: true, reloadOnChange: true);
HostFilteringSample (2)
Program.cs (2)
27config.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) 28.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true, reloadOnChange: true);
IdentitySample.DefaultUI (1)
Startup.cs (1)
25.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
IdentitySample.Mvc (1)
Startup.cs (1)
18.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
Kestrel.SampleApp (2)
Startup.cs (2)
180config.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) 181.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true, reloadOnChange: true);
Microsoft.AspNetCore (4)
WebApplicationBuilder.cs (2)
273configuration.AddJsonFile("appsettings.json", optional: true, reloadOnChange: reloadOnChange) 274.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true, reloadOnChange: reloadOnChange);
WebHost.cs (2)
172config.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) 173.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true, reloadOnChange: true);
Microsoft.Extensions.Hosting (2)
HostingHostBuilderExtensions.cs (2)
241appConfigBuilder.AddJsonFile("appsettings.json", optional: true, reloadOnChange: reloadOnChange) 242.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true, reloadOnChange: reloadOnChange);
Microsoft.Extensions.Logging.AzureAppServices (1)
SiteConfigurationProvider.cs (1)
18.AddJsonFile(settingsFile, optional: true, reloadOnChange: true)