Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Creates Roslyn analyzers and code-fix providers that detect Web Forms migration patterns for BlazorWebFormsComponents.
41% 82%+41 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 9 of 22 without it.
3 of 3 safety checks passed
Not used yet
This skill covers creating Roslyn analyzers and code-fix providers in the BlazorWebFormsComponents.Analyzers project.
The analyzer project ships as a NuGet analyzer package alongside the main BWFC library. Analyzers detect Web Forms patterns in user code and suggest BWFC replacements.
src/BlazorWebFormsComponents.Analyzers/
├── *Analyzer.cs — DiagnosticAnalyzer implementations
├── *CodeFixProvider.cs — Optional companion code-fix providers
├── SyntaxExtensions.cs — Shared Roslyn helper methods
├── AnalyzerReleases.Shipped.md — Released diagnostic IDs
└── AnalyzerReleases.Unshipped.md — In-progress diagnostic IDs
src/BlazorWebFormsComponents.Analyzers.Test/
├── *AnalyzerTests.cs — Analyzer unit tests
├── *CodeFixTests.cs — Code-fix unit tests
└── AllAnalyzersIntegrationTests.cs — Cross-cutting integration tests
| Analyzer | Diagnostic | Detects |
|---|---|---|
EventHandlerSignatureAnalyzer | BWFC001+ | Web Forms event handler signatures |
FindControlUsageAnalyzer | BWFC0xx | FindControl() calls |
IsPostBackUsageAnalyzer | BWFC0xx | IsPostBack property usage |
ViewStateUsageAnalyzer | BWFC0xx | ViewState["key"] access |
ViewStatePropertyPatternAnalyzer | BWFC0xx | ViewState-backed property patterns |
SessionUsageAnalyzer | BWFC0xx | Session["key"] access |
ResponseObjectUsageAnalyzer | BWFC0xx | Response.Redirect, Response.Write |
ResponseRedirectAnalyzer | BWFC0xx | Response.Redirect specifically |
RequestObjectUsageAnalyzer | BWFC0xx | Request.QueryString, Request.Form |
PageClientScriptUsageAnalyzer | BWFC0xx | ClientScript.Register* |
ScriptManagerUsageAnalyzer | BWFC0xx | ScriptManager usage |
RunatServerAnalyzer | BWFC0xx | runat="server" in markup |
Next to this one in the catalogue, plus more from the same author.