Tarang Hirani
Tarang Hirani

Reputation: 590

Visual Studio 2012 - No Model Folder

I started a project in Visual Studio 2012. I selected the ASP.NET Web Forms Application but the folder structure does not contain a model folder. Is there a setting there needs to be changed for this to be created? However, creating a similar project in Visual Studio 2013 contains a model folder. Is there a difference because of the Visual Studio editions?

Upvotes: 0

Views: 1371

Answers (2)

Nick Mehrdad Babaki
Nick Mehrdad Babaki

Reputation: 12545

It is new in Visual Studio 2013. Previously, it was only MVC with a Models folder as it has Model-View-Controller architecture, an I think Microsoft found out it is a good idea to keep models in a Model folder even when it is Web Form. You can create it manually. Click on the project name on solution explorer, right click, on menu go to add-> New Folder and call it Models

enter image description here

Upvotes: 1

Carlitrosss
Carlitrosss

Reputation: 176

ASP.NET web forms template does not include a Models folder, you're looking for ASP.NET MVC instead.enter image description here

Upvotes: 0

Related Questions