Posts from 2025
-
2025-03-30 ASP.NET Model Binding Quirks
Awhile ago I wrote about using the new JSON library and model binding: Dealing with ASPNET Core 3 API Contract Changes. I only recently started to use it with ASP.NET 8. It has some quicks… let me explain.
-
2025-03-23 Customizing OpenAPI Documentation In ASP.NET - Part 2
In Part 1 of Customizing OpenAPI Documentation In ASP.NET, we looked at how to ensure responses for each the status code were provided and that the payloads. There are still more customizations we can make.
-
2025-03-16 Customizing OpenAPI Documentation In ASP.NET - Part 1
The default OpenAPI documentation generated from your ASP.NET code is rarely correct. Or rather, it is rarely what you want it to be. Let’s see how we can make it better.
-
2025-03-15 Configuring OpenAPI In ASP.NET
Providing documentation to callers of an API can be extremely beneficial. It can mean the difference between an easy onboarding experience or frustration and a lot of trial and error.
-
2025-03-09 Returning ProblemDetails In ASP.NET
Continuing my research from last week Using ProblemDetails in ASP.NET, I want to include ProblemDetails in other scenarios. For example, when a user receives a 401 or 403 response, there is no payload included in the response. I would prefer to include a ProblemDetails payload, making it simpler for callers to use the API.
-
2025-03-02 Using ProblemDetails In ASP.NET
I wrote about using ProblemDetails a while back:
Problem Details with ASP.NET Core
Since then, they have become a first-class citizen in the ASP.NET libraries and can be added as follows:
-
2025-02-23 Object Level Authorization in ASP.NET
Broken Object Level Authorization is a huge security problem. Let’s explore the options available to us in an ASP.NET application
-
2025-02-16 Scripting SQL Server Users
Do you know what permissions a user has in SQL Server? Generating scripts to create users and grant permissions can save you a lot of trial and error.
-
2025-02-09 It Sucks to be Wrong
I often advocate (some would say preach) that progress should be made in small batches. Let’s find some data to back up that claim.
-
2025-02-03 Code Change Guidelines
Here are the guidelines I try to follow when I make changes to a code base.
-
2025-01-26 Sharing PowerShell Profiles
I use PowerShell on several computers. I need a means to share the profile I prefer on all these computers. I found a simple way using GitHub.
-
2025-01-20 Creating a Custom .NET CLI Tool
Installing tools on Windows can sometimes be challenging. The .NET CLI has a great way to distribute tools to your team.
-
2025-01-12 Using Central Package Management with .NET
It is often the case that a solution with a large number of projects share a lot of the same NuGet packages. Central Package Management is a means to help keep the package versions synchronized across the projects.
-
2025-01-11 Helpful Git Commands
I recently was trying to figure out which files I had modified with my feature branch in
git
. It wasn’t as easy as I thought. I decided to document some of thegit
commands I frequently use (so I don’t have to keep searching fo them again and again) -
2025-01-04 Generating Code Coverage Reports .NET
Code coverage can be a highly debatable topic, but I find it very helpful in knowing which classes are under represented in my suite of unit tests. I’ve relied on the UI versions of test runners to provide this data. Let’s explore what we can do with the command line.