Euhen.AppBuilder 2.1.0

dotnet add package Euhen.AppBuilder --version 2.1.0
                    
NuGet\Install-Package Euhen.AppBuilder -Version 2.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Euhen.AppBuilder" Version="2.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Euhen.AppBuilder" Version="2.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Euhen.AppBuilder" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Euhen.AppBuilder --version 2.1.0
                    
#r "nuget: Euhen.AppBuilder, 2.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Euhen.AppBuilder@2.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Euhen.AppBuilder&version=2.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Euhen.AppBuilder&version=2.1.0
                    
Install as a Cake Tool

Euhen.AppBuilder

Core package for building modular .NET applications. Provides a structured way to organise service registrations into self-contained modules, keeping your Program.cs clean and your application logic well-separated.

Installation

dotnet add package Euhen.AppBuilder

How it works

EuhenAppBuilder acts as a thin orchestration layer on top of IHostApplicationBuilder. You register service modules that encapsulate DI configuration. Each module is applied immediately upon registration.

Getting started

Step 1 — Create a service module

Implement IServiceModule to encapsulate the service registration for a feature or concern.

using Euhen.AppBuilder.Modules;

public class DatabaseModule : IServiceModule
{
    public void Configure(IHostApplicationBuilder builder)
    {
        builder.Services.AddDbContext<AppDbContext>(options =>
            options.UseSqlServer(builder.Configuration.GetConnectionString("Default")));
    }
}

Step 2 — Register the module in Program.cs

var builder = Host.CreateApplicationBuilder(args);

new EuhenAppBuilder(builder)
    .AddServiceModule(new DatabaseModule());

var app = builder.Build();
app.Run();

When custom configuration is needed outside of a module, use ConfigureServices to apply inline configuration directly:

new EuhenAppBuilder(builder)
    .AddServiceModule(new DatabaseModule())
    .ConfigureServices(b => b.Services.AddSingleton<IMyService, MyService>());

Terminology

Term Description
EuhenAppBuilder Wraps IHostApplicationBuilder and coordinates service module registration.
IServiceModule Contract for a module that registers services into the DI container. Configure is called immediately when the module is added.
AddServiceModule Registers and immediately applies an IServiceModule.
ConfigureServices Applies inline service configuration without needing a dedicated module class.

License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Euhen.AppBuilder:

Package Downloads
Euhen.AppBuilder.Web

ASP.NET Core extensions for building modulair web applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0 265 4/6/2026
2.0.0 133 4/6/2026
1.0.0 127 4/6/2026
0.1.0 134 4/6/2026