Top 10 .NET Core Libraries Every Web Developer Should Know

Open-source libraries significantly reduce developers’ work and allow them to create and manage their applications easily.

In this article, I’ll describe some of the most useful .NET Core libraries that every developer needs to know:

Swashbuckle

Swashbuckle is a library that generates beautiful API documentation, including the Swagger UI, to explore and test API operations. This can be configured in your project and it will take only a few minutes to get started.

GitHubhttps://github.com/domaindrivendev/Swashbuckle.AspNetCore

License: MIT

Stars: 2.8k

Polly

Polly , according to its website, “allows developers to express resilience and transient fault-handling policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner.”

GitHub: https://github.com/App-vNext/Polly

License: BSD-3-Clause

Stars: 6.9k

AutoMapper

AutoMapper is a popular object-to-object mapper library used to map the properties of two different objects. This will reduce developer work and help us avoid unwanted code when mapping values.

GitHub: https://github.com/AutoMapper/AutoMapper

License: MIT

Stars: 6.9k

SaasKit

Building multitenant applications is quite difficult. But this library makes adding multitenancy as simple as possible. This library uses the concept of adding middleware using the OWIN interface. The author of this library has written many blog posts on how to configure SaasKit. Check the blog out for more details.

GitHub: https://github.com/saaskit/saaskit

License: Apache License 2.0

Stars: 5.6k

AspNetCore.Diagnostics.HealthChecks

AspNetCore.Diagnostics.HealthChecks

This project is a BeatPulse liveness checker and UI port for the new feature included in the ASP.NET Core 2.2 version of Microsoft Health Checks. Using this library, we can monitor health checks for all apps, databases, APIs, Azure services, etc. This library can create beautiful UIs to display health checks.

GitHub: https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks

License: Apache License 2.0

Stars: 1.1k

MailKit

MailKit is a cross-platform mail client library built on top of MimeKit. The goal of this project is to provide the .NET world with robust, fully featured, and RFC-compliant SMTP, POP3, and IMAP client implementations.

GitHub: https://github.com/jstedfast/MailKit

License: MIT

Stars: 3k

CacheManager

CacheManager is an open-source abstraction layer written in C# for. NET. It supports different providers of caches and incorporates other advanced features.

The CacheManager package’s main objective is to make life easier for developers to handle even very complex caching scenarios.

GitHub: https://github.com/MichaCo/CacheManager

License: Apache-2.0

Stars: 1.6k

Dapper

Dapper is a simple object mapper for .NET. This high-performance micro-ORM supports SQL Server, MySQL, Sqlite, SqlCE, Firebird, and so on. It can be used by simply installing the NuGet package, which extends the IDbConnection interface functionality. The familiar Stack Overflow site is using this library.

GitHub: https://github.com/StackExchange/Dapper

License: Apache-2.0

Stars: 11.8k

Ocelot

Ocelot is a. NET platform API gateway. This project is intended for people who use .NET or Core to run a microservice or service-oriented architecture that requires a unified system entry point. It will work with anything that uses HTTP. It runs on any ASP.NET Core-supported platform.

GitHub: https://github.com/ThreeMammals/Ocelot

License: MIT

Stars: 4.5k

NLog

NLog is an open-source logging tool for use in applications for .NET and Xamarin. It’s free, cross-platform, and easy to set up and expand. NLog is a great easy-to-use logging application with excellent log routing and management features, making it a good choice when selecting a high-performance logging system.

GitHub: https://github.com/NLog/NLog

License: BSD 3-Clause

Stars: 4.2k

Conclusion

I hope this blog has introduced you to some of the key open-source libraries of .NET. Besides these, you can find some more important libraries on this GitHub page.

.Net / by

Post Author: admin

Avatar
I am Software Engineer, Microsoft MVP for Developer Security and ASPInsider. I am regular conference speaker, frequent blogger at learnfreecoding.com and author of the OWASP Top 10 for .NET. I worked for lots of companies throughout the last decade and is keen to share my knowledge with the community. I have broad and deep knowledge of the Microsoft stack with a special interest on web technology and the cloud. for consultancy email me on info@learnfreecoding.com