Source Generators - Curated .NET Articles & Tutorials

Curated .NET news, articles, and tutorials about C# source generators, drawn from .NET News Daily issues.

82 curated issues

Source Generator-Based CQRS Library in C#: A Review of the Mevora Library

Hello, fellow .NET developers! Today, I’d like to talk to you about a new library — Mevora — that promises to be quite exciting, and how…

Featured in Issue #440 April 23, 2026

Issue also covered: ASP.NET Core, Azure, CQRS, C#, Design Patterns, .NET 10, .NET Framework, GitHub Copilot

Read this issue →

Stop Leaking Generated Types in .NET

If you’ve ever opened generated C# code and thought, “Why are there so many tiny helper types floating around my assembly?”, this post is…

Featured in Issue #434 April 15, 2026

Issue also covered: ASP.NET Core, Clean Architecture, CQRS, C#, .NET 10, EF Core, Performance, Roslyn

Read this issue →

Source code generated string enums with exhaustion support

Some time ago (over 4.5 years ago!) I wrote a blog post titled: "A better enumeration - Type safe from start to end". While cool and so - it had some issues. Let's tackle them!

Featured in Issue #429 April 08, 2026

Issue also covered: ASP.NET Core, C#, EF Core, GitHub Copilot, OAuth, Performance, Visual Studio, Visual Studio Code

Read this issue →

Splitting the NetEscapades.EnumGenerators packages: the road to a stable release

In this post I describe the recent architectural changes to the NetEscapades.EnumGenerators package, which is now a metapackage, to support more scenarios

Featured in Issue #414 March 18, 2026

Issue also covered: ASP.NET Core, Dapper, .NET 10, EF Core, MediatR, Performance, SQL Server, Visual Studio Code

Read this issue →

Part 2: Build an MCP Server in C#/.NET and Enrich It With Repository Context

The .NET ecosystem now has an official C# MCP SDK plus project templates that get you from “zero” to a working server fast.

Featured in Issue #411 March 13, 2026

Issue also covered: Azure, C#, .NET 10, .NET Core, EF Core, OpenAI, Visual Studio Code

Read this issue →

.NET Source Generators with Jason Bock

Why would you write code to generate code? Carl and Richard talk with Jason Bock about his experiences using modern .NET source generators to optimize certain aspects of applications. Jason talks abou...

Featured in Issue #391 February 13, 2026

Issue also covered: Azure, Clean Architecture, CQRS, C#, Design Patterns, .NET 8, .NET Core, EF Core

Read this issue →

Exploring the (underwhelming) System.Diagnostics.Metrics source generators: System.Diagnostics.Metrics APIs - Part 2

In this post I explore the source generators shipped in Microsoft.Extensions.Telemetry.Abstractions, explore the code, and discuss whether I would use them

Featured in Issue #388 February 10, 2026

Issue also covered: Authentication, Authorization, Azure, EF Core, Kafka, Performance, Security, Visual Studio

Read this issue →

I Got Tired of DI Wiring in .NET (So I Built AttributedDI)

Seven years ago (wow, time flies), I was working on a big greenfield .NET project. It started clean and optimistic, and then, like many…

Featured in Issue #385 February 05, 2026

Issue also covered: Azure, C#, .NET 10, GitHub Copilot, OpenAI, Performance, Visual Studio Code

Read this issue →

Stop Writing Boilerplate: How C# Source Generators Are Saving MVVM

The “Manual Era” of C# is over. If you are still writing backing fields and PropertyChanged strings, you are paying a tax you no longer…

Featured in Issue #371 January 16, 2026

Issue also covered: ASP.NET Core, C#, EF Core, Performance, Security

Read this issue →

Partial Constructors in C# 14 (.NET 10) - A Game-Changing Feature

C# 14 introduces Partial Constructors, a game-changer for .NET 10! Split constructor logic across files, enhance source generator support, and improve maintainability. Build modular, scalable applicat...

Featured in Issue #359 December 31, 2025

Issue also covered: ASP.NET Core, CQRS, C#, .NET 10, .NET 8, .NET 9, GitHub Copilot, MediatR

Read this issue →

Resolving Overload Ambiguity with Collection Expressions

OverloadResolutionPriority allows you to specify which method overload should be preferred by the compiler when multiple overloads are applicable. This can be useful in scenarios where you have multip...

Featured in Issue #351 December 19, 2025

Issue also covered: C#, .NET 9, OpenAI, Performance, Redis, REST API, Security, Semantic Kernel

Read this issue →

(RoomSharp) Source-Generated Data Layer for Modern .NET

If you’ve ever envied Android’s Room stack and wished you could have the same attribute-driven ergonomics, source-generated DAOs, and… Continue reading on JavaScript in Plain English »

Featured in Issue #342 December 08, 2025

Issue also covered: ASP.NET Core, Azure, Clean Architecture, C#, Dapper, Domain-Driven Design, Design Patterns, .NET 10

Read this issue →

How I Used C# Source Generators to Eliminate Boilerplate and Speed Up Development

An exploration of compile-time metaprogramming, what it automates well, and the surprising productivity gains it unlocked. Continue reading on Stackademic »

Featured in Issue #341 December 05, 2025

Issue also covered: Azure, C#, .NET 10, EF Core, Performance, REST API

Read this issue →

Why We Left AutoMapper for .NET Source Generators

Two production failures, 480 DTOs, and one compiler feature that changed everything Continue reading on Level Up Coding »

Featured in Issue #316 October 31, 2025

Issue also covered: Application Insights, AutoMapper, Azure, Azure Functions, Clean Architecture, Domain-Driven Design, Design Patterns, Docker

Read this issue →

Make JSON Fast Again in .NET

System.Text.Json performance patterns: source-gen, Utf8JsonReader, UnsafeRelaxedJsonEscaping, and buffer reuse. Continue reading on Stackademic »

Featured in Issue #303 October 14, 2025

Issue also covered: AOT, ASP.NET Core, Blazor, Clean Architecture, C#, Design Patterns, Docker, .NET 10

Read this issue →

Writing simple C# source code generator with Fluent API

Introduction

Featured in Issue #301 October 10, 2025

Issue also covered: ASP.NET Core, Clean Architecture, C#, .NET Framework, EF Core, Performance, PostgreSQL

Read this issue →

Parallel Processing in .NET Core: Choosing Between Parallel.ForEach, Task.Run, and Task.WhenAll

Understanding the subtle differences between Parallel.ForEach, Task.Run, and Task.WhenAll is crucial for writing efficient, scalable, and…

Featured in Issue #299 October 08, 2025

Issue also covered: Azure, Blazor, C#, .NET 10, .NET Core, EF Core, Performance, SignalR

Read this issue →

Scaling Your .NET Productivity with Source Generators

.NET source generators provide a compile-time hook into Roslyn Continue reading on JavaScript in Plain English »

Featured in Issue #288 September 19, 2025

Issue also covered: ASP.NET Core, Authentication, .NET 8, OpenAI, Performance, Security, Visual Studio

Read this issue →

Mastering Incremental Source Generators in C#: A Complete Guide with Example

In the Previous blog, I discussed source generators. .NET has introduced an improved version of a source generator, called Incremental Source Generator. The new type generates code faster and reduces ...

Featured in Issue #275 September 02, 2025

Issue also covered: ASP.NET Core, Azure, Blazor, C#, .NET 9, EF Core, GitHub, .NET MAUI

Read this issue →

Best Free Alternatives to AutoMapper in .NET — Why We Moved to Mapperly

Introduction Continue reading on ABP.IO »

Featured in Issue #274 September 01, 2025

Issue also covered: ASP.NET Core, Authentication, Authorization, AutoMapper, Azure, C#, Design Patterns, .NET 10

Read this issue →

Roslyn Source Generators in C#

When Your Code Writes Itself Continue reading on Indian Full Stack Developer Community »

Featured in Issue #259 August 11, 2025

Issue also covered: ASP.NET Core, C#, .NET 10, Performance, Security, SQL Server, Unit Testing, Visual Studio

Read this issue →

Source Generators in Jinget

.NET Source Generators are a powerful feature introduced in .NET 5 that enable compile-time code generation, allowing developers to…

Featured in Issue #257 August 07, 2025

Issue also covered: .NET Aspire, Authentication, Authorization, Azure, C#, .NET 10, EF Core, GitHub Copilot

Read this issue →

How to Test Roslyn Source Generators

https://www.meziantou.net/how-to-test-roslyn-source-generators.htm

Featured in Issue #251 July 30, 2025

Issue also covered: ASP.NET Core, Azure, Blazor, C#, .NET 10, EF Core, .NET MAUI, MediatR

Read this issue →

Build your own C# code analyzer

https://medium.com/@daniel-miller/build-your-own-csharp-code-analyzer-0c3cd23f5dbf?source=rss------csharp-5

Featured in Issue #249 July 28, 2025

Issue also covered: ASP.NET Core, Authentication, Authorization, Blazor, Clean Architecture, C#, Design Patterns, .NET 9

Read this issue →

C# Just Got Dangerous: 7 Features That Replace Boilerplate Forever

https://medium.com/@mohsho10/c-just-got-dangerous-7-features-that-replace-boilerplate-forever-4359568764b6

Featured in Issue #245 July 22, 2025

Issue also covered: ASP.NET Core, Authentication, Authorization, Azure, Clean Architecture, C#, Dapper, Design Patterns

Read this issue →

On .NET Live - On .NET Live - Source Generators in Jinget

https://www.youtube.com/watch?v=GHCPO-gusF4

Featured in Issue #215 June 10, 2025

Issue also covered: ASP.NET Core, Authentication, Authorization, Azure, Clean Architecture, C#, Dapper, Design Patterns

Read this issue →

Avoiding reflection in C# in way unsafer ways!

https://steven-giesel.com/blogPost/53691229-fbb1-48cf-95e5-f586f9800ee1

Featured in Issue #212 June 05, 2025

Issue also covered: ASP.NET Core, Authentication, Benchmarking, C#, EF Core, Redis

Read this issue →

Boosting Productivity with .NET Source Generators

https://www.c-sharpcorner.com/article/boosting-productivity-with-net-source-generators/

Featured in Issue #211 June 04, 2025

Issue also covered: Azure, C#, Design Patterns, EF Core, .NET MAUI, OpenAI, Performance, Security

Read this issue →

Say Goodbye to AutoMapper: Why .NET Devs Are Switching to Mapperly

https://itnext.io/say-goodbye-to-automapper-why-net-devs-are-switching-to-mapperly-1730ce4a654f

Featured in Issue #203 May 23, 2025

Issue also covered: ASP.NET Core, C#, EF Core, GitHub Copilot, OpenAI, Performance, Security

Read this issue →

.NET DI Simplified: How Scrutor Does the Heavy Lifting

https://medium.com/@nagarajvela/net-di-simplified-how-scrutor-does-the-heavy-lifting-91e271e093de

Featured in Issue #200 May 20, 2025

Issue also covered: ASP.NET Core, Azure, Design Patterns, .NET 9, .NET Core, .NET MAUI, Minimal APIs, Performance

Read this issue →

C# 14 – Exploring extension members

https://devblogs.microsoft.com/dotnet/csharp-exploring-extension-members/

Featured in Issue #198 May 16, 2025

Issue also covered: Azure, Azure Functions, C#, .NET 10, .NET 9, Performance, Security, Solid Principles

Read this issue →

Source Generators and Metaprogramming in .NET

https://medium.com/@Adem_Korkmaz/source-generators-and-metaprogramming-in-net-5c92fd513115?source=rss------csharp-5

Featured in Issue #196 May 14, 2025

Issue also covered: Application Insights, Azure, Azure Functions, C#, Domain-Driven Design, Design Patterns, .NET 8, .NET 9

Read this issue →

Bye-Bye Backslashes! Embrace C#’s Raw String Literals Now

https://medium.com/@nagarajvela/bye-bye-backslashes-embrace-c-s-raw-string-literals-now-dcb7740feb24

Featured in Issue #191 May 07, 2025

Issue also covered: ASP.NET Core, Azure, Azure DevOps, Azure Functions, Cosmos DB, C#, Dapper, Design Patterns

Read this issue →

Introducing automatic documentation comment generation in Visual Studio

https://devblogs.microsoft.com/visualstudio/introducing-automatic-documentation-comment-generation-in-visual-studio/

Featured in Issue #162 March 27, 2025

Issue also covered: ASP.NET Core, Azure, C#, Design Patterns, .NET 8, .NET 9, .NET Core, EF Core

Read this issue →

Using Husky with CSharpier

https://cheranga.medium.com/53a81cf19a44

Featured in Issue #153 March 14, 2025

Issue also covered: ASP.NET Core, Azure, Blazor, C#, Docker, .NET Core, EF Core, Event Sourcing

Read this issue →

Creating Roslyn Analyzers

https://nickkell.medium.com/creating-roslyn-analyzers-a48f2b8318a9

Featured in Issue #142 February 27, 2025

Issue also covered: ASP.NET Core, .NET Aspire, Azure, C#, .NET 9, .NET Core, EF Core, .NET MAUI

Read this issue →

Related topics