First of all, I must point out that most folders are suggestions, and do not necessarily need to be used as they are. That said, I will make a brief explanation of each folder.
App_data
This folder is indicated to save the physical files if you are using it. For example: I will upload a spreadsheet to my website and want to save it somewhere. Microsoft suggests that you use this folder.
App_start
This folder contains the classes that are executed when your application starts. It usually comes with the files Bundleconfig.Cs, Filterconfig.Cs and Routeconfig.Cs by default (if using the template sample of Visual Studio).
Content
This folder is the place indicated to add the content files, such as css, images, icons, etc.
Controllers
By default, your controllers should be created in this folder. This standardization is important for reasons of routes and connection with Views. This pattern is so recommended, that Visual Studio has a function called Go To View, where he opens the View referring to that Action.
fonts
Location indicated to save the fonts used in your application. These are those fonts to change the same letter, those files with the extensions .eot
, .svg
, .woff
, etc..
Models
Folder indicated to save the templates of your application. Of course, it is an indication, and if you uses the Repository standard (I don’t know why the hell you would do that), you wouldn’t even have to use that folder. However, I wouldn’t advise doing that.
Scripts
I think this folder should be the most obvious one, but yes. This folder is the place to save Scripts of its application. And yes, the Scripts what I mean are the archives .js
, like the jQuery.js, bootstrap.js, etc..
Views
By default, your Views should be created in this folder. This standardization is important for reasons of routes and connection with Controllers. This pattern is so recommended, that Visual Studio has a function called Go To Controller, where he opens the Controller concerning this View.
As Views are those files with the extension .cshtml
, that is, the layout of your application.
There is one more folder that an application usually has (manually created), which is the Viewmodel:
Viewmodels
In this folder your Viewmodels. In case you don’t know what I’m talking about, read these answers you’ll understand better.
As I said earlier, these folders are suggestions from Microsoft. It is not necessary to use in the suggested way. However, if you change the most important folders (App_start, Controllers and Views), you will have serious problems if you do not know what you are doing. This is because the routes (I am not talking about the Routeconfig.Cs) of the application are configured to this default, but if you make changes in the folder but do not change the routes correctly, surely your application will give error.
Controllers, Models and Views is for use of the MVC structure, App_data I believe is for various data used by the framework, maybe since session as temporary. The briefcase
fonts
it was you who added?– Guilherme Nascimento
The briefcase
fonts
was also created automatically by the IDE.– gato
Interesting, I left an upvote ;) See you later
– Guilherme Nascimento