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

NameValueFileSectionHandler

This section handler allows <appSettings file="user.config" /> The file pointed to by the file= attribute is read as if it is an appSettings section in the config file. Note: the user.config file must have its root element match the section referring to it. So if appSettings has a file="user.config" attribute the root element in user.config must also be named appSettings.

public object Create(object parent, object configContext, XmlNode section)