Open Closed

Common library for MAUI Blazor and Blazor #6638


User avatar
0
slebleu created
  • ABP Framework version: v8.0.2
  • UI Type: Blazor WASM and MAUI Blazor
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

Hi,

We would like to have an application that runs in Blazor and in MAUI Blazor as well. To do so, we would like to use a Razor Class Library, is there an example on how to configure the template/Crud generation so the UI parts would be created inside the Razor Class library? That way, both application (Web and Mobile) would be using the same UI without duplicating our code.

I'm also curious on how this is handled internally for you own template since both MAUI Blazor and Blazor are using some common code.

Thanks


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Normally you can directly reference the Blazor component library without problem.

    is there an example on how to configure the template/Crud generation so the UI parts would be created inside the Razor Class library

    Suite currently does not support generating pages for the Razor Class library You can create a module template and reference it

  • User Avatar
    0
    slebleu created

    Hi thank you for your answer.

    Is there an example of how to create and use a module for that type of case?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Yes, we have a document: https://docs.abp.io/en/commercial/latest/abp-suite/create-module-solution#adding-your-new-abp-module-to-your-main-solution

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11