Patrik Svensson

This is my blog, where I write about stuff that interests me such as .NET, Rust, CI/CD and technology in general. I am a husband and a father, and I enjoy contributing to Open Source projects.

Using build counters in Azure DevOps

We recently migrated some builds from TeamCity to Azure DevOps at my client, and couldn't find a feature analog to TeamCity's %build.counter% which we've been using to get automatically incremented version numbers for artifacts.

Generating API clients using AutoRest

This blog post looks at automatically generating an HTTP API client from a OpenAPI specification (formerly swagger) using AutoRest.

We will also use another tool called Swashbuckle which is an ASP.NET Core library that allows us to annotate our controllers with metadata that is used to generate OpenAPI specifications.

An introduction to Spectre.Cli

I've been writing a lot of CLI apps, both at work and in my free time, and there's never really been a command line parsing framework that has fitted my needs. While being either too complex or too simple, it's always nagged me that I need to write so much code myself. What I wanted was a way to be declarative about my commands, options and arguments while still allowing composition of them.