C# libraries
28 libraries across 9 topics
28 libraries
Entity Framework Core
Entity Framework Core is Microsoft's official ORM for .NET, translating LINQ queries into SQL with change tracking, migrations and relationship management.
Databases & Caching3 examplesDapper
Dapper is a micro-ORM that maps SQL results onto objects with almost no overhead, leaving the SQL entirely under your control.
Databases & Caching3 examplesSerilog
Serilog is a structured logging library for .NET that treats log events as data with named properties rather than formatted strings.
Observability2 examplesPolly
Polly is a .NET resilience library providing retry, circuit breaker, timeout, bulkhead isolation, rate limiting and fallback as composable policies.
Developer Utilities2 examplesFluentValidation
FluentValidation defines validation rules in a strongly-typed fluent API, separate from the model itself.
Developer Utilities2 examplesxUnit.net
xUnit.net is the most widely used .NET testing framework, with a minimal API, parallel execution by default and constructor-based test setup.
Testing2 examplesMoq
Moq is the most widely used .NET mocking library, creating test doubles for interfaces and virtual members with a LINQ-based setup syntax.
Testing2 examplesFluentAssertions
FluentAssertions provides readable, chainable assertions for .NET with failure messages that explain precisely what differed.
Testing2 examplesMediatR
MediatR implements the mediator pattern for .NET, dispatching requests to handlers and decoupling callers from implementations, with a pipeline for cross-cutting behaviour.
Developer Utilities2 examplesAutoMapper
AutoMapper maps between object types by convention, removing hand-written property assignments between entities and DTOs.
Developer Utilities2 examplesJson.NET
Json.NET (Newtonsoft.Json) is the long-established JSON library for .NET, with extensive customisation, LINQ to JSON and broad format tolerance.
Serialization & Formats3 examplesAutofac
Autofac is a mature .NET IoC container offering features beyond the built-in one: assembly scanning, decorators, property injection and fine-grained lifetime scopes.
Developer Utilities2 examplesHangfire
Hangfire runs background jobs in .NET with persistent storage, automatic retries, scheduling and a web dashboard — no separate service required.
Developer Utilities2 examplesMassTransit
MassTransit is a distributed application framework for .NET, abstracting over RabbitMQ, Azure Service Bus, Amazon SQS and Kafka with sagas and routing built in.
Messaging & Streaming2 examplesRefit
Refit turns a C# interface into a REST client, generating the HTTP calls from attributes at build time with no reflection at runtime.
Web & HTTP2 examplesBenchmarkDotNet
BenchmarkDotNet is a .NET benchmarking library that handles warm-up, statistics, memory measurement and multi-runtime comparison automatically.
Testing2 examplesSwashbuckle
Swashbuckle generates OpenAPI documents and a Swagger UI from ASP.NET Core controllers, models and XML documentation comments.
Web & HTTP2 examplesCsvHelper
CsvHelper reads and writes CSV files in .NET with class mapping, type conversion and streaming for files larger than memory.
Data & Analytics2 examplesBogus
Bogus generates realistic fake data for .NET — names, addresses, emails, dates and text — for tests, seeding and demonstrations.
Testing2 examplesImageSharp
ImageSharp is a fully managed, cross-platform 2D graphics library for .NET, handling decoding, resizing, format conversion and drawing with no native dependencies.
UI & Graphics2 examplesNSubstitute
NSubstitute is a mocking library for .NET with a deliberately minimal syntax, aiming to read as natural language rather than as configuration.
Testing2 examplesSignalR
SignalR adds real-time bidirectional communication to ASP.NET Core, negotiating WebSockets where available and falling back automatically.
Messaging & Streaming2 examplesQuartz.NET
Quartz.NET is a full-featured job scheduler for .NET with cron triggers, persistent job stores, clustering and misfire handling.
Developer Utilities2 examplesHumanizer
Humanizer converts values into human-readable forms — relative dates, pluralisation, number words, byte sizes and cased strings.
Developer Utilities2 examplesScrutor
Scrutor adds assembly scanning and decoration to the built-in .NET dependency injection container, without replacing it.
Developer Utilities2 examplesFastEndpoints
FastEndpoints is a REST API framework for .NET built on minimal APIs, using the REPR pattern — one class per endpoint with its own request and response types.
Web & HTTP2 examplesMapperly
Mapperly is a source generator that produces object mapping code at compile time, with no reflection and no runtime cost.
Developer Utilities2 examplesNLog
NLog is a flexible .NET logging platform with rich routing rules, many targets and configuration that can be changed without recompiling.
Observability2 examples
Coverage by topic
What the C# ecosystem is deepest in — a reasonable proxy for what the language is used for.
- Developer Utilities10
- Testing6
- Web & HTTP3
- Databases & Caching2
- Messaging & Streaming2
- Observability2
- Data & Analytics1
- Serialization & Formats1
- UI & Graphics1

