Open Closed

Layered Blazor WebApp Creates Modules when modular is selected however does not create the Blazor or Blazor WebAssembly elements or Insert or update Menu on create. #9495


User avatar
0
marcs created

Hi,

Layered Blazor WebApp Creates Modules when modular is selected however does not create the Blazor or Blazor WebAssembly elements or Insert or update Menu.

I also find when adding a module via Suite that it creates the Blazor Elements in the Module but does not add to Menu or Pages when installing.

- **Template**: app - **Created ABP Studio Version**: 1.0.1 - **Current ABP Studio Version**: 1.0.1 - **Tiered**: No - **Multi-Tenancy**: Yes - **UI Framework**: blazor-webapp - **Theme**: leptonx - **Theme Style**: system - **Theme Menu Placement**: side - **Run Install Libs**: Yes - **Database Provider**: ef - **Database Management System**: sqlserver - **Separate Tenant Schema**: No - **Create Initial Migration**: Yes - **Run Db Migrator**: Yes - **Mobile Framework**: none - **Public Website**: Yes - **Social Login**: Yes - **Include Tests**: Yes - **Kubernetes Configuration**: Yes - **Distributed Event Bus**: rabbitmq - **Use Local References**: No - **Optional Modules**: * GDPR * FileManagement * TextTemplateManagement * LanguageManagement * AuditLogging * Chat * OpenIddictAdmin - **Selected Languages**: English, Português (Brasil), Deutsch (Deuthschland) - **Default Language**: English - **Create Command**: abp new GravityPlatforms.WebApp -t app --ui-framework blazor-webapp --database-provider ef --database-management-system sqlserver --theme leptonx --public-website --without-cms-kit --sample-crud-page --dont-run-bundling -chat -file-management


3 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    When using ABP Studio or ABP Suite to create or add modules in a Blazor WebApp (with modularity enabled), the following behaviors are expected based on current ABP tooling:

    1. When you create a new module with modularity enabled, the backend and shared module projects are generated, but the Blazor (UI) elements (such as pages, components, or menu entries) may not be automatically created or registered in the main application's menu.
    2. When adding a module via ABP Suite, the Blazor UI elements (pages/components) are generated inside the module, but the Suite does not automatically update the main application's menu or navigation to include these new pages. You need to manually add menu items for the new module/pages.

    This is a known limitation and has been reported by other users. The ABP team has acknowledged that, especially in modular and layered setups, menu registration and page linking are not fully automated. You must manually update the menu (typically in the MenuContributor class of your main Blazor project) to add links to the new module's pages.

    To add a menu item for a new module page, update your MenuContributor like this:

    public class MyMenuContributor : IMenuContributor
    {
        public Task ConfigureMenuAsync(MenuConfigurationContext context)
        {
            var administration = context.Menu.GetAdministration();
            context.Menu.AddItem(
                new ApplicationMenuItem(
                    "MyModule",
                    "My Module",
                    "/my-module-page"
                )
            );
            return Task.CompletedTask;
        }
    }
    

    After adding the menu item, rebuild and run your application to see the new module/page in the navigation.

    This approach is currently required until ABP Studio/Suite automates menu and page registration for modular Blazor WebApp projects.

    Sources:

    • https://abp.io/docs/latest/studio/release-notes
    • https://abp.io/support/questions/4300

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    marcs created

    Can you point me in the direction of any guide instructing on the configurations for EFCore. As Adding Modules, installing to the solution, then using Suite to add tables and properties and then running migration and db update does not work. What must be done manually outside of studio to make this work?

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hello Marcs 👋,

    Sorry for the late reply, I missed this. We have a tutorial on modular monolith application development, you can complete it. Here is the tutorial: https://abp.io/docs/latest/tutorials/modular-crm

    After completing it, you will learn how to add a new module to the host/final application, how to develop it, and how it communicates with other modules.

    Best regards,
    Berkan Şaşmaz
    Developer Advocate https://www.berkansasmaz.com

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 14, 2025, 11:57