Best packages in .NET

PackageWhat it does
Serilog.AspNetCoreStructured logging to sinks like console, file, DB, cloud services
Newtonsoft.JsonSerialise and deserialise JSON
QuestPDFGenerate PDFs using its fluent API
FluentValidationValidation using its fluent API
HangfireRun background jobs with built-in dashboard
PollyResilience strategies such as retry, circuit breaker, timeout, rate limiter etc
CsvHelperRead and write CSV files
MailKitSend emails
BcryptHash and validate passwords
gRPCgRPC for .NET

Database and cache

PackageWhat it does
DapperRun raw queries and stored procedures and map results to objects
StackExchange.RedisConnect to Redis, Garnet, Valkey
Pomelo.EntityFrameworkCore.MySqlConnect to MySQL and Maria database
NpgsqlConnect to PostgreSQL
OpenSearch.ClientConnect to and CRUD OpenSearch
FusionCacheL1, L1+L2 or L2 cache

Unit tests

PackageWhat it does
NUnitUnit test runner
NSubstituteUnit test mocking
FakerGenerate fake data for tests

Share this Post