Option to disable file nesting in ASP.NET 5 / MVC 6 projects
Can we please have a way to disable the auto file nesting in ASP.NET 5 / MVC 6 projects? In some folder structures it can be extremely annoying - for example, if the folder itself already represents a group of related files, in which case the additional nesting becomes highly frustrating.
Also, the auto nesting is highly inconsistent:
It nests .css, .js and .ts under .html, but for some reason .less and .scss are not nested, despite the fact that they are conceptually exactly the same as .ts - they just compile to .css instead of .js.
There really need to be an option to disable this!
Angelos Petropoulos commented
I just wanted to let everyone know that since Visual Studio 2017 15.6 Preview 4 (which was made available a few days ago) users have the ability to control how file nesting works in Solution Explorer.
Check out this blog posts for more details:
S Ayydevara commented
VS.Net is supposed to be developer friendly. File nesting with Typescript files is weird and no body likes it
I don't want anything hidden from me, unless I say so! Please don't muck with my project without an option to disable. WOW! The arrogance of developers sometimes.
Bogdan Ionescu commented
I have also problems with nesting file in assets folder: I cannot rename o js file, which is neted from html
For .ts + .html file I would even go so far as suggesting, to put the html behind the ts, and not the other way around...
+1. This is so frustrating.
Agreed... in fact in my opinion flat by default would have been nice with a view option of some sort to turn on nesting. I don't want my .ts files nested under an html file of the same name. ugh.