A list of C# Source Generators (not necessarily awesome) and associated resources: articles, talks, demos.
A list of C# Source Generators (not necessarily awesome), because I haven't found a good list yet.
C# Source Generators is a Roslyn compiler feature introduced in C#9/.NET 5. It lets C# developers inspect user code and generate new C# source files that can be added to a compilation.
GetMember(string)methods that return property value for a given property name or index (e.g. in positional records).
Collection of tips and tricks (simple and brief to fit in Tweet):
See files emitted by #SourceGenerators by adding these properties to your (*.csproj) project file:true $(BaseIntermediateOutputPath)Generated
I made a thing: https://github.com/chsienki/Kittitas
If you're building Roslyn Source Generators or Analyzers check it out, it makes debugging them inside the compiler easier. #roslyn #csharp #dotnetcore #sourcegenerators #analyzers
Maybe they can inspire you too!