Blog

Blogposts on software development in general with a focus on .NET. All posts are listed here.

Feel free to share, copy and distribute this content. But I always appreciate credits, shout outs and links to the original source 😊

Posts

  • Domain verification in the Azure Portal

    If you’re hosting an Azure app service with a custom domain, chances are that your site’s SSL certificate is provided by Azure as well. One great feature that comes with Azure certificates is the auto renewal feature, making sure that your site is always safe and secure. But in order for the auto renewal to stay on track you might need to make a domain verification once in a while. This in order to verify that you’re still the owner of your site’s custom domain.

  • Special characters in Maui/Xamarin path

    I had problems on my current Windows 10 machine when doing cross platform mobile applications development in .NET.

  • How to retrieve a window stuck outside the screen

    Has this ever happened to you? You’ve launched an app or switched monitors and a window gets stuck outside your screen, and you can’t pull it back in.

  • Environment check in Github Actions

    In a project I’ve been working on we faced a problem. While using Github Actions to handle our CI/CD, we wanted to reuse our deployment scripts across all environments for each app. Thus giving us less code to maintain.

  • Creating a pull request in GitKraken

    Pull requests are considered more or less industry standard and best practice when using Git in your projects. When you open a pull request you’re essentially saying “Yo, look at these changes I made to the project. How do you like them?”. This approach allows collaborators and coworkers to review your changes and trying them out in an isolated environment before merging (or denying) them into the repository.

  • Deploy to Azure web app deployment slot using Github Actions

    tl;dr: use the production slot’s app name and the staging slot’s publish profile and slot name.

  • Authenticate GitKraken towards Github Enterprise

    In order to use GitKraken to sync your local repos with a remote hosted on Github Enterprise you need to add an access token to your GitKraken installation. This token verifies that you are allowed to interact with the repos in your organization.

  • Removing diagnostic settings in Azure

    The other day I was removing some diagnostic settings from a few Azure resources. I was able to remove most of them via the Azure portal, but one just wouldn’t let go. No matter how many times I tried deleting it, it still remained.

  • Using git reset in GitKraken

    Reset is a very neat feature in Git if you want to go back in time and make a change to one or several commits. E.g. if you find an error, typo, bug etc that you want to edit or remove.

  • 3 new features in C# 9

    .NET 5 was released in November 2020. With it came C# 9. In this article we’re taking a look at a few new features of this (at the time of publishing) latest installment of C#.

  • Installing and targeting .NET 5

    In order to be able to target .NET 5 and use C# 9 in your projects you first need to install the .NET 5 SDK. Click here to download the .NET 5 SDK.

  • HTTP 403 (Forbidden) or 500 error after creating new environment in Contentful CMS

    Contentful has great support for working with branches (they call it environments, but we all know that they’re actually branches), for instance allowing you to make an exact copy of your production environment and use that copy as a dev or sand box environment.

  • What's new in .NET 5?

    September 2020 marked the release of .NET 5 RC1, with a release for first stable version in November 2020. But what is .NET 5 and why should you care?

  • Scaffolding error 'The specified deps.json [path] does not exist.' in .NET Core

    When scaffolding new files (e.g. controllers or views) in .NET Core projects, you sometimes get a ‘The specified deps.json [path] does not exist’ error.

  • Fix '-bash: command not found' NPM error in Windows 10

    I was trying to start a new React Native project the other day, when I got this error message:

  • Adding a GUID to an existing table in an EF code first migration

    The other day I was trying to add a new column to an existing table using Entity Framework Core. The column was supposed to hold a unique GUID for each row. Easier said than done.

  • A review of NDepend

    This is a review of NDepend, an extension tool for Visual Studio. It was created to give developers and architects insight into their systems and applications, but also to help in further decisions regarding architecture and development.

  • 'Could not find gem X in any of the sources'

    I use Jekyll for handling the content of this blog. Jekyll is a simple static site generator based on Ruby. Normally it’s a dream working with Jekyll. You just install a gem bundle via command line and it just works. Simple as that.

  • What's new in Visual Studio 2019?

    The 2nd of April 2019 marked the release of the IDE Visual Studio 2019. A preview version was released earlier in 2019, but now the stable version is available to the general public. After watching the live streamed release event I thought I’d write a few lines about some of the IMHO more interesting new features and changes to Visual Studio.

  • 5 things I did not know about C#

    I’ve been doing a series of tweets with the somewhat misleading name “Things I did not know about C#” for a while, where I’ve written shortly about features and behaviours in C#. Either ones that

  • Custom tag helpers in ASP.NET Core

    Tag helpers are not by any means a new feature to ASP.NET. Like HTML Helpers tag helpers enable server-side code to help in rendering HTML elements in Razor views. But they are doing this is in a more elegant, HTML-like syntax.

  • 'System.IO.FileNotFoundException: Unable to find tests' in NUnit and xUnit

    If you’re receiving the follow error messages while setting up xUnit or NUnit for a project:

  • Leetspeak 2018 recap

    I thought I’d take a minute to reflect on and go through some highlights from Leetspeak 2018.

  • 'SQLiteConnection' does not contain a constructor that takes 1 arguments (CS1729) and the importance of installing the correct nuget

    While setting up a SQLite DB in a Xamarin.Forms app for the first time in a while, I stumbled upon an error that made me pull my hair.