New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webroot definition moved from project.json to hosting.json #94

Tratcher opened this Issue Oct 27, 2015 · 0 comments


None yet
1 participant

Tratcher commented Oct 27, 2015

"webroot": "wwwroot" has been moved from the project.json file to the adjacent hosting.json. This is used to define where static content should be served from. The default logic has also been updated such that many apps won't need to set this value.


  • If hosting.json exists and defines "webroot", use it.
  • Else if the "wwwroot" directory exists, use it as the webroot.
  • Default to the application root (normally the parent directory of wwwroot).

Applications should remove "webroot" from their project.json files. It only need to be added to hosting.json if the value is not wwwroot, or if the wwwroot directory is empty and may be excluded from source control.

[Updated to reflect the rename of Microsoft.AspNet.Hosting.json to hosting.json]

See aspnet/Hosting#450 for discussion.

@Tratcher Tratcher added this to the 1.0.0-rc1 milestone Oct 27, 2015

@aspnet aspnet locked and limited conversation to collaborators Oct 27, 2015

@Tratcher Tratcher changed the title from webroot definition moved from project.json to Microsoft.AspNet.Hosting.json to webroot definition moved from project.json to hosting.json Oct 29, 2015

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.