Open Closed

What Project Depencies must be applied when Adding Blazor Server Module to Blazor Web App No Layer #9522


User avatar
0
marcs created

I installed my Blazor Server Module, created by Studio and Updated with CRUD by Suite. I added it to the Blazor Web App Project. My Module, called GravityPlatform.AccountManagement was added to GravityPlatform.Host and GravityPlatform.AccountManagement.Contracts added to GravityPlatform.Contracts. The GravityPlatform.AccountManagement.Blazor is added to nothing and neither is the GravityPlatform.AccountManagement.UI.

Can you guide me on what Should be mapped / added as dependancy and to what?

Currently, nothing appears on the menu at all. Note that I had imported the Module, Installaed the module per the preselected options. Not visible at all. - **Template**: app-nolayers - **Created ABP Studio Version**: 1.0.2 - **Current ABP Studio Version**: 1.0.2 - **Multi-Tenancy**: Yes - **UI Framework**: blazor - **Theme**: leptonx - **Theme Style**: system - **Theme Menu Placement**: side - **Run Install Libs**: Yes - **Run Bundling**: No - **Database Provider**: ef - **Database Management System**: sqlserver - **Create Initial Migration**: Yes - **Run Db Migrator**: Yes - **Social Login**: Yes - **Use Local References**: No - **Optional Modules**: * GDPR * FileManagement * TextTemplateManagement * LanguageManagement * AuditLogging * Chat * OpenIddictAdmin - **Selected Languages**: English, Deutsch (Deuthschland) - **Default Language**: English - **Create Command**: abp new GravityPlatform -t app-nolayers --ui-framework blazor --mobile --database-provider ef --database-management-system sqlserver --theme leptonx --no-tests --without-cms-kit --dont-run-bundling -chat -file-management


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

    To properly integrate your Blazor Server module (GravityPlatform.AccountManagement) into your Blazor Web App (app-nolayers template), you need to ensure the following dependencies and references are set up:

    1. Add Project References:

      • GravityPlatform.AccountManagement should be referenced by GravityPlatform.Host.
      • GravityPlatform.AccountManagement.Contracts should be referenced by GravityPlatform.Contracts.
      • GravityPlatform.AccountManagement.Blazor should be referenced by GravityPlatform.Web (or the main Blazor project).
    2. Module Dependencies:

      • In your main Blazor module class (e.g., GravityPlatformWebModule or similar), add a DependsOn attribute for GravityPlatform.AccountManagementBlazorModule:
        [DependsOn(
            typeof(GravityPlatformAccountManagementBlazorModule)
        )]
        public class GravityPlatformWebModule : AbpModule
        {
            // ...
        }
        
      • If you have a UI module (GravityPlatform.AccountManagement.UI), and it contains UI components, also add it as a dependency in the same way.
    3. Menu Contributor:

      • Ensure your module defines a MenuContributor and that it is registered. This is required for menu items to appear. If your module does not add menu items, nothing will show up by default.
    4. Bundling:

      • If your module has JS/CSS assets, ensure you run the bundling process or use the new Global Assets system if on ABP 9+.
    5. Migration and Permissions:

      • Make sure you have run the database migrations for your module.
      • Ensure the user/role you are testing with has the necessary permissions to see the menu and access the module.
    6. UI Registration:

      • GravityPlatform.AccountManagement.Blazor must be referenced by your main Blazor project and included as a dependency in the main module.

    Example summary:

    • Reference GravityPlatform.AccountManagement.Blazor in your main Blazor project.
    • Add DependsOn(typeof(GravityPlatformAccountManagementBlazorModule)) to your main module.
    • Ensure menu contributor is present and registered.
    • Run migrations and check permissions.

    If you follow these steps, your module's menu and pages should appear in your Blazor Web App.

    Sources:


    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.

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 11, 2025, 11:35