<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="11.0.0-rc.2.26504.105" />

Microsoft.Extensions.Configuration.FileConfigurationExtensions

public static class FileConfigurationExtensions
Provides extension methods for FileConfigurationProvider.
public static Action<FileLoadExceptionContext> GetFileLoadExceptionHandler(this IConfigurationBuilder builder)

Gets a default action to be invoked for file-based providers when an error occurs.

public static IFileProvider GetFileProvider(this IConfigurationBuilder builder)

Gets the default IFileProvider to be used for file-based providers.

public static IConfigurationBuilder SetBasePath(this IConfigurationBuilder builder, string basePath)

Sets the FileProvider for file-based providers to a PhysicalFileProvider with the base path.

public static IConfigurationBuilder SetFileLoadExceptionHandler(this IConfigurationBuilder builder, Action<FileLoadExceptionContext> handler)

Sets a default action to be invoked for file-based providers when an error occurs.

public static IConfigurationBuilder SetFileProvider(this IConfigurationBuilder builder, IFileProvider fileProvider)

Sets the default IFileProvider to be used for file-based providers.