dotnet / dotnet/aspnetcore

Add alternative way to specify mvc/rcl area

Open
#59,515 0 comments 0 reactions 0 assignees View on GitHub
area-mvc untriaged
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

We're using the areas functionality in a large project and it seems as in ASP.NET Core we need to have the areas folder structure in place on disk in each library to make it work.

In earlier MVC/Razor version I think this was a publish/deploy task to get the different libraries in the correct structure but now we must have the folder structure 'Areas/Area/_Views_' for all projects on disk.

To me the additional 'Areas/Area' folders add unneccesary complexity and makes code browsing/searching harder

Suggestion:

* Add a possibility to specify the area in the sdk project file.
New setting similar to existing, see https://learn.microsoft.com/en-us/aspnet/core/razor-pages/sdk

(I've tried to do something like this with the @namespace directive but I get AspNetCoreGeneratedDocument.* names which don't work..)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.