Folder Structure of MVC Project

December 03, 2017 0 Comments A+ a-

ASP .Net
Let us discuss the folder structure of MVC project.
Solution of project contains lots of folder such as App_Data, App_Start, Contoller, Content etc.
Please find the below screen shot(fig-2.1) for your reference.


Folder Structure of MVC Project
Fig - 2.1

App_Data

This folder contains database files such as .mdf, ora

App_Start

This the one important folder in MVC project. It contains the below files.
  • BudleConfig.cs
  • FilterConfig.cs
  • RouteConfig.cs
  • Startup.Auth.cs
Find the below screen fig 2.2 for the App_Start folder structure
App_Start folder in MVC Project
Fig 2.2

Content

This folder contains all these style file or .css files

Controller

This folder contains all these controller files. 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 flder contains all these UI related files such as “.CSHTML” file

favicon.ico

This is the image file and used for display on the browser.

Global.asax

This one important file in MVC 5.0. It contains the application variable, methods etc.
Application Method is registered the routeconfig, bundleconfig etc.

packages.config

This is a configure file. It contains all these dependency details.

Startup.cs

This file is one major file in 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.