My Blog

Here you can find my private notes about programming that I wanted to share with you. Feel free to filter based on the topic you want or search for something specific.

    How to validate your .NET Core WebAPI model and return a 400 (BadRequest) response from your controller and test it with Moq

    I know this is not a new question; however, if you search online, you will mostly find articles discussing the older .NET Framework. Here is my way of dealing with 400 (BadRequest) and 404 (NotFound) errors using the latest .NET Core 3.0 WebAPI methods.

    Read the complete article

    Get extra log information about errors happening on your Azure App Service

    When you run your application on an Azure App Service there will the case where you want some extra logging information when errors happen. A fast way to get the exact error and its stacktrace in your application is to activate the Application Logging. To activate it, you have to do the following simple steps:

    Read the complete article

    Implement a static Vue app and deploy it on Azure using CI/CD. Part 2, Continuous Delivery

    In the previous article we focused on building the Continuous Integration Pipeline of our hello-world Vue app.

    In Part 2 we are going to do the steps for deploying the result of the CI Pipeline to Azure. From there our static website is going to be visible to the rest of the world.

    Here are the steps you will have to take:

    Read the complete article

    Implement a static Vue app and deploy it on Azure using CI/CD. Part 1, Continuous Integration

    While I have some extra free time because of the Corona virus outbreak, I decided to experiment with Vue and build a small static HTML Hello-World application for getting to know the framework better. The website contains no backend code.

    The article focuses on how to automate the Build and Deploy process of our small application. I will try to clarify the steps needed till our static website is visible through an Azure URL.

    In this article I will skip the Vue logic of my app and focus solely on the DevOps tasks that have to be made in Azure DevOps. Our static website will then be deployed on an Azure Storage Container. The article focuses on Windows users.

    Read the complete article

    How to disable a Nuget Feed in a .NET project

    Most of us use private feeds in NuGet for storing our NuGet Packages. However, some projects might have stricter security restrictions that others, making it necessary to disable certain feeds to avoid using them as references.

    To “blacklist” feeds, you can use the following configuration:

    Read the complete article