Overview
Hello Ninjas,
We all know that C# is one of the most popular programming languages. We will find lots of content regarding C# but there is only few infomentor blogs about one of most useful NuGet Package which is really helpful in our daily tasks related to C# development also I have shared why they are trending and most download packages.
So let’s start with major outlines.
What Are NuGet Packages?
A NuGet package is a single ZIP file with the . nupkg extension that contains compiled code (DLLs), other files related to that code, and a descriptive manifest that includes information like the package’s version number.
Detailed Information of NuGet Packages
Newtonsoft.json
- Provide from converting LINQ to JSON for manually reading and writing JSON
- Flexible JSON serializer for converting from .NET objects and JSON
- It is more faster than .NET’s built-in JSON serializers
- Write indented, easy-to-read JSON
- Convert JSON to and from XML
- Currently Supports
.NET Standard 2.0,
.NET 2,
.NET 3.5,
.NET 4,
.NET 4.5,
Silverlight,
Windows Phone and Windows 8 Store
The JSON serializer in Json.NET is more convenient when the JSON you are reading or writing maps closely to a .NET class.
LINQ to JSON is good in scenarios where you are only interested in getting values from JSON, when you don’t have a class to serialize or deserialize to,
or the JSON is totally different from your class and you need to manually read and write from your objects.
Serilog
Serilog is a . NET library has one good thing that it provides diagnostic logging to files, the console, and almost everywhere you would like. Serilog can be used in classic .NET Framework applications and for applications running on the greatest and latest versions of the framework.
You might have a question that what is diagnostic logging, So Basically, Diagnostic log files are files used to store message information which is generated by Oracle Business Intelligence servers.
Microsoft.EntityFrameworkCore
Entity Framework Core, it is the modern object-database mapper for .NET and it supports LINQ queries more on that , change tracking, updates, and also schema migrations. Entity Framework Core is also compatible with SQL Server, Azure SQL Database, SQLite, Azure CosmosDB, MySQL, PostgreSQL, and other databases through a provider plugin API as well.
Commonly Used Types
- Microsoft.EntityFrameworkCore.DbContext
- Microsoft.EntityFrameworkCore.DbSet
This Microsoft.Identity.Client package contains the binaries of the Microsoft Authentication Library for .NET also called MSAL.NET.
Microsoft.Identity.Client
It makes it easy to obtain tokens from the Microsoft identity platform for developers(formally Azure AD v2.0) so they can easily sign-in users that have their accounts belonging to certain organizations like work and school accounts, social identities Azure AD B2C and Microsoft personal accounts. These provided tokens gain access to Microsoft Cloud API and any other API secured by the Microsoft identity platform. This version supports adding authentication functionality to your .NET based client on Windows desktop (.NET 4.5+), UWP, .NET Core, Xamarin iOS and Xamarin Android etc.
Azure.Storage.Blobs
Azure Blob storage package is Microsoft’s object storage solution for the cloud and this package is optimized for storing massive amounts of unstructured data. Unstructured data means the kind of data that does not adhere to a particular data model or definition, such as text or binary data.
Key Concepts
Blob storage is designed for:
- Serving images or documents that can be directly to a browser.
- Storing files for distributed access.
- Streaming video and audio.
- Writing to log files.
- Storing data for archiving, backup and restore, disaster recovery.
- Storing data for analysis by an Azure-hosted service or on-premises.
Blob storage offers three types of resources:
- The storage account used via BlobServiceClient.
- A container in the storage account used through BlobContainerClient.
- A blob in a container used through the help of BlobClient.
AutoMapper
AutoMapper is a simple library that helps us to transform from one object type into another object. It is a convention-based object-to-object mapper that requires very little configuration so performance level high end. The object-to-object mapping works by transforming an input object of one type into an output object of a different type which is way lengthy and time consuming manually.
Swashbuckle.AspNetCore.Swagger
Swagger is a set of open-source tools , built around the OpenAPI Specification in a simple and readable manner. Swashbuckle is a NuGet package. It contains Swagger tools for documenting APIs built on Microsoft.NET platform, one of the most useful packages for losing APIs with end points and required details.
Rank | NuGet Package | Total Downloads | Current Version Down | Last Updated |
---|---|---|---|---|
1 | Newtonsoft.json | 2.4B | 87.9K | 01/09/2022 |
2 | Serilog | 571.8M | 893 | 25/10/2022 |
3 | Microsoft.EntityFrameworkCore | 525.7M | 30.9K | 07/10/2022 |
4 | Microsoft.Identity.Client | 349.8M | 215.7K | 01/10/2022 |
5 | Azure.Storage.Blobs | 79.2M | 96.9K | 18/10/2022 |
6 | AutoMapper | 322.3M | 694.8K | 01/10/2022 |
7 | Swashbuckle.AspNetCore.Swagger | 299.8M | 7.3M | 01/08/2022 |
Development ServicesGet Expert Assistance
Conclusion
At the end concluding this blog I hope you get helpful to you when it comes to extensive web development practices. There are still lots of NuGet packages which are not covered in this blog but you can find them on Nuget.