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)
-
0
- 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
- In ABP Studio: File -> New Solution -> choose Layered Web Application (e.g., Blazor Server).
- Open Solution Explorer -> right-click the Host app solution -> Imports -> Add -> select your module package (the module solution you created).
- 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
- File -> New Solution -> Empty solution.
- Right-click the solution -> Add -> Application Module (creates src/test only).
- Right-click the solution -> Add -> Application (Single-layer or Layered, Blazor Server UI as needed).
- 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.
- 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.
-
0
hi
You can check this issue: https://github.com/abpframework/abp/issues/20365#issuecomment-2298072482
Thanks.