- Loading...
Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

Using the ReferenceAssemblies NuGet package to build .NET Framework libraries on Linux, without installing Mono
In this post I show how to build .NET projects that target the full .NET Framework on Linux with the Microsoft.NETFramework.ReferenceAssemblies NuGet package…

Exploring the .NET Core MCR Docker files (updated): runtime vs aspnet vs sdk
In this post, I look at the various Docker base images available for .NET Core development on MCR, how they differ, and when you should use each of them.…

Why is string.GetHashCode() different each time I run my program in .NET Core?
In this post I discuss string.GetHashCode(), why it's randomised, and hash-attacks. I also provide a deterministic implementation you can use when it's safe.…

Using multiple instances of strongly-typed settings with named options in .NET Core 2.x
In this post I describe how you can register multiple instances of a strongly-typed settings object in the ASP.NET Core DI container using named options.…

Adding decorated classes to the ASP.NET Core DI container using Scrutor
In this post I show how to do service decoration with Scrutor, where services "wrap" another implementation of the service…

Using Scrutor to automatically register your services with the ASP.NET Core DI container
In this post I describe how to use the open source library Scrutor to add assembly scanning capabilities to the ASP.NET Core DI container.…

