C# Source Generators: Reading the Roslyn Syntax Tree
Master reading and traversing a Roslyn syntax tree in a C# source generator. Learn SyntaxTree, SemanticModel, and ForAttributeWithMetadataName for .NET 6+.
In-depth C# and .NET tutorials covering structured logging with Serilog, building Roslyn analyzers, NuGet packaging, and other core language and tooling topics.
Showing 127–132 of 264 articles
Master reading and traversing a Roslyn syntax tree in a C# source generator. Learn SyntaxTree, SemanticModel, and ForAttributeWithMetadataName for .NET 6+.
Learn the incremental source generator API in C# -- covers pipeline design, caching with IEquatable, performance tips, and best practices for modern .NET.
Build an ASP.NET Core AI Assistant API with GitHub Copilot SDK in C#. Learn CopilotService as IHostedService, Channel-bridged SSE streaming, and AIFunctionFactory tools in a minimal API.
Learn how to create a C# source generator with .NET 10. Step-by-step guide covering project setup, IIncrementalGenerator implementation, and packaging.
Learn exactly how C# source generators work inside the Roslyn compilation pipeline. Understand the two-phase compilation model, syntax providers, and incremental execution.
Understand what C# source generators are, their history in .NET, and how they differ from reflection and T4 templates. A clear introduction for .NET developers.