views:

168

answers:

1

Is there any advantage to leaving the Scripts folder where it is in the default ASP.NET MVC Project structure.

In my mind it makes more sense to create subfolders for scripts, css files, and images under the Content folder.

Any downside to doing this?

+2  A: 

In short, no, there is no real downside to doing this. It is how I have been structuring my MVC projects.

There are some advantages to doing this, actually... on many projects I am serving up all of the static content from a separate domain, so grouping all of the static content into a single folder has made the QA/production deployment process much easier (since we are scripting deployments with MSBuild and calling out to minify utilities for the CSS and Javascript files).

mkedobbs
+1. Good point about the deploying static content to separate domain.
tyndall