你好,
据我所知,你说的这种配置策略应该是ASP.NET CORE MVC中的area功能。
引用自官网:
区域是一个ASP.NET功能,用于将相关功能组织到组中作为单独的功能:
- 路由的命名空间。
- 视图和 Razor 页面的文件夹结构。
使用区域通过为 controller
和 action
或 Razor Page page
添加其他路由参数 area
,创建用于路由目的的层次结构。
区域提供了一种将 ASP.NET Core Web 应用划分为更小的功能组的方法,每个功能组都有自己的一组 Razor Pages、控制器、视图和模型。 区域实际上是应用内的结构。
具体你可以参照这个链接。
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.