.net 3.7 v 6 Re: Areas

Dean Everhart 1,536 Reputation points
2023-02-16T15:55:19.3966667+00:00

In earlier versions of .net (e.g. 3.7) right-clicking on project folder in Solution Explorer would give you the option to add Area. Has that process been changed with newer iterations of .net (e.g. 6)?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,806 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,598 questions
0 comments No comments
{count} votes

Accepted answer
  1. Zhi Lv - MSFT 33,186 Reputation points Microsoft External Staff
    2023-02-17T03:15:14.4+00:00

    Hi @Dean Everhart

    In earlier versions of .net (e.g. 3.7) right-clicking on project folder in Solution Explorer would give you the option to add Area. Has that process been changed with newer iterations of .net (e.g. 6)?

    Yes, the process has been changed.

    In .Net 6. you have to create an "Areas" folder first, then right click the "Areas" folder and select the "Add" option, then you can find the "Area..". option.

    User's image


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,

    Dillion

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 73,101 Reputation points
    2023-02-16T23:36:43.97+00:00

    you just add an Areas folder to the solution. then a folder for the area

    Areas -> MyArea

    then add a Pages folder for razor pages, Views & Controller folders for MV

    see docs:
    https://learn.microsoft.com/en-us/aspnet/core/mvc/controllers/areas?view=aspnetcore-7.0

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.