BrandGhost

All posts with Tag Roslyn

Testing Roslyn Analyzers with Microsoft.CodeAnalysis.Testing in C#

Testing Roslyn Analyzers with Microsoft.CodeAnalysis.Testing in C#

Master testing Roslyn analyzers using Microsoft.CodeAnalysis.Testing in C#. Learn NuGet setup, diagnostic markers, code fix testing, and CI integration.

Read the whole article

Weekly Recap: GitHub Copilot CLI, Roslyn Analyzers, and Modular Monoliths [Jul 2026]

This week covers GitHub Copilot CLI workflows and building Roslyn analyzers in C#. Plus practical guides to modular monoliths, MCP transports, production Serilog, NuGet debugging, AI's impact, and engineering leadership.

Read the whole article

IOperation vs SyntaxNode vs Symbol in Roslyn: Choosing the Right Analysis API

IOperation vs SyntaxNode vs Symbol in Roslyn: Choosing the Right Analysis API

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.

Read the whole article

DiagnosticDescriptor in C#: Configuring Rule IDs, Severity, and Diagnostic Messages

Master DiagnosticDescriptor C# configuration -- rule IDs, severity levels, .editorconfig overrides, and diagnostic messages for your Roslyn analyzers.

Read the whole article

Distributing Roslyn Analyzers as NuGet Packages in .NET

Distributing Roslyn Analyzers as NuGet Packages in .NET

Learn to package and distribute your roslyn analyzer nuget package with the right folder structure, metadata, versioning, and CI/CD automation in .NET 10.

Read the whole article

Build Your First Roslyn Analyzer in C#: Diagnostics and Code Fix Walkthrough

Build Your First Roslyn Analyzer in C#: Diagnostics and Code Fix Walkthrough

Build roslyn analyzer c# from scratch -- complete project setup, DiagnosticAnalyzer scaffold, CodeFixProvider implementation, debugging, and unit tests.

Read the whole article

Weekly Recap: NuGet Packaging, Monolith Architecture, and MCP in C# [Jul 2026]

Weekly Recap: NuGet Packaging, Monolith Architecture, and MCP in C# [Jul 2026]

This week covers NuGet packaging from metadata and local testing through private feeds, versioning, and automated publishing. Plus practical guides to monolith architecture, MCP servers and clients in C#, Serilog, Roslyn analyzers, AI agent workflows, and senior engineering leadership.

Read the whole article

Testing C# Source Generators: A Practical Guide

Testing C# Source Generators: A Practical Guide

Learn how to test C# source generators with .NET 10. Complete guide covering Microsoft.CodeAnalysis.Testing, unit tests, snapshot testing with Verify, and CI integration.

Read the whole article

Weekly Recap: Observer Pattern, C# Source Generators, and GitHub Copilot SDK in C# [Apr 2026]

This week covers Observer Pattern implementation and best practices in C#, source generator techniques, Factory Method and Composite patterns, and GitHub Copilot SDK multi-agent capabilities. Plus developer career videos on getting credit for your work, advancing past invisible barriers, and navigating strong opinions as a senior dev.

Read the whole article

How to Create Your First C# Source Generator (Step-by-Step)

How to Create Your First C# Source Generator (Step-by-Step)

Learn how to create a C# source generator with .NET 10. Step-by-step guide covering project setup, IIncrementalGenerator implementation, and packaging.

Read the whole article

How C# Source Generators Work: The Roslyn Compilation Pipeline Explained

How C# Source Generators Work: The Roslyn Compilation Pipeline Explained

Learn exactly how C# source generators work inside the Roslyn compilation pipeline. Understand the two-phase compilation model, syntax providers, and incremental execution.

Read the whole article

C# Source Generators: A Complete Guide to Compile-Time Code Generation

C# Source Generators: A Complete Guide to Compile-Time Code Generation

Master C# source generators with this complete guide. Learn how compile-time code generation works in .NET 10, why it beats reflection, and how to get started.

Read the whole article

An error has occurred. This application may no longer respond until reloaded. Reload