。NET Core 3-无法识别我的区域标签

问题描述 投票:0回答:1

希望我确实缺少一些明显的东西,但是到目前为止,到目前为止我还真是运气不佳-我搜索了10多个Area教程,以了解是否可以发现任何东西,但无济于事。

这是我的文件夹布局:

enter image description here

和端点路由:

enter image description here

(也尝试过):

enter image description here

和控制器:

enter image description here

和查看:

enter image description here

但是,无论我如何尝试,我总是在HTML一代中得到这个……

enter image description here

注意表单中的?area = Admin。

当然我做的对吗?!我已经在.NET MVC + .NET Core 2.x中完成了一百万次了]

希望我确实缺少一些明显的东西,但是到目前为止,我到这一天都没有碰到运气-我搜索了10多个Area教程,看是否可以发现任何东西,但是...

c# .net asp.net-core aspnetboilerplate
1个回答
0
投票

我没有设法重现该错误。但是,我设法创建了有效的示例。创建MWE的步骤

© www.soinside.com 2019 - 2024. All rights reserved.