Let us discuss the ASP.NET MVC Folder Structure.
Solution of the project contains lots of folders such as App_Data, App_Start, Controller, Content, etc.
Please find the below screenshot for your reference.
Contents
ASP.NET MVC Folder Structure
App_Data
This folder contains database files such as .mdf, ora, etc.
App_Start
This is the one important folder in the MVC project. It contains the below files.
- BudleConfig.cs
- FilterConfig.cs
- RouteConfig.cs
- Startup.Auth.cs
Find the below screenshot for the App_Start folder structure.
Content
This folder contains all these style file or .css files.
Controller
This folder contains all these controller files. The file extension should be “Controller.cs”
Font
This folder contains all the font style
Model
This folder contains all model files
Script
All these Javascript or script files stored under this folder
View
This folder contains all these UI related files such as “.CSHTML” files.
favicon.ico
This is the image file and used for display on the browser.
Global.asax
This is one of the important file in MVC 5.0. It contains the application variable, methods, etc.
Application Method is registered the route config, bundle config, etc.
packages.config
This is a configure file. It contains all these dependency details.
Startup.cs
This file is one major file in the upcoming MVC framework. This file can able to replace the global.asax file.
Web.config
This is one traditional file in .net framework. All you know this file contains configuration details such as DB connection string, App Setting, Framework detail etc.