id: "convert-blazor-server-to-webapp"
kind: "skill"
name: "convert-blazor-server-to-webapp"
title: "Convert Blazor Server To Webapp"
description: "Guides conversion of a pre-.NET 8 Blazor Server app into a .NET 8+ Blazor Web App. USE FOR: migrating apps that use AddServerSideBlazor and MapBlazorHub to the AddRazorComponents/MapRazorComponents model, converting _Host.cshtml to an App.razor root component, replacing blazor.server.js with blazor.web.js, migrating CascadingAuthenticationState to a service, adopting new Blazor Web App features like enhanced navigation and streaming rendering. DO NOT USE FOR: apps that are already Blazor Web Apps (already use AddRazorComponents and MapRazorComponents), Blazor WebAssembly or hosted Blazor WebAssembly apps (different migration path), apps that should stay on the Blazor Server hosting model without converting, or apps still targeting .NET Framework."
category: "frontend"
source:
  repository: "dotnet/skills"
  path: "plugins/dotnet-aspnetcore/skills/convert-blazor-server-to-webapp/SKILL.md"
  commit: "4e03bfdade5d1f9b7d1c2e95f64e31d1cb7af5ab"
  url: "https://github.com/dotnet/skills/tree/4e03bfdade5d1f9b7d1c2e95f64e31d1cb7af5ab/plugins/dotnet-aspnetcore/skills/convert-blazor-server-to-webapp"
license:
  spdx: "MIT"
  from: "SKILL.md frontmatter"
  redistributable: true
stars: 6298
updated_at: "2026-11-19T21:19:36Z"
score: 0.9183
rank: 12
files_count: 1
bytes: 15487
has_scripts: false
trust_level: "unreviewed"
reviewed_by: "eval-v1"
source_tier: "official"
eval:
  version: "eval-v1"
  date: "2026-11-21T10:37:47Z"
  model: "claude-sonnet-5-5"
  score: 0.9183
  signals:
    tier: 1.0
    rubric: 1.0
    judge: 0.9233
    smoke: 1.0
    popularity: 0.5279
  rubric:
    score: 1.0
    trigger: 1.0
    scope: 1.0
    safety: 1.0
    injection: 1.0
    references: 1.0
    license: 1.0
    risky: []
    broken_references: []
  judge:
    trigger: 5
    scope: 5
    instructions: 5
    safety: 4
    injection: 5
    references: 5
    overall: 9
    verdict: "feature"
    rationale: "The description gives clear USE FOR and DO NOT USE FOR lists. The job is a single migration. The seven steps include concrete before/after code: Routes.razor, App.razor, Program.cs, UseAntiforgery ordering, the prerender:false nuance, and migrating circuit options. It also has a validation checklist and a pitfalls table. Safety is good, since it commits per step and deletes only _Host.cshtml. It points to no local files and has no injection."
  smoke:
    status: "passed"
    triggered: true
    grade: 2
    task: "I have a .NET 7 Blazor Server app with _Host.cshtml, AddServerSideBlazor and MapBlazorHub, and it wraps its Router in CascadingAuthenticationState. How do I convert it to a .NET 8 Blazor Web App and keep interactive server behavior?"
    date: "2026-11-21T11:42:09Z"
    model: "claude-sonnet-5-5"
requires:
  tools: []
  runtimes: []
  network: false
  mcp: []
compat:
  - client: "claude-code"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "codex-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "cursor"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "gemini-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "vscode-copilot"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "opencode"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "claude-desktop"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "chat-mcp"
    status: "full"
    reasons: ["ok"]
    source: "derived"
files:
  - path: "SKILL.md"
    bytes: 15487
    sha256: "679607e47f22a3106e1773ef74d52249de743988fb8171d7e4a6e80d504cab59"
    url: "https://raw.githubusercontent.com/dotnet/skills/4e03bfdade5d1f9b7d1c2e95f64e31d1cb7af5ab/plugins/dotnet-aspnetcore/skills/convert-blazor-server-to-webapp/SKILL.md"
alternates: []
icon: "https://versatile.sh/avatars/dotnet.png"
