You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IConfigurationSource has been introduced to represent the settings/configuration which is used to Build() a IConfigurationProvider. It is no longer possible to access the provider instances from IConfigurationBuilder only the sources. This is intentional, but may cause loss of functionality as you can longer do things like explicitly call Load() on the provider instances.
FileConfigurationProvider base class has been introduced as a common root for Json/Xml/Ini providers. This allows the ability to specify an IFileProvider on the source which will be used to read the file instead of explicitly using File.Open. The side effect of this change is that absolute paths are no longer supported, the file path must be relative to the base path of the IConfigurationBuilder's basepath or the IFileProvider if specified.
HaoK
changed the title
Configuration API changes (absolute files no longer supported)
Configuration API changes (absolute file paths no longer supported)
Apr 1, 2016
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For more details see: aspnet/Configuration#407
Overview of changes:
Build()
aIConfigurationProvider
. It is no longer possible to access the provider instances fromIConfigurationBuilder
only the sources. This is intentional, but may cause loss of functionality as you can longer do things like explicitly callLoad()
on the provider instances.IFileProvider
on the source which will be used to read the file instead of explicitly usingFile.Open
. The side effect of this change is that absolute paths are no longer supported, the file path must be relative to the base path of the IConfigurationBuilder's basepath or the IFileProvider if specified.cc @divega @shirhatti @lodejard
The text was updated successfully, but these errors were encountered: