Azure, DevOps and .NET articles

Empowering developers since 2015. Real articles, real insights.

DotNet61 Azure45 DevOps35 JavaScript23 VisualStudio17 CSS12 Jekyll8 Git8 All topics →

    Test .NET Core Web API FromBody and FromForm with Postman

    Postman requires no introductions and plenty of resources about this tool can be found online. However, while testing I recently noticed, that the binding of JSON objects to C# primitive types or POCO classes is not documented in detail.

    We are going to see different scenarios of binding while we test against a .NET WebAPI and try to answer the question “why my action is not getting called when everything is set up in Postman?”.

    Read the complete article

    Fix the 502.05 Process Failure error when debugging in Visual Studio

    Recently while I was trying to test a demo application with .NET Core I came around the following error message when I was starting the application using F5:

    The 502.05 Process Failure error

    Read the complete article

    A "work in progress"-list with the Docker commands I use the most

    Since the start of 2019, I have been using Docker containers in the projects I work on. Working with a command line tool (Windows PowerShell, Shell, etc.) is essential when creating new containers. Below is a list of the commands I use the most:

    Read the complete article

    Deserialize JSON into a C# object with computed property values

    This week I had to deserialize a JSON string into a collection of C# objects. The class of these objects contained not only the properties that map directly to the JSON properties but also an extra property which I wanted to fill with values based on the values of other properties of the object.

    Let us consider the following simple POCO class and its container, which is a simple array of Students:

    Read the complete article

    Use the fileinputname parameter in Visual Studio item templates

    A Visual Studio Item Template allows us to generate new files with code, so that we avoid having to manually create them. This automatization is very practical when we need to create similar classes more than one time. A template is being offered as option in the “Add new item” dialog of Visual Studio:

    Add new item dialog in visual studio

    Read the complete article