Package PSC.Analyzers.Blazor as a NuGet analyzer, publish it to a feed, and consume it across a solution including how to make rules fail the build.
Packaging, publishing and consuming Roslyn analyzers
Read More
All technologies, only pure source code
Package PSC.Analyzers.Blazor as a NuGet analyzer, publish it to a feed, and consume it across a solution including how to make rules fail the build.
Test the PSC001 rule with Microsoft.CodeAnalysis.Testing: reference assemblies, inline diagnostic markup, and positive and negative cases.
Write the PSC001 rule: a DiagnosticAnalyzer that finds Blazor [Parameter] properties and flags the ones that aren’t PascalCase.
Start a custom Roslyn analyzer for Blazor. We scaffold PSC.Analyzers.Blazor, explain every csproj setting, and set up analyzer release tracking.
Visual Studio 2026 dropped the built-in ‘extract @code to a code-behind’ feature. So I wrote a right-click extension that brings it back and handles the one tricky case that makes it hard.