Dotnet

Mapperly Tutorial: .NET Source Generator Object Mapping

Mapperly is a .NET source generator for object-to-object mapping. You declare the mapping methods you want, and it writes the implementation for you at compile …

Jul 2023
Dotnet

Fix NuGet 401 Unauthorized on a Private Azure DevOps Feed

Restoring packages from a private NuGet repository in JetBrains Rider using Azure DevOps kept failing for me with a “401 Unauthorized” error. Here are the exact …

Jun 2023
Dotnet

Spectre.Console Tutorial: Build Beautiful .NET Console Apps

If you build .NET console applications, you have probably hit the limits of Console.WriteLine and Console.ReadLine. They handle text in and text out, and not …

Mar 2023
Dotnet

Say Hello to Reliable Minimal APIs with Integration Tests

Hi there! Integration testing is an important part of the software development process because it helps ensure that your APIs are working correctly and …

Jan 2023
Dotnet

You no longer need a Dockerfile

The .Net 7 release is bringing a lot of changes, and one of the most significant is the removal of the need for a Dockerfile. Container images are now a …

Dec 2022
Dotnet

How to Mock using NSubstitute

Unit tests are code written to test small pieces of functionality of big programs. Performing unit tests is always designed to be simple, A “UNIT” in this sense …

Nov 2022
Dotnet

Build your own cli because you can

I have always been impressed by the Azure CLI and how it has played a significant role in my DevOps journey over the years. That got me wondering, how can I …

Sep 2022
Dotnet

Let’s benchmark .NET using BenchmarkDotNet!

In this blog, we will deep dive into BenchmarkDotNet package and see how it can help us improve our dotnet application. What is Benchmarking? Benchmarking is …

Sep 2022