Post

12 August 2024

Add a Property to the Top-level Statements Program class

Top-level statement Program files are handy, but how can you add properties to them? You can add methods directly into the file, but not properties. The answer is a partial class:

1
2
3
4
partial class Program
{
    static string Name => "Foo";
}

Moving from Controllers to Minimal API

On a similar subject, minimal APIs are a nice way to have a very small, single file with all your code in it, but that doesn’t scale. This article describes a way to scale it.

Adding .NET Aspire to your existing .NET apps

.NET Aspire is a cool new feature to add a cloud-ready stack to your developer experience. But how do add it to your existing applications? This article explains how.

Tales from the .NET Migration Trenches - Middleware

I’m not sure how useful this blog series is, but this is the latest post. It should be good because it’s by Jimmy Bogard of AutoMapper and MediatR fame.

This post is licensed under CC BY 4.0 by the author.