Open Closed

How to add a module that I created using ABP Suite in one solution to a different solution. #7123


User avatar
0
innovawide created

How to add a module that I created using ABP Suite in one solution to a different solution. * ABP Framework version:7.2.1

  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

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

    Hi,

    Suite doesn't support this, you need to add your module to solution manually

  • User Avatar
    0
    innovawide created

    I need to know how I can manually add it to another solution. After integrating it into the new solution, can I modify it using a suite or not?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    can I modify it using a suite or not?

    Of course, you can.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Add Module's Application project reference to another solution's Application project.

    And configure the module dependencies

    [DependsOn(
        .....
        typeof(ModuleApplicationModule)
        )]
    public class AnotherSolutionApplicationModule : AbpModule
    {
    }
    

    Do the same thing above for other projects(Application.Contract , Domain , Domain.Shared, EntityFrameworkCore, HttpAPi, HttpApi.Client ...)

    Config EntityFrameworkcore project

    public class AnotherSolutionDbContext: ...
    {
        protected override void OnModelCreating(ModelBuilder builder)
        {
            builder.ConfigureModule();
        }
    }
    
  • User Avatar
    0
    innovawide created

    What about the frontend side (Angular)? Will it be generated automatically or what?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    There two ways to add Angular part.

    1. Publish angular code to NPM or NPM npm server, Then install it via NPM package
    2. Copy code to the another solution's Angular project.

    Config the Angular module, you can refer to : https://docs.abp.io/en/commercial/latest/modules/chat#angular-ui

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11