Dotnet Source Generators

Roslyn source-generator conventions, both sides of the line - reaching first for the framework generators that exist (GeneratedRegex, LoggerMessage, the System.Text.Json context) and authoring your own only when none fits; the authoring mechanics live in references/authoring.md. Floors at .NET 8 / C# 12. Load when writing or reviewing a generator, weighing compile-time codegen against reflection, or when the user says source generator, IIncrementalGenerator, ISourceGenerator, GeneratedRegex, LoggerMessage, or ForAttributeWithMetadataName. Companions: csharp for the generator's language style, dotnet-testing for test setup. Do NOT load for ordinary code that ships no generator.

envoydev dd2da98 2 files · 8.7 KB Updated

File contents

envoydev/claude-stack/tree/main/stack/skills/dotnet-source-generators commit dd2da98c43

Frequently asked questions

npx skillmds@latest add envoydev/dotnet-source-generators