Skip to content

About

The Fusonic .NET Extensions project aggregates several thoughtfully designed, reusable class libraries, which can be used in modern .NET application development. Fusonic successfully uses these libraries in its own individual projects.

Resources

Stars

28 stars

Watchers

4 watching

Forks

Repository files navigation

Fusonic Extensions

Fusonic Extensions

Thoughtfully designed, reusable .NET libraries. Battle-tested in real Fusonic projects.

build nuget .NET 11 license

Packages · Getting started · Principles · Contributing · Migration


✨ Why Fusonic Extensions?

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!

🚀 Getting started

All packages are available on NuGet:

dotnet add package Fusonic.Extensions.Common

All packages share one common version, so mixing and matching is easy. The main branch targets .NET 11.0.

📦 Packages

Documentation is provided per package.

Application

Package What it does Docs
Fusonic.Extensions.Common Small helpers and common abstractions. 📖
Fusonic.Extensions.Mediator A simple mediator implementation. 📖
Fusonic.Extensions.Email Support for sending emails. 📖
Fusonic.Extensions.Hangfire Hangfire extensions, especially suited for CQRS development (out-of-band processing). 📖

Hosting & infrastructure

Package What it does Docs
Fusonic.Extensions.AspNetCore ASP.NET Core extensions: middlewares, utilities and more. 📖
Fusonic.Extensions.Hosting Services and extensions for hosting. 📖
Fusonic.Extensions.Aspire.Hosting Aspire AppHost extensions: group containers as a Docker Compose stack and keep secrets entered in the dashboard in the OS's secret store. 📖
Fusonic.Extensions.EntityFrameworkCore Extensions for EF Core. 📖

Testing

xUnit v3 based base classes with dependency injection support for SimpleInjector and Microsoft DI. All four packages share the unit test documentation.

Package What it does
Fusonic.Extensions.UnitTests Test base classes with dependency injection.
Fusonic.Extensions.UnitTests.EntityFrameworkCore Database support for unit tests using EF Core.
Fusonic.Extensions.UnitTests.EntityFrameworkCore.Npgsql Database tests using EF Core with PostgreSQL.
Fusonic.Extensions.UnitTests.EntityFrameworkCore.SqlServer Database tests using EF Core with Microsoft SQL Server.

🧭 Principles

🎯 Goals

  • Reusable class libraries with high quality and high reusability
  • Support quality and velocity in Fusonic projects
  • More quality through a strong testing focus
  • Stability

🚫 Non-goals

  • 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.

🏷️ Naming

Packages are named Fusonic.Extensions.*. ASP.NET Core specific extensions live in the AspNetCore namespace.

✅ What code can be added?

  • 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. virtual methods).

🛡️ Standards

🔗 Allowed base dependencies

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

🤝 Contributing

New APIs go through a lightweight design process:

  1. Create a proposal on GitLab.com (Fusonic developers) or GitHub.com (external developers).
  2. Describe the use cases and the API in detail (also in the merge request).
  3. Notify the Fusonic Extensions design board (David Roth, Johannes Hartmann).
  4. Discuss in the GitLab issue, the merge request or a design meeting.
  5. New APIs require the approval of at least one board member.
  6. New APIs should be communicated (announcement).

🔄 Migration

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

About

The Fusonic .NET Extensions project aggregates several thoughtfully designed, reusable class libraries, which can be used in modern .NET application development. Fusonic successfully uses these libraries in its own individual projects.

Resources

Stars

28 stars

Watchers

4 watching

Forks

Releases

Contributors

Languages