tooling

C# Source Generators Articles, Tutorials & News

C# Source Generators articles, tutorials, and news from the DotNetNews archive.

88 articles Updated

C# Source Generators work shows up across many DotNetNews issues because teams keep hitting the same implementation questions. C# Source Generators is a recurring focus for C# and .NET developers working in the Microsoft ecosystem.

Recurring subtopics in recent issues include incremental source generators, Roslyn source generators, codegen C#, and source. When a subtopic never appears in the archive titles or excerpts, it is left out of this introduction.

Expect publisher tutorials, release notes, architecture write-ups, and field notes linked from DotNetNews issues. Start here is a short editorial shortlist for C# Source Generators; the archive list is chronological and larger. Secondary angles such as C# source generators and incremental source generators appear when the archive actually covered them. Cross-links to Roslyn and C# Code Analysis and C# help when the problem spans more than one tag.

Each card points at the original publisher URL and the DotNetNews issue that carried it, so you can read the article in context or jump straight to the source.

Start here

Editor picks for Source Generators

  1. C# Source Generators: Improving Performance and Reducing Boilerplate Code

    c-sharpcorner.com Issue #472

    Source generators eliminate boilerplate at compile time; slower builds, faster runtime.

    Read article Issue #472

  2. .NET Source Generators with Jason Bock

    dotnetrocks.com Issue #391

    Source generators remain one of the best ways to trade boilerplate for compile-time help.

    Read article Issue #391

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

    andrewlock.net Issue #388

    I appreciated the source-generator deep dive because it questions whether the abstraction actually earns its keep.

    Read article Issue #388

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

    medium.com Issue #371

    Source generators keep paying dividends, and this MVVM-focused post shows how much boilerplate they can erase.

    Read article Issue #371

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

    blog.stackademic.com Issue #341

    Source generators can erase repetitive code, and this write-up shows where compile-time automation actually pays off.

    Read article Issue #341

  6. Why We Left AutoMapper for .NET Source Generators

    levelup.gitconnected.com Issue #316

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

    Read article Issue #316

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

    youtube.com Issue #215

    Source generators on .NET Live should be worth watching if you care about compile-time tooling.

    Read article Issue #215

  8. C# in the Age of AI: Build Smart, Self-Writing Code with Source Generators

    medium.com Issue #212

    https://medium.com/@mohsho10/c-in-the-age-of-ai-build-smart-self-writing-code-with-source-generators-8e686c84889c.

    Read article Issue #212

Archive

Page 1 of 4

Newest first