Open Closed

How to create module with host folder just like before? #10174


User avatar
0
zhongfang created

Two years ago, when the ABP Studio is not birthed. We can create a ABP module with ABP suite. Every module has three folders, just host/src/test We can start such as Blazor.Server.Host to debug in Visual Studio.

Now, where to find this function?

In ABP Studio, I create a new solution. clicked as Module in final step. But ... without host folder.


2 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    1. Solution
    • In ABP Studio/ABP v10, the “Application Module” template no longer includes a Host application by default. A module solution only contains src and test folders. This is by design for reusable modules.
    • To run/debug your module like before, create or use a Host application and install/import your module into it.

    Do one of the following: A) Create a Host app and import your module

    1. In ABP Studio: File -> New Solution -> choose Layered Web Application (e.g., Blazor Server).
    2. Open Solution Explorer -> right-click the Host app solution -> Imports -> Add -> select your module package (the module solution you created).
    3. ABP Studio will add project/package references. Run the Host from Solution Runner or open the Host’s .sln in Visual Studio and start e.g. Blazor.Server.Host.

    B) Start from an Empty solution, add a module, then add a Host app

    1. File -> New Solution -> Empty solution.
    2. Right-click the solution -> Add -> Application Module (creates src/test only).
    3. Right-click the solution -> Add -> Application (Single-layer or Layered, Blazor Server UI as needed).
    4. In the Host app, reference your module (via Imports or by adding the module projects to the Host and adding references), then run the Host.

    Notes:

    • The old ABP Suite “Create module with host/src/test” option was replaced in ABP Studio with a cleaner separation: modules are reusable; hosts are separate apps.
    • For Angular modules, the template also provides an angular/dev-app for quick UI development; for Blazor, create a Host app as above.
    1. Sources
    • https://abp.io/docs/10.0/solution-templates/application-module/ (Solution structure: src/test, Host applications are not included; import into a host)
    • https://abp.io/docs/10.0/studio/solution-explorer (Importing modules into applications)
    • https://abp.io/docs/latest/solution-templates (Startup solution templates overview)

    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
    maliming created
    Support Team Fullstack Developer

    hi

    You can check this issue: https://github.com/abpframework/abp/issues/20365#issuecomment-2298072482

    Thanks.

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.1.0-preview. Updated on December 03, 2025, 13:19
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.