How to add an Area with Visual Studio for Asp.Net MVC project<!-- --> | <!-- -->Patrick Desjardins Blog
Patrick Desjardins Blog
Patrick Desjardins picture from a conference

How to add an Area with Visual Studio for Asp.Net MVC project

Posted on: April 29, 2014

Adding an area can be done manually by adding a folder inside your Web Site project under the Areas folder. From there you can add a folder for your controller. However, a better way exist that create for your the area with all folders required. It also add the_ViewStart.cshtml for you. If you right click the Areas folder you will not find anything related to Add Area.

NoArea 400x361

Everything is hidden in the contextual menu of the website project.

Area 400x383

This will add for you your area. If not Areas folder exist, it will add it for your. It will also take care to register the area with the map route.