Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

MVC 6 Areas - Scaffolding doesn't work and nor does asp-* code

$
0
0

I created an Area in my MVC6 project and when right clicking on the new controllers folder and selecting Add New Scaffold Item, and controller is created correctly (except I have to manually the [Area("Admin")] to the top, but all view are created in the root Views folder.

Manually creating any views in the admin folder and using the asp-action or any other asp-* items does not compile at all.

When you submit a form, it does nothing.  No method is added, no antiforgery token.

Are Areas broken for now, not recommended, or am I using the incorrect framework(DNX Core)?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>