folder or file |
Describe |
Note |
/app_data |
This folder is used to hold private data, such as XML, or SQL Server express\sqlite database files, or other file-based repositories |
IIS will not service the contents of this folder, which means that the directory's files cannot be fetched through the Web request |
/app_start |
This folder contains some of the core configuration settings for your project, including routing, filters, bundles, APIs, and more |
|
/areas |
The storage folder for the zone in the program. You can also divide a large application into small pieces. |
|
/bin |
The location where the MVC program compiles the assembly and any referenced assemblies that are referenced and are not included in the GAC global Assembly cache |
IIS does not service this directory. The bin folder is not visible in Solution manager and needs to be displayed for all files to be visible. You do not need to store this folder in the source controller (TFS). |
/content |
Static content for placing MVC, such as CSS or pictures |
This is a convention but not a necessity. You can put static files anywhere, as long as you like. |
/controller |
Folder to place the controller |
This is a convention. The controller classes can be placed anywhere because they will be compiled into the same assembly. |
/models |
For placing a view model or domain model class, the domain model is best placed in a dedicated assembly, and the view model is placed in that folder. |
This is a convention where model classes can be defined in any location. |
/scripts |
For storing JavaScript libraries |
This is a convention that can be stored in any position. |
/views |
Used to store views and sections of views, usually their associated controller-named folders are grouped |
The/view/web.config file prevents IIS from servicing these directory contents. The view must be rendered through an action method. |
/views/shared |
Used to store layout views and shared views. |
|
/views/web.config |
This is not the application's configuration file. It contains the configuration required to enable the view to work with ASP, prevent IIS from invoking the view, and the namespace of the view is imported by default. |
|
/global.asax |
This is the global ASP. NET Application class. His background code class Global.asax.cs is used to register routes, WebAPI, bundles, and other configurations. It also involves building the code where the application is initialized, shut down, or is running when an unhandled exception occurs. |
|
/web.config |
application's configuration file |
|