Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Creates new markup and code-behind transforms for the webforms-to-blazor CLI, covering interfaces, ordering, registration, and testing.
22% 87%+65 ptsof test cases passed
Passed 20 of 23 test cases with the skill, and 5 of 23 without it.
3 of 3 safety checks passed
Not used yet
This skill covers creating new transforms for the webforms-to-blazor CLI migration pipeline.
The migration CLI uses two transform interfaces that run in sequence during file conversion:
IMarkupTransform) — Convert .aspx/.ascx/.master markup to .razor syntaxICodeBehindTransform) — Convert .aspx.cs code-behind to .razor.csBoth interfaces share the same contract:
public interface IMarkupTransform // (or ICodeBehindTransform)
{
string Name { get; }
int Order { get; }
string Apply(string content, FileMetadata metadata);
}
Name — Human-readable identifier (used in logs and diagnostics)Order — Execution sequence (ascending). Lower numbers run first.Apply — Takes current content + file metadata, returns transformed contentMigrationPipeline runs transforms in this order:
Order ascending) — all run on .razor contentOrder ascending) — all run on .razor.cs contentSemanticPatternCatalog) — page-level rewrites after all transformsEvery transform receives FileMetadata which carries context about the file being processed:
OriginalPath — Source .aspx pathOutputPath — Target .razor pathNext to this one in the catalogue, plus more from the same author.