dotnet/skills✦ 精选0°

create-blazor-project

仓库创建 2026年2月4日最近提交 14 小时前SkillHot 收录 20 天前
▸ 精选理由

快速搭建新项目并根据功能需求定制渲染与依赖,节省启动时间。

这个 Skill 做什么

按需求生成 Blazor 应用并选择合适的渲染模式与模板。

按需求帮你脚手架一个完整的 Blazor 应用,包含合适的模板和渲染模式(静态 SSR、Interactive Server、WASM 等)并生成初始项目结构和 dotnet new 命令。适合准备新网站、需要明确交互类型或部署方式时使用。流程会先问清主要页面和交互需求,再给出最合适的渲染建议和项目配置。

▸ 展开 SKILL.md 英文原文

Create a new ASP.NET Core web application or web site using Blazor. USE FOR: creating a new Blazor web app, scaffolding a new web project, starting a new web site, choosing render modes (Static SSR, Interactive Server, Interactive WebAssembly, Auto), running dotnet new blazor with the right options, setting up initial project structure. DO NOT USE FOR: adding features to existing projects, changing how an existing app renders, or component authoring (use author-component).

开发编程项目脚手架Blazor渲染模式通用
4.8k
Stars
351
Forks
40
仓库内 Skill
+610
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-blazor/skills/create-blazor-project/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-blazor/skills/create-blazor-project/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Create a Blazor Web App

## Before You Start — Gather Requirements

If the user's request doesn't make the following clear, ask before scaffolding:

1. **What does the app do?** List the main screens/features (e.g., "product catalog with search and shopping cart").
2. **What kind of interactivity is needed?** Displaying data and forms? Real-time updates? Offline support? Rich drag-and-drop UI?
3. **Deployment environment?** Internet-facing? Intranet? Mobile users on slow connections?
4. **Authentication needed?** Anonymous? Individual accounts? Organizational (Azure AD)?

## Pick the Right Interactivity Level

Blazor render modes are a progression scale. Start at the simplest level that sa
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有