Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

webroot key in project.json for ASP.NET web application (not MVC) #31

Closed
peterblazejewicz opened this issue Dec 30, 2014 · 4 comments
Closed

Comments

@peterblazejewicz
Copy link
Member

I wonder if web application type of project should contain webroot key:
https://github.com/OmniSharp/generator-aspnet/blob/master/samples/web/project.json
The mvc application project file contains relevant key:
https://github.com/OmniSharp/generator-aspnet/blob/master/samples/mvc/project.json#L2
The articles on vNext project states that VisualStudio generated template does contain webroot key:
http://blogs.msdn.com/b/webdev/archive/2014/10/06/asp-net-vnext-in-visual-studio-14-ctp-4.aspx
http://www.asp.net/vnext/overview/aspnet-vnext/grunt-and-bower-in-visual-studio-2015
but I'm not sure about this - is that required or just advised.

@sayedihashimi
Copy link
Member

@peterblazejewicz I think we should add a webroot to the empty template as you suggest. It's not strictly required but if users start off without a web root and then decide to use tools like grunt/gulp/bower it may be more difficult since the source root and web root are the same folder.

What do you think about.

  • Add "webroot" : "wwwroot" to project.json
  • Add a readme.md or readme.html in wwwroot folder in the empty template stating that static assets will go in wwwroot

Thoughts?

@peterblazejewicz
Copy link
Member Author

Add "webroot" : "wwwroot" to project.json

👍
So generator stays in sync in content blogged/documented/evangelized in other places.

@sayedihashimi
Copy link
Member

I've marked it as approved.

TODO

  • Add "webroot" : "wwwroot" to project.json
  • Add a readme.md or readme.html in wwwroot folder in the empty template stating that static assets will go in wwwroot

@peterblazejewicz
Copy link
Member Author

The issues is closed via:
f2daaa5

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