public static IConfigurationBuilder AddConfigurationFile([NotNull] this IConfigurationBuilder thisValue, [NotNull] string fileName, bool optional, [NotNull] IWebHostEnvironment environment) { return(thisValue.AddConfigurationFile(environment.ContentRootPath, fileName, optional, environment.EnvironmentName)); }