Search code examples
asp.net.net-coremodel-view-controllerblazorarea

It's possible use Areas in Blazor Server App?


I'm building a solution with blazor server app, and i need to create an area like MVC application. It's possible create solution in blazor using areas?

Anyone have information or something to use for learn about it?


Solution

  • When you want the Areas for your Blazor pages (razor components) then: No, but you can easily use folders to achieve the same.

    When you want Areas to hold razor pages (or MVC views) then create a new (scratch) Blazor server project and select Authentication=Individual accounts. That template has everything you need.