Program.cs 330 B

1234567
  1. Serve.Run(RunOptions.Default.WithArgs(args).ConfigureBuilder(builder =>
  2. {
  3. builder.Host.UseSerilogDefault().ConfigureAppConfiguration((hostingContext, config) =>
  4. {
  5. config.AddJsonFile($"applicationsettings.{hostingContext.HostingEnvironment.EnvironmentName}.json", optional: true, reloadOnChange: true);
  6. });
  7. }));