Adventures on the edge

Learning new development technologies (2015 - 2018)
    "When living on the bleeding edge - you sometimes have to bleed" -BillKrat

ASP.NET MVC - Setting up an Area (beta7)

“The scenario that areas address is being able to partition your application into discrete areas of functionality. It helps make managing a large application more manageable and allows for creating distinct applets that you can drop into an application” -- Phil Haack  read more

Setting up an Area under ASP.NET MVC (beta7) is rather straight forward. 

  1. Apply the [Area(“YourArea”)] attribute to your controller
  2. Setup your Areas\<YourArea>\Views* folder comparable to normal views
  3. Configure an “areaRoute” in your Startup.Configure method.

* The following locations are searched for view files:

Note: My HomeController actually resides in a separate PocArea project.


Comments are closed