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

Hosting fails to read "wwwroot" if the project.json contains a JSON element that cannot be read by the JSON config source #74

Closed
Praburaj opened this issue Sep 15, 2014 · 2 comments
Assignees
Milestone

Comments

@Praburaj
Copy link
Contributor

We use the JsonConfiguration source to parse the project.json file to read wwwroot. When the project.json contains an JSON element that this configuration source cannot read it throws an exception and returns an incorrect wwwroot.

For example:
Have an authors element the project.json and wwwroot element. Hosting code here will fail to return the right wwwroot. It throws the following exception.
https://github.com/aspnet/Hosting/blob/dev/src/Microsoft.AspNet.Hosting/HostingUtilities.cs#L43


@Praburaj Praburaj added the bug label Sep 15, 2014
@Praburaj
Copy link
Contributor Author

@Praburaj
Copy link
Contributor Author

Today nodes like code, exclude, resource and shared in project.json supports arrays. Which means any project.json with these will fail to work.
aspnet/dnx#133

There is a work item to remove support for string on these elements. aspnet/dnx#604

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

3 participants