user211705
user211705

Reputation: 1

Reorganizing ASP.NET MVC Folders

I'm looking to migrate web forms app to mvc. One of the organizational issues I would need to tackle is our folder structure. Currenly it's organized by functional area e.g.

which works quite nicely for our task-based app. However, from my understanding, the default organization with an MVC app is similiar to

etc.....

I would like to retain the layout we currently have. I'm envisioning a structure more like

etc...

Which roads do I need to head down to achieve this? And if I did, what kind of pain would I suffer from deviating quite drastically from the convention?

Upvotes: 0

Views: 229

Answers (2)

Jamie Dixon
Jamie Dixon

Reputation: 53991

This is something that's available in version 2.0 of ASP.NET MVC.

They're calling it Areas

Some more info from Phil Haack.

Here's what Steve Sanderson has said.

These areas are designed to allow you to seperate out your models, views and controllers into logical "areas".

  • Area1
    • Model
    • View
    • Controller
  • Area2
    • Model
    • View
    • Controller

Upvotes: 4

Robert Harvey
Robert Harvey

Reputation: 180787

Have a look at areas in ASP.NET MVC 2.0.

Upvotes: 1

Related Questions