public static IConfigurationBuilder AddDefaults(this IConfigurationBuilder builder, string baseDir) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } builder.AddJsonFile(Path.Combine(baseDir, "Orangebeard.config.json"), optional: true); builder.AddDirectoryProbing(baseDir); builder.AddEnvironmentVariables(); return(builder); }