一键导入
validate-maui-mobile-tests
Use when changing MAUI target frameworks, mobile runtime packaging, or mobile test behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when changing MAUI target frameworks, mobile runtime packaging, or mobile test behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | Validate MAUI mobile tests |
| description | Use when changing MAUI target frameworks, mobile runtime packaging, or mobile test behavior. |
Use this skill for changes involving MAUI target frameworks, mobile runtime packaging, iOS/Android test projects, or .github/workflows/dotnet-maui.yml.
MAUI builds rely on these flags:
$env:USE_WHISPER_MAUI = "true"
$env:USE_WHISPER_MAUI_TESTS = "true"
Clear them after local validation:
Remove-Item Env:\USE_WHISPER_MAUI
Remove-Item Env:\USE_WHISPER_MAUI_TESTS
From the repository root:
$env:USE_WHISPER_MAUI = "true"
$env:USE_WHISPER_MAUI_TESTS = "true"
dotnet workload restore .\Whisper.net.Maui.Tests.slnx
dotnet restore .\Whisper.net.Maui.Tests.slnx
dotnet build .\Whisper.net.Maui.Tests.slnx --no-restore -warnaserror
The CI workflow uses XHarness for simulator/device execution. Prefer matching .github/workflows/dotnet-maui.yml over inventing local commands, because target frameworks and simulator images change over time.
Run mobile tests locally only when the required workloads, SDKs, emulators, and simulator images are installed. Otherwise, validate restore/build locally and rely on CI for simulator execution.
.github/workflows/dotnet-maui.ymlWhisper.net.Maui.Tests.slnxWhisper.net/Whisper.net.csprojtests/Whisper.net.Tests.Maui/Whisper.net.Tests.Maui.csprojtests/Whisper.net.Tests/Whisper.net.Tests.csproj.nuspec and .targets files under runtimes/Use when changing whisper.cpp, native build scripts, runtime artifact layout, or native runtime package contents.
Use when tests need deterministic model files, model downloads fail, or WHISPER_TEST_MODEL_PATH is involved.
Use when validating managed .NET changes that do not modify whisper.cpp or native runtime build outputs.
Use when changing Whisper.net managed C# APIs, processors, builders, tests, or examples without changing native runtime outputs.
Use when changing CPU NoAvx runtime loading, package imports, or tests that must run without AVX.
Use when changing runtime selection, RuntimeOptions, NativeLibraryLoader, runtime package imports, or examples that force runtime order.