Exploring File-Based C# Scripts in Azure DevOps Pipelines

What if you could replace your Bash or PowerShell scripts with C#? With .NET 10’s File-Based Apps, you can run a .cs file directly—no project files, no build step. In this post, we’ll explore how to use C# scripts in Azure DevOps pipelines, using a real example: deploying an AI agent with a single .cs file. Why C# for Pipeline Scripts? Pipeline scripts are typically written in Bash or PowerShell. But what if you already know C#? With .NET 10’s file-based apps, you can now use C# as a scripting language—similar to how Node.js or Python work. ...

December 3, 2025 · 3 min · 594 words · Me

C# 14 Field-Backed Properties: A Cleaner Way

C# 14 Field-Backed Properties: A Cleaner Way One of the developer-friendly features in C# 14 (shipping with .NET 10) is field-backed properties. This feature eliminates a common pain point when working with properties that need custom logic while maintaining clean, readable code. The Problem in C# 13 and Earlier In previous versions of C#, you had two main options for properties: Option 1: Auto-Implemented Properties Simple and clean, but no room for custom logic: ...

November 15, 2025 · 3 min · 484 words · Me

Dynamic Menu in MAUI

Context The requirement here is to be able to add dynamic menu items to a MAUI app. The use case chosen here is of selection of a font from a list of fonts installed on the machine. The list of fonts is shows under a menu item in the menu bar. More on menu bar from the Microsoft documentation Approach Step 1: Mark up The component to be used here is the MenuBarItem. This component support binding context of the content page. As part of the page markup, a menu item is added to the page and the “Choose Language” menu item is left blank, so that the menu items can be added after fetching it. ...

September 26, 2022 · 2 min · 402 words · Me