abp-modularity
/abp-modularity
ABP Framework v10.x (10.4–10.6) modularity: AbpModule, [DependsOn], module lifecycle, plugin modules, modular monolith. Use when creating a module, defining module dependencies, or building a modular architecture in ABP.
- Author
- burakdmir ↗
- Repository
- abp-skills ↗
- Licence
- MIT
- Last repository change
- 14.08.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 14.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
ABP Framework v10.x (10.4–10.6) modularity: AbpModule, [DependsOn], module lifecycle, plugin modules, modular monolith. Use when creating a module, defining module dependencies, or building a modular architecture in ABP.
Original author description
ABP Framework v10.x (10.4–10.6) modularity: AbpModule, [DependsOn], module lifecycle, plugin modules, modular monolith. Use when creating a module, defining module dependencies, or building a modular architecture in ABP.
How it works
- Trigger
- What Is Modularity
- Module Class
- Module Dependencies
- Creating a Module with the CLI
- Installing a Module
- Module Extending
- Modular Monolith
- Related
SKILL.md preview
---
name: abp-modularity
description: "ABP Framework v10.x (10.4–10.6) modularity: AbpModule, [DependsOn], module lifecycle, plugin modules, modular monolith. Use when creating a module, defining module dependencies, or building a modular architecture in ABP."
---
# ABP Framework — Modularity
A guide to modular application development in ABP Framework v10.x (10.4–10.6). The module system, dependency management, plugin modules, and best practices.
## Trigger
- "ABP modularity"
- "create an ABP module"
- "ABP DependsOn"
- "ABP plugin module"
- "ABP modular monolith"
- "ABP module dependency"
## What Is Modularity
ABP supports building fully modular applications and systems. Each module can contain its own entities, services, database integration, APIs, and UI components.
## Module Class
```csharp
[DependsOn(
typeof(AbpAspNetCoreMvcModule),
typeof(AbpEntityFrameworkCoreModule),
typeof(AbpAutofacModule)
)]
public class BlogModule : AbpModule
{
public override void PreConfigureServices(ServiceConfigurationContext context) { }
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpDbConnectionOptions>(options =>
{
options.ConnectionStrings.Default = "...";
});
}
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
var app = context.GetApplicationBuilder();
var env = context.GetEnvironment();
if (env.IsDevelopment())
app.UseDeveloperExceptionPage();
app.UseMvcWithDefaultRoute();
}
public override void OnApplicationShutdown(ApplicationShutdownContext context) { }
}
```
### Lifecycle Methods
| Method | When It Runs | Usage |
|---|---|---|
| `PreConfigureServices` | Before all `ConfigureServices` | Early configuration |
| `ConfigureServices` | Service registration | DI registration, module settings |
| `PostConfigureServices` | After all `ConfigureServices` | Late configuration |
| `OnPreApplicationInitialization` | Before init | Pre-init logic |
| `OnApplicationInitialization` | Application startup | Middleware pipeline |
| `OnPostApplicationInitialization` | After init | Post-init logic |
| `OnApplicationShutdown` | Application shutdown | Cleanup logic |
## Module Dependencies
```csharp
[DependsOn(typeof(AbpAspNetCoreMvcModule), typeof(AbpAutofacModule))]
public class BlogModule : AbpModule { }
```
At startup, ABP inspects the dependency graph and starts/shuts down modules in the correct order.
## Creating a Module with the CLI
```bash
abp new-module Acme.Blog -t module:ddd
abp new-module Acme.Blog --modern
abp new-module Acme.Blog -t module:ddd -ts Acme.Crm.sln
abp new-module Acme.Blog -t module:ddd -d ef -u mvc
```
## Installing a Module
```bash
abp install-module Volo.Blogging
abp install-local-module ../Acme.Blogging
abp add-package Volo.Abp.Blogging
```
## Module Extending
```csharp
ObjectExtensionManager.Instance
.MapEfCoreProperty<IdentityUser, string>(
"Title",
(entityBuilder, propertyBuilder) =>
{
propertyBuilder.HasMaxLength(64);
}
);
```
## Modular Monolith
```bash
abp new Acme.Crm --template app-nolayers --modern --modular
```
## Related
[Framework](../abp-framework/SKILL.md) · [Dependency Injection](../abp-dependency-injection/SKILL.md) · [Dependency Rules](../abp-dependency-rules/SKILL.md) · [Microservices](../abp-microservices/SKILL.md) · Docs: https://abp.io/docs/latest/framework/architecture/modularity/basics
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · burakdmir/abp-skills | 100 | MIT |
| burakdmir/abp-skills | 100 | MIT |
Database snapshot: 13.11.2026 · package version f254308dbddf (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100define-application-modules
Define and wire up an ABP module: the AbpModule class, [DependsOn] dependencies, service registration, options configuration, lifecycle hooks, and conventional DI. USE FOR: creating an AbpModule class, declaring [DependsOn] dependencies, registering services in ConfigureServices… - 98create-plugin-modules
Load ABP modules at runtime as plug-ins instead of referencing their assemblies directly, via AbpApplicationCreationOptions.PlugInSources. USE FOR: configuring options.PlugInSources with AddFolder / AddFiles / AddTypes (or a custom IPlugInSource), building a class-library… - 100modularity-design
Designs modular high-level architectures from functional requirements and produces design documents for each module. Use when designing a new system, creating architecture documentation, or producing module-level design specs with integration contracts and test specifications. - 100modular-monolith-generator
Structure a .NET app as a modular monolith — independent modules with enforced boundaries, public contracts, and in-process messaging between modules. Use this skill whenever the user wants a modular monolith, module boundaries, to split a monolith into modules,… - 98abp-cli
ABP Framework v10.x (10.4–10.6) CLI and tooling: abp new, add-package, generate-proxy, ABP Studio, ABP Suite, --modern flag. Use when working with ABP CLI commands, creating projects, adding packages, or generating proxies. - 100abp-modules
ABP Framework v10.x (10.4–10.6) pre-built application modules: Identity, Account, OpenIddict, Tenant/Permission/Setting/Feature Management, Audit Logging, CMS Kit, SaaS, Payment and more — which module solves what, how to install it, free vs Pro. Use when choosing, installing,…