dotnet/skills✦ 精选0°

dotnet-maui-doctor

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

动态从 NuGet 获取依赖版本并自动修复,适合新环境快速就绪。

▸ 风险提示

可能执行安装/修改系统 SDK 或联网下载,需管理员权限。

这个 Skill 做什么

检测并修复 .NET MAUI 开发环境的 SDK、workload、JDK、Android/Xcode 等问题。

帮你检查并修好搭 .NET MAUI 开发环境时常见的各种问题:会验证 .NET SDK、workload、Java JDK、Android SDK、Xcode 和 Windows SDK 等。适合新装环境、遇到编译报错(比如找不到 Android SDK、Java 版本、Xcode 等)或升级后想确认工具链是否健康时用。特点是会动态从 NuGet 查版本要求、不把版本写死,并且能给出修复建议,支持 macOS、Windows、Linux。

▸ 展开 SKILL.md 英文原文

Diagnoses and fixes .NET MAUI development environment issues. Validates .NET SDK, workloads, Java JDK, Android SDK, Xcode, and Windows SDK. All version requirements discovered dynamically from NuGet WorkloadDependencies.json — never hardcoded. Use when: setting up MAUI development, build errors mentioning SDK/workload/JDK/Android, "Android SDK not found", "Java version" errors, "Xcode not found", environment verification after updates, or any MAUI toolchain issues. Do not use for: non-MAUI .NET projects, Xamarin.Forms apps, runtime app crashes unrelated to environment setup, or app store publishing issues. Works on macOS, Windows, and Linux.

开发编程环境诊断MAUISDK修复通用
4.8k
Stars
351
Forks
40
仓库内 Skill
+610
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-maui/skills/dotnet-maui-doctor/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-maui/skills/dotnet-maui-doctor/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# .NET MAUI Doctor

Validate and fix .NET MAUI development environments. All version requirements are discovered dynamically from NuGet APIs — never hardcode versions.

## When to Use

- Setting up a new .NET MAUI development environment
- Build errors mentioning missing SDKs, workloads, JDK, or Android components
- Errors like "Android SDK not found", "Java version", or "Xcode not found"
- Verifying environment health after SDK or OS updates

## When Not to Use

- Non-MAUI .NET projects (use standard .NET SDK troubleshooting instead)
- Xamarin.Forms apps (different toolchain and workload requirements)
- Runtime app crashes unrelated to environment setup
- App store publishing or signing iss
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有