Best packages in .NET
Package | What it does |
---|---|
Serilog.AspNetCore | Structured logging to sinks like console, file, DB, cloud services |
Newtonsoft.Json | Serialise and deserialise JSON |
QuestPDF | Generate PDFs using its fluent API |
FluentValidation | Validation using its fluent API |
Hangfire | Run background jobs with built-in dashboard |
Polly | Resilience strategies such as retry, circuit breaker, timeout, rate limiter etc |
CsvHelper | Read and write CSV files |
MailKit | Send emails |
Bcrypt | Hash and validate passwords |
gRPC | gRPC for .NET |
Database and cache
Package | What it does |
---|---|
Dapper | Run raw queries and stored procedures and map results to objects |
StackExchange.Redis | Connect to Redis, Garnet, Valkey |
Pomelo.EntityFrameworkCore.MySql | Connect to MySQL and Maria database |
Npgsql | Connect to PostgreSQL |
OpenSearch.Client | Connect to and CRUD OpenSearch |
FusionCache | L1, L1+L2 or L2 cache |
Unit tests
Package | What it does |
---|---|
NUnit | Unit test runner |
NSubstitute | Unit test mocking |
Faker | Generate fake data for tests |