Run Entity Framework Core Migrations with Kubernetes Jobs and Managed Identity

by Karl Solgård

Database migration is a flexible operation. You can run them as a deployment step on a build server. The disadvantage of that approach is a larger window between migration being applied and the application being ready to run. This is an even bigger issue when trying to employ GitOps strategies…

How to change port number for a .NET Core project using IIS Express

by Henning Sjørbotten

Some time ago I wrote a blogpost on how to set/change port number for a solution using IIS Express and Visual Studio. After more and more projects are using .NET Core, the way of handling the port number have changed. If you are not in .NET Core, the old…

Using NDepend to uncover code smells

by Karl Solgård

Code quality should be a high priority for a coder. NDepend is a tool that helps coders to sniff out the smells in their code. After a friendly chat with the NDepend's author, Patrick Smacchia, I got started using the tool on my projects. Installation on Linux The…

How to work with lists in .NET dependency injection

by Karl Solgård

After posting a tweet about passing multiple interfaces into the .NET service container and resolving the services as an IEnumerable in the constructor, I thought it would be a good idea to write more about it in detail.…

Contentful: How to avoid messing up your production content using environments

by Bjarte Aune Olsen

I have a web application with a separate test and production environment. I'm changing the content model, and I want to try out this new feature in my test environment without messing up the content in production.…

Deploying a .NET 5 website to a Linux-based Azure Web App, using Azure DevOps Pipelines

by Tomas Hensrud Gulla

With Microsoft .NET 5 you can choose what platform you use for developing and hosting the solutions you build. Build on Windows, test on macOS, and host on Linux? No problem! Why should you run your Web App on Linux? Because it's cheaper? Because you'll get…

Sanity: Serialize custom objects with .NET

by Magnus Sigvartsen

Sanity.io is a headless CMS. Since a headless CMS acts as an API for our raw data, it makes it easy to distribute the data to multiple channels such as mobile, web and wearables.…

Sanity: Serializing custom annotations in .NET

by Magnus Sigvartsen

Knut from Sanity has a guide on how to create internal and external links in Sanity Studio. He also shows how you can render these links in your front end. Unfortunately, he does not show how you can do it using .NET. After digging around the github repo for Sanity…

Learning F#: How to make a snake game in the console

by Karl Solgård

My favorite way to learn new things is by diving headfirst into a concept and start hacking away! The classic mobile game Snake should be a good challenge for a beginner F# developer.…

So you want to debug third-party dll's at runtime, do you?

by Sigve Fast

Some of the more difficult exceptions to debug are those thrown deep inside-third party frameworks. Everybody knows you can decompile a dll and look at the source code, but that can only take you so far. Wouldn't it be great if you could set a breakpoint in that…