Thoughtfully designed, reusable .NET libraries. Battle-tested in real Fusonic projects.
Packages · Getting started · Principles · Contributing · Migration
Fusonic Extensions aggregates small, focused class libraries for modern .NET application development. We use them in our own projects every day, and because we believe they are useful for the broader community, they are open source under a permissive license.
| 🧩 Pick what you need | Every package stands on its own. Use one, use all. |
| 💉 Two containers, zero abstractions | Packages register directly with SimpleInjector and Microsoft.Extensions.DependencyInjection. |
| 🧪 Tested | All code is unit-tested, including against real databases and mail servers via Testcontainers. |
| 🔒 Stable | Semantic versioning, as few breaking changes as possible, yearly release cycle aligned with .NET. |
| 🪶 Lean | We reference as few dependencies as we can get away with. |
Note
Primary development takes place in a private repository on GitLab.com. This GitHub project is updated daily, but does not include the issues managed on GitLab. Issues and pull requests are very welcome here as well!
All packages are available on NuGet:
dotnet add package Fusonic.Extensions.CommonAll packages share one common version, so mixing and matching is easy. The main branch targets .NET 11.0.
Documentation is provided per package.
| Package | What it does | Docs |
|---|---|---|
| Small helpers and common abstractions. | 📖 | |
| A simple mediator implementation. | 📖 | |
| Support for sending emails. | 📖 | |
| Hangfire extensions, especially suited for CQRS development (out-of-band processing). | 📖 |
| Package | What it does | Docs |
|---|---|---|
| ASP.NET Core extensions: middlewares, utilities and more. | 📖 | |
| Services and extensions for hosting. | 📖 | |
| Aspire AppHost extensions: group containers as a Docker Compose stack and keep secrets entered in the dashboard in the OS's secret store. | 📖 | |
| Extensions for EF Core. | 📖 |
xUnit v3 based base classes with dependency injection support for SimpleInjector and Microsoft DI. All four packages share the unit test documentation.
- Reusable class libraries with high quality and high reusability
- Support quality and velocity in Fusonic projects
- More quality through a strong testing focus
- Stability
- We do not implement framework code. We focus on reusable class libraries.
- No DI abstractions: packages register their services directly with SimpleInjector and Microsoft.Extensions.DependencyInjection.
Packages are named Fusonic.Extensions.*. ASP.NET Core specific extensions live in the AspNetCore namespace.
- Reusable: abstract logic that is generally valid and meaningful.
- Stable: code should not be volatile and, at best, tested. The public API should change as little as possible.
- Extensible: where reasonably practicable, logic should be flexible (e.g.
virtualmethods).
- All code must be unit-tested.
- Breaking changes are avoided. We use semantic versioning.
- Major releases are aligned with the yearly .NET release schedule.
If possible, only .NET BCL libraries are referenced, especially for abstract code. We try to reference as few dependencies as possible. If absolutely necessary for the meaningfulness of a package, we agree on these core technologies:
- SimpleInjector
- Scrutor (for Microsoft.Extensions.DependencyInjection)
- Entity Framework Core
New APIs go through a lightweight design process:
- Create a proposal on GitLab.com (Fusonic developers) or GitHub.com (external developers).
- Describe the use cases and the API in detail (also in the merge request).
- Notify the Fusonic Extensions design board (David Roth, Johannes Hartmann).
- Discuss in the GitLab issue, the merge request or a design meeting.
- New APIs require the approval of at least one board member.
- New APIs should be communicated (announcement).
Breaking changes between major versions and the changes they require in your code are described in the migration guides:
Made with ❤️ by Fusonic · Licensed under the MIT License