Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

AsEnumerable() shouldn't use the fully qualified path #473

Closed
lodejard opened this issue Jun 30, 2016 · 2 comments
Closed

AsEnumerable() shouldn't use the fully qualified path #473

lodejard opened this issue Jun 30, 2016 · 2 comments
Assignees

Comments

@lodejard
Copy link
Contributor

It should return the path relative to the child section.

Repro:

Program.cs

            var builder = new WebHostBuilder()
                .UseConfiguration(config.GetSection("Hosting"))

MyApp.ini

[Hosting]
Environment=Development
ApplicationName=Demo

Expected:
builder has "Environment":"Development" and "ApplicationName":"Demo" in its settings collection, which are used to control startup

Actual:
builder has "Hosting:Environment":"Development" and "Hosting:ApplicationName":"Demo", which have no effect

@HaoK
Copy link
Member

HaoK commented Jun 30, 2016

Ah yeah looks like this was intended for the root mostly, we can change this to strip out the current path from the results.

@HaoK HaoK self-assigned this Jun 30, 2016
@HaoK HaoK added this to the 1.0.1 milestone Jun 30, 2016
@HaoK HaoK added the bug label Jun 30, 2016
@HaoK
Copy link
Member

HaoK commented Aug 1, 2016

Fixed via c202d31 and makePathsRelative: true overload

@HaoK HaoK closed this as completed Aug 1, 2016
@HaoK HaoK added 3 - Done and removed 2 - Working labels Aug 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants