Real-World Roslyn Analyzer Examples in C#: Naming, Null Checks, and Log Validators
Explore production-quality roslyn analyzer examples in C# -- naming conventions, null guard enforcement, and structured log validators you can adapt today.
Custom Roslyn analyzers and code fixes in C# -- diagnostic rules, code analysis APIs, and distributing analyzers as NuGet packages.
Showing 1–6 of 8 articles
Explore production-quality roslyn analyzer examples in C# -- naming conventions, null guard enforcement, and structured log validators you can adapt today.
Understand Roslyn analyzers vs incremental source generators -- how each hooks into the compilation pipeline and when to combine both in one NuGet package.
Master testing Roslyn analyzers using Microsoft.CodeAnalysis.Testing in C#. Learn NuGet setup, diagnostic markers, code fix testing, and CI integration.
Learn when to use IOperation Roslyn vs SyntaxNode vs Symbol APIs. Compare the three analysis layers to pick the right one for your C# analyzer in .NET 10.
Master DiagnosticDescriptor C# configuration -- rule IDs, severity levels, .editorconfig overrides, and diagnostic messages for your Roslyn analyzers.
Learn to package and distribute your roslyn analyzer nuget package with the right folder structure, metadata, versioning, and CI/CD automation in .NET 10.