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

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

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

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

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.

If you like my article, think to buy my annual book, professionally edited by a proofreader. directly from me or on Amazon. I also wrote a TypeScript book called Holistic TypeScript

4 Responses so far.

  1. Naqvi says:

    Thank you 🙂

  2. Reza Yousefi says:

    Hi
    First Add Folder Areas
    After Right click on Areas folder
    click Add
    You will see it

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.