<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.0-preview.3.21201.4" />

IConfigErrorInfo

public interface IConfigErrorInfo
Defines an interface used by the .NET Framework to support creating error configuration records.
namespace System.Configuration.Internal { public interface IConfigErrorInfo { string Filename { get; } int LineNumber { get; } } }