.NET

Post Image

Using Source Generators for JSON Serialization in .NET

.NET 6 introduced a source generator for System.Text.Json. This post explores how to use it to increase JSON serialization performance significantly.System.Text.Json is first introduced in .NET Core 3.0 as a lightweight, high-performance JSON library, shipped as part of the .NET Core SDK. It is designed to be a better-fit for ASP.NET Core applications, which previously relied on Newtonsoft.Json. System.Text.Json focuses more on performance and simplicity and it’s only getting faster with every .NET release.Traditionally, JSON serialization in .NET is done...

Read
Post Image

Built-in Container Support in .NET

.NET 7 introduced built-in container support for .NET applications. This feature allows you to build and run .NET applications even without Dockerfile.Earlier, in our Docker Beginner Series, we have seen how to use Dockerfile to build and run container images. Similarly, we can use Dockerfile to build and run .NET applications as container images. But, with .NET 7, Container images are now a supported publish target.In .NET 7, we have built-in container support for .NET applications, that allows you to...

Read