C# Source Generators in Action, by Andrey Dyatlov



C# 9 introduced the long-awaited compiler integrated code generation capability. If you’ve dreamed of getting rid of thousands of …

6 Comments

  1. Shouldn't the generator project be compatible with .NET 5? Source generation is a .NET Standard 2.0 assembly, and .NET 5 implements .NET Standard 2.0, right? I don't understand why the generator project TFM must be .NET Standard.

Leave a Reply

© 2023 53GB