Csharp Source Generator

Use when writing, reviewing, debugging, or testing C# source generators and Roslyn incremental generators. Covers IIncrementalGenerator architecture, SyntaxProvider pipelines, generated-code snapshots with Verify, analyzer packaging, marker attributes, AnalyzerConfigOptionsProvider, SDK compatibility, diagnostics, and performance. Also trigger when the user mentions source generator output, generated C# files, Roslyn analyzers with generators, ForAttributeWithMetadataName, RegisterSourceOutput, RegisterImplementationSourceOutput, RegisterPostInitializationOutput, CompilerVisibleProperty, InterceptsLocation, PolySharp, PolyType.Roslyn, or generator snapshot tests. Do NOT use for ordinary C# application code, runtime reflection serializers, T4 templates, or non-Roslyn code generation tools.

AndyElessar 43a9ed3 8 files · 43.9 KB Updated

File contents

AndyElessar/skills/tree/main/plugins/csharp-source-generator/skills/csharp-source-generator commit 43a9ed3279

Frequently asked questions

npx skillmds@latest add andyelessar/csharp-source-generator