0% found this document useful (0 votes)
54 views15 pages

13 Libraries in Every Developer Should Know About: With Alternatives

This document discusses 13 libraries that are useful for ASP.NET Core development. For each library, it provides a brief description of its functionality and an alternative option. The libraries covered are JWTBearer, Newtonsoft.Json, SwashBuckle, Serilog, Entity Framework Core, Mapster, Fluent Validation, MVC Versioning, Refit, StackExchange Redis, MediatR, xUnit.net, and Moq.

Uploaded by

Ahmad Hammad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views15 pages

13 Libraries in Every Developer Should Know About: With Alternatives

This document discusses 13 libraries that are useful for ASP.NET Core development. For each library, it provides a brief description of its functionality and an alternative option. The libraries covered are JWTBearer, Newtonsoft.Json, SwashBuckle, Serilog, Entity Framework Core, Mapster, Fluent Validation, MVC Versioning, Refit, StackExchange Redis, MediatR, xUnit.net, and Moq.

Uploaded by

Ahmad Hammad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

13 Libraries in

ASP.NET Core
Every Developer
Should Know
About

With Alternatives
Aram Tchekrekjian @AramT87
Microsoft ASP.NET Core
Authentication JwtBearer

Build a solid JWT Authentication in


your ASP.NET Core Web API with a
cryptographically secure JWT
Generation and Validation.

Alternative?
OpenIddict or IdentityServer4
(DuendeSoftware) for Security Token
Services (STS)
Auth0 or KeyCloak for Identity
Providers (IdP) @AramT87
Newtonsoft.Json

A high-performance library to easily


convert between JSON and .NET
Objects, create and parse JSON
Objects, query JSON objects using
LINQ and provide formatting HTTP
Responses.

Alternative?
System.Text.Json

@AramT87
SwashBuckle
ASP.NET Core Swagger

Makes your RESTful APIs discoverable


by generating OpenAPI Specification
file, it can enable your clients visualize
and test your APIs with an elegant
web-based interface (Swagger UI).

Alternative?
NSwag
@AramT87
ASP.NET Core Serilog

Write structured logging on a wide


range of outputs (sinks) with the
ability to write your own sink,
distinguish between the levels of logs
and fine grain the formatting for your
logs to match your logging
requirements.

Alternative?
Log4Net
@AramT87
Entity Framework Core

A widely-popular and easy to use


Object-relational Mapping library, it
provides you with a convenient way to
build a comprehensive data access
layer that can connect to virtually any
relational or non-relational databases.

Alternative?
Dapper

@AramT87
Mapster

Rely on a simple yet powerful, blazing-


fast, configuration-based tool to
handle the objects mapping for you.
Supports Fluent API, Nested
Mappings, Immutable Collections.

Alternative?
AutoMapper
@AramT87
ASP.NET Core Fluent
Validation

Apply seamless and easy validations


on models and entities with strongly-
typed validation rules based on the
Fluent API.

Alternative?
.NET Data Annotations
(System.ComponentModel.DataAnnotations)
@AramT87
ASP.NET Core MVC
Versioning

Apply versioning for your RESTful


APIs to swiftly release new changes
on your APIs while not affecting your
current clients.

Alternative?
Asp.Versioning.Http

@AramT87
Refit

Handle and manage all the API Calls to


other web services with a clean
interface and simplified
implementation for interceptors.
Refit was inspired by the widely-
popular Android/Java Retrofit library,
and now considered as the Retrofit of
.NET.

Alternative?
RestSharp
@AramT87
StackExchange Redis

A higly-reliable and scalable solution


for Distributed Caching, Streaming
and Messaging. Redis is an in-memory
data store that can store different
formats of data structures, like strings,
hashes, dictionaries, lists and others.

Alternative?
NCache

@AramT87
MediatR

Decouple your intra communicating


components by introducing a
Mediator object to handle all
communications.
With the support of requests,
responses, separation of commands
and queries, notifications and events
you can easily implement the
Mediator Design Pattern.

Alternative?
Brighter @AramT87
xUnit.net

Support your test-driven development


approach with tests that are tailored
towards Facts and Theories with the
support of range of input data.
This great testing tool and library
enables you to run your tests on
multiple .NET frameworks, to check
your code compatibility with your
targeting versions.

Alternative?
NUnit @AramT87
Moq

Easily build strongly-typed Mocks for


your classes and interfaces by
leveraging lambda expressions to
support you to build solid tests and
simplify your test-driven development.

Alternative?
JustMock

@AramT87
Thank You
Follow me for more content

Aram Tchekrekjian
AramT87

CodingSonata.com/newsletters

You might also like