[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BXWG0724RVJDEE4SQBEF8P":3,"skill-same:01M6BXWG0724RVJDEE4SQBEF8P":91},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":49,"linkOnly":50,"markdownContent":51,"markdownBody":52,"frontMatter":53,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":14,"repositoryHtmlUrl":61,"repositoryHomepageUrl":62,"ownerHtmlUrl":63,"ownerBlogUrl":64,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M6BXWG0724RVJDEE4SQBEF8P","run-tests",".NET测试命令执行","Chooses and runs the repository-compatible .NET test command: classic, VSTest, bridged MTP, or native MTP syntax for MSTest, xUnit, NUnit, and TUnit. Use before running .NET tests or answering with a test command or flags: run the tests, one test, class, category, trait or target framework, combined filters, --filter-query, --no-build, --diag, TRX, coverage collection, crash or hang dumps, filter errors, or unrecognized options. Not for platform identification alone (use platform-detection), writing or debugging test code, interpreting a coverage report (use coverage-analysis), CI investigation, migration, or a persistent hot-reload loop.","选择并运行与仓库兼容的 .NET 测试命令：针对 MSTest、xUnit、NUnit 和 TUnit 的 classic、VSTest、bridged MTP 或 native MTP 语法。在运行 .NET 测试或需要给出测试命令\u002F标志时使用：运行全部测试、单个测试、测试类、类别、trait 或目标框架、组合筛选器、--filter-query、--no-build、--diag、TRX、覆盖率收集、崩溃或挂起转储、筛选错误或无法识别的选项。不适用于仅做平台识别（使用 platform-detection）、编写或调试测试代码、解读覆盖率报告（使用 coverage-analysis）、CI 调查、迁移或持续的热重载循环。","Cratis\u002FSpecifications","Cratis","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F16456213?v=4","01M6BXRH290K4C8RS4PTKK3HXQ","01M6BXRH6YXJMJ3140T8TVBSB4",1,"MIT","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Frun-tests\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Frun-tests\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"run tests","run","framework","xunit","nunit","loop","investigation","analysis","collection","detection","ci","repository","writing","report","code","debugging","mtp","mstest","test","2026-11-10 10:12:30",false,"---\nname: run-tests\ndescription: 'Chooses and runs the repository-compatible .NET test command: classic, VSTest, bridged MTP, or native MTP syntax for MSTest, xUnit, NUnit, and TUnit. Use before running .NET tests or answering with a test command or flags: run the tests, one test, class, category, trait or target framework, combined filters, --filter-query, --no-build, --diag, TRX, coverage collection, crash or hang dumps, filter errors, or unrecognized options. Not for platform identification alone (use platform-detection), writing or debugging test code, interpreting a coverage report (use coverage-analysis), CI investigation, migration, or a persistent hot-reload loop.'\nlicense: MIT\nmetadata:\n  portability: portable\n  binding: optional-overlay\n  binding-revision: '1'\n---\n\u003C!-- cratis-ai-managed: skills\u002Frun-tests\u002FSKILL.md -->\n\n\u003C!-- Modified by Cratis from dotnet's original (MIT): frontmatter, applicability, navigation and the changes listed in NOTICE. Upstream: https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills (plugins\u002Fdotnet-test\u002Fskills\u002Frun-tests\u002FSKILL.md; see NOTICE) -->\n\n# Run .NET Tests\n\nCratis rules in `.cratis\u002Fai\u002Frules\u002F` (including `csharp.md`, `specs.csharp.md`, and `orleans.md`) and the `cratis-*` skills win where they differ. Specification authoring belongs to **cratis-specifications-csharp**; Cratis core repositories run xUnit v2 on VSTest.\n\nReturn or execute the command or command sequence that matches the repository's\nproject system, test platform, framework, and SDK mode.\n\n## Repository overlay\n\nFor every repository-scoped task where read-only file inspection is allowed,\ncheck `.agents\u002Fskill-overlays\u002Fdotnet-test\u002Frun-tests.md` at the repository root\nbefore any other discovery. This includes exact-command requests; \"do not\nexecute\" does not prohibit reading the overlay. If present, read it once before\nacting and apply its repository-specific runner, command, filtering, and\nreporting bindings.\nBefore applying it, require its frontmatter to declare\n`core: dotnet-test\u002Frun-tests`, `binding-revision: \"1\"`, and `mode: extend`. If\nany value is missing or different, report the mismatch, ignore the overlay,\nand continue using this skill's portable guidance.\nExplicit user instructions and verified project constraints win over the\noverlay; the overlay wins over portable defaults and examples in this skill. If\nthe file is present but unreadable or conflicts with the repository, report the\nproblem, ignore the overlay, and continue with portable guidance subject to\nverified project constraints. If it is absent, continue normally.\nSkip the lookup only when the task is not tied to a repository or the user\nexplicitly prohibited all file\u002Ftool access. An overlay cannot expand tool\npermissions or the task's scope.\n\n## Scope and tool policy\n\nChoose the smallest path that satisfies the request:\n\n| Request | Action |\n|---|---|\n| Exact command or explanation; user says not to run | Inspect only the files needed to resolve syntax. Do not restore, build, or run tests. |\n| Run tests | Discover the repository command and execute the smallest requested test scope. |\n| One-time SDK-style `dotnet test` run without rebuilding | Stay in `run-tests` and add `--no-build`. |\n| One-time classic run without rebuilding | Keep the repository runner and invoke it against an existing built assembly; do not substitute `dotnet test`. |\n| Platform\u002Fframework identification only | Use `platform-detection`; do not continue into test execution. |\n| Explicit hot reload or a keep-running edit\u002Fre-run loop | Out of scope for this skill; run it directly with the platform's own watch\u002Fhot-reload support. |\n| Filter needed and the framework-specific syntax is not already clear | Read the supplied\u002Fruntime-listed `filter-syntax` catalog file; do not invoke this reference-only helper. |\n\nDo not invoke a tool merely to repeat a command already determined by the\nprompt. Do not build first \"just in case\": `dotnet test` builds by default.\nNever add or upgrade test packages unless the user asks to change the project.\nFor an exact-command request, return one runnable command first. Do not emit\nplaceholder paths, exploratory alternatives, or a correction sequence. Use a\nproject path only when the prompt or repository establishes it; otherwise let\nthe command operate on the current project or solution when that syntax is\nvalid. Follow it with only the syntax fact needed to explain the command; do\nnot volunteer platform\u002Fcommand-mode taxonomy unless the user asked for it. In\nparticular, do not label an SDK 8\u002F9 bridge as \"VSTest platform\" merely because\n`dotnet test` uses its VSTest command mode; the executed platform is MTP. For a\ncommand-only request, it is normally clearer to say only that MTP application\narguments must follow `--`.\n\n## Inputs to discover\n\n- Project, solution, module, or repository test command\n- Requested scope: all tests, TFM, class, method, category, or trait\n- Requested output: console result, TRX, diagnostics, crash dump, or hang dump\n\nWhen those facts are present in the prompt, use them. Otherwise inspect only the\nrelevant files: `global.json`, the selected project, `packages.config`,\n`Directory.Build.props`, `Directory.Packages.props`, then repository\nscripts\u002FCI documentation. For a file-backed request, enumerate those\nconfiguration names once and read all relevant files that are present in one\nbatch; never infer that a runner or bridge property is absent merely because it\nis not in the `.csproj`. Load `platform-detection` only when those signals need\nprecedence analysis; do not duplicate its full analysis in the response.\nIf execution is requested and the command depends on the active SDK but neither\nthe prompt nor `global.json` establishes it, run `dotnet --version` once. For a\ncommand-only request that prohibits execution, do not probe: state the required\nSDK assumption or ask for the SDK version when the syntax cannot otherwise be\nresolved. Route identification-only requests to `platform-detection`.\n\n## Decision table\n\n| Detected mode \u002F platform | Command shape | Never use |\n|---|---|---|\n| Classic non-SDK | Repository script, or full MSBuild followed by `vstest.console.exe` \u002F `MSTest.exe` | Assuming `dotnet test` is compatible or migrating implicitly |\n| VSTest mode \u002F VSTest | `dotnet test [\u003Cpath>] [VSTEST_OPTIONS]` | MTP-only flags such as `--report-trx` or `--treenode-filter` |\n| VSTest mode \u002F executable MTP bridge | `dotnet test [\u003Cpath>] [DOTNET_OPTIONS] -- [MTP_OPTIONS]` | Omitting the `--` separator, including on SDK 10 |\n| Native MTP mode, SDK 10+ | `dotnet test --project \u003Cpath> [DOTNET_OPTIONS] [MTP_OPTIONS]` | Bare positional project paths or the bridge separator |\n\n`global.json` controls the `dotnet test` command mode on SDK 10+, not\nnecessarily the platform that executes tests. A VSTest-mode project with an MTP\nrunner, `TestingPlatformDotnetTestSupport=true`, and final `OutputType=Exe` is\nstill bridge syntax with `--`. SDK 8\u002F9 only has VSTest command mode.\n\n`--project` is valid only in SDK 10+ **native MTP command mode** (selected by\n`global.json` `test.runner`). Never use it for VSTest mode or an SDK 8\u002F9 bridge;\nthose forms take a positional project path. Conversely, native MTP options are\ndirect arguments and must not be placed after a bridge separator.\n\nKeep `dotnet test`\u002FMSBuild options such as `--framework`, `--configuration`,\n`--no-build`, and `--verbosity` before `--`. Put only MTP application arguments\nafter `--` in bridge mode.\n\n## Workflow\n\n1. **Resolve the repository-compatible runner.**\n\nFor classic projects, signals include `ToolsVersion`, explicit `Compile` and\n`Reference` items, legacy imports, and `packages.config`. Prefer a checked-in\nscript or documented CI command. A typical fallback is:\n\n```powershell\nnuget restore MySolution.sln\nMSBuild.exe MySolution.sln \u002Ft:Build \u002Fp:Configuration=Debug\nvstest.console.exe path\\to\\MyTests.dll \u002FTestAdapterPath:path\\to\\adapter\\build\\\u003Ctfm>\n```\n\nFor `packages.config`, restore with NuGet before the build unless the imported\npackage files are already present. If adapter discovery is not repository-\nconfigured, derive `\u002FTestAdapterPath` from the restored adapter package path or\nthe adapter `.props`\u002F`.targets` imports; do not guess the package root.\n\nFor a requested no-rebuild run, omit the build step and invoke the repository's\ntest runner only when the expected assembly already exists. Otherwise report the\nmissing build output rather than silently rebuilding or switching runners.\n\nFor a requested subset, keep the repository runner and use its filter syntax:\n`vstest.console.exe path\\to\\MyTests.dll\n\u002FTestCaseFilter:\"TestCategory=Integration\"`. Older `MSTest.exe` repositories may\nuse `\u002Ftest:\u003Cname>` or `\u002Fcategory:\u003Ccategory>` instead. Do not substitute the\nlater `dotnet test` filter examples for a classic runner.\n\nUse the installed adapter-compatible VSTest\u002FMSTest toolchain. If it is not\navailable, state the missing prerequisite and the documented command; do not\nclaim tests ran.\nClassic `packages.config` fallback commands are Windows toolchain commands.\nExplicitly say they require a Windows Developer Command Prompt (or the\nrepository's equivalent configured environment) when the current host cannot\nprovide `nuget`, full MSBuild, and `vstest.console.exe`.\n\nFor SDK-style projects, distinguish:\n\n| Signal | Meaning |\n|---|---|\n| SDK 10+ `global.json` selects `Microsoft.Testing.Platform` | Native MTP command mode |\n| VSTest mode + enabled MTP runner + final `TestingPlatformDotnetTestSupport=true` + final `OutputType=Exe` | Executable VSTest-to-MTP bridge |\n| VSTest mode without a complete runner-and-bridge combination | VSTest |\n| `Microsoft.NET.Test.Sdk` plus adapter, without stronger MTP signals | VSTest |\n| `TUnit` | MTP-only; use a configured bridge\u002Fnative mode or the test executable |\n\nEvaluate properties from the project and imported\n`Directory.Build.props`\u002F`Directory.Packages.props`. Respect project-level\noverrides and per-target-framework conditions. A runner and bridge without an\nexecutable final output are an incomplete MTP configuration, not a usable\nbridge.\n\n2. **Select the command and requested scope.**\n\n```shell\n# VSTest mode\ndotnet test path\u002Fto\u002FTests.csproj\n\n# VSTest mode that bridges to MTP\ndotnet test path\u002Fto\u002FTests.csproj -- \u003CMTP_OPTIONS>\n\n# Native MTP mode on SDK 10+\ndotnet test --project path\u002Fto\u002FTests.csproj \u003CMTP_OPTIONS>\n\n# One target framework; this stays before the bridge separator\ndotnet test path\u002Fto\u002FTests.csproj --framework net9.0 -- \u003CMTP_OPTIONS>\n```\n\nFor native MTP, use `--project`, `--solution`, or `--test-modules`; positional\npaths belong to VSTest mode.\n\nIf the user names a subset, do not run the whole suite. Inspect test attributes\nonly when needed to translate a human label such as \"integration\" or \"smoke\"\ninto the framework's actual category\u002Ftrait name.\n\nWhen a VSTest class filter must distinguish similarly named classes, combine\nthe positive selector with an explicit negative selector rather than relying on\nan incidental substring difference.\n\n3. **Apply platform- and framework-correct filters.**\n\nRead the supplied or runtime-listed `filter-syntax` file only when the request\nis filtered and framework-specific syntax is unclear. It is reference-only,\nnot an invocable skill; otherwise use the common decisions below:\n\nFor a file-backed filtered request, resolve the framework and SDK command mode\nfrom the project, `global.json`, and imported props before choosing syntax.\nDo not infer VSTest syntax merely from `Microsoft.NET.Test.Sdk` or from the\nframework name.\n\n| Platform \u002F framework | Filter |\n|---|---|\n| VSTest with MSTest, xUnit v2, or NUnit | `--filter \"\u003Cproperty expression>\"` |\n| MTP with MSTest or NUnit | Same expression; after `--` in bridge mode, direct in native mode |\n| MTP with xUnit v3 | `--filter-class`, `--filter-method`, `--filter-trait`, or one `--filter-query` for a combined expression |\n| MTP with TUnit | `--treenode-filter` path expression |\n\nExamples:\n\n```shell\n# VSTest MSTest\u002FNUnit\ndotnet test --filter \"FullyQualifiedName~OrderServiceTests&TestCategory=Unit\"\n\n# SDK 8\u002F9 or SDK 10 VSTest-mode MTP bridge, xUnit v3\ndotnet test -- --filter-trait \"Category=Integration\"\n\n# Native MTP, xUnit v3\ndotnet test --project Tests.csproj --filter-class \"*ShoppingCartTests*\"\n\n# One xUnit v3 combined expression\ndotnet test -- --filter-query \"\u002F*\u002F*\u002F*Integration*\u002F*[Category=Smoke]\"\n\n# TUnit on SDK 8\u002F9 with a configured VSTest-to-MTP bridge\ndotnet test -- --treenode-filter \"\u002F*\u002F*\u002FSmsNotificationTests\u002F*\"\n\n# TUnit executable fallback when no bridge is configured\ndotnet run --project Tests.csproj -- --treenode-filter \"\u002F*\u002F*\u002FSmsNotificationTests\u002F*\"\n```\n\nDo not use VSTest `--filter \"ClassName=...\"` with xUnit v3 on MTP. Do not use a\ngeneric VSTest expression with TUnit.\nWhen the user requests one combined xUnit query expression, return only one\n`--filter-query` command; do not replace it with separate filter flags or offer\nspeculative alternative grammars.\n\n4. **Add reports or diagnostics.**\n\n| Outcome | VSTest | MTP |\n|---|---|---|\n| TRX | SDK-style: `--logger \"trx;LogFileName=\u003Cname>.trx\"` when an exact output file is requested, otherwise `--logger trx`; standalone `vstest.console.exe`: `\u002FLogger:trx`; `MSTest.exe`: repository-documented results option | `--report-trx` |\n| Results directory | `--results-directory \u003Cdir>` | `--results-directory \u003Cdir>` |\n| Diagnostic log | `--diag \u003Cfile>` | `--diagnostic --diagnostic-output-directory \u003Cdir>` |\n| Crash dump | `--blame-crash` | `--crashdump` |\n| Hang timeout | `--blame-hang --blame-hang-timeout 5min` | `--hangdump --hangdump-timeout 5min` |\n| Code coverage | `--collect \"Code Coverage\"` | `--coverage` |\n\nMTP report, dump, and coverage flags require their corresponding registered\nextensions (`TrxReport`, `CrashDump`, `HangDump`, or `CodeCoverage`). Some\nframework SDKs bundle common extensions; if a flag is unrecognized, inspect\npackage references before recommending a package change.\n\n`--verbosity diagnostic` increases dotnet\u002FMSBuild output verbosity; it does not\nwrite a VSTest diagnostic log file.\n\nExamples:\n\n```shell\n# VSTest TRX\ndotnet test Tests.csproj --logger \"trx;LogFileName=TestResults.trx\"\n\n# MTP bridge TRX\ndotnet test Tests.csproj -- --report-trx\n\n# Native MTP TRX and hang detection\ndotnet test --project Tests.csproj --report-trx --hangdump --hangdump-timeout 5min\n\n# Native MTP diagnostics\ndotnet test --project Tests.csproj --diagnostic --diagnostic-output-directory artifacts\u002Fdiagnostics\n```\n\n5. **Execute only when requested.**\n\nRun the narrowest command or sequence that answers the request. Capture each\ncommand, exit code, and test summary. A failed restore\u002Fbuild is not a test\nfailure, and a test failure is not a tool failure. Report which phase failed and\ninclude the actionable diagnostic. Never claim a clean run unless the sequence\ncompleted successfully with the intended tests executed.\nFor a filtered run, a successful exit is not enough: confirm the reported test\nnames or count match the requested scope. If the filter was ignored, correct the\nplatform-specific syntax and rerun before reporting success.\n\n## Output contract\n\n- Command-only request: lead with the exact command or command sequence, then\n  one short syntax explanation.\n- Execution request: report the exact command or command sequence and\n  a literal `Passed: N, Failed: N, Skipped: N` summary from the completed run;\n  include the first actionable failure.\n- Detection needed only to choose syntax: state the selected mode\u002Fplatform\n  briefly, not a separate detection report.\n- Missing prerequisite or incompatible configuration: name it explicitly and\n  stop rather than returning a success-shaped fallback.\n\n## Validation\n\n- The command matches classic, VSTest, bridged MTP, or native MTP mode.\n- The framework-specific filter targets the requested subset.\n- `--framework` and other `dotnet test` options are before any bridge separator.\n- SDK 8\u002F9 bridge commands contain `--`; `--project` appears only in SDK 10+\n  native MTP mode.\n- TRX, diagnostics, dump, and coverage flags match the platform.\n- No restore, build, or test was run for an advisory-only request.\n- Reported results match the actual command outcome.\n","\u003C!-- cratis-ai-managed: skills\u002Frun-tests\u002FSKILL.md -->\n\n\u003C!-- Modified by Cratis from dotnet's original (MIT): frontmatter, applicability, navigation and the changes listed in NOTICE. Upstream: https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills (plugins\u002Fdotnet-test\u002Fskills\u002Frun-tests\u002FSKILL.md; see NOTICE) -->\n\n# Run .NET Tests\n\nCratis rules in `.cratis\u002Fai\u002Frules\u002F` (including `csharp.md`, `specs.csharp.md`, and `orleans.md`) and the `cratis-*` skills win where they differ. Specification authoring belongs to **cratis-specifications-csharp**; Cratis core repositories run xUnit v2 on VSTest.\n\nReturn or execute the command or command sequence that matches the repository's\nproject system, test platform, framework, and SDK mode.\n\n## Repository overlay\n\nFor every repository-scoped task where read-only file inspection is allowed,\ncheck `.agents\u002Fskill-overlays\u002Fdotnet-test\u002Frun-tests.md` at the repository root\nbefore any other discovery. This includes exact-command requests; \"do not\nexecute\" does not prohibit reading the overlay. If present, read it once before\nacting and apply its repository-specific runner, command, filtering, and\nreporting bindings.\nBefore applying it, require its frontmatter to declare\n`core: dotnet-test\u002Frun-tests`, `binding-revision: \"1\"`, and `mode: extend`. If\nany value is missing or different, report the mismatch, ignore the overlay,\nand continue using this skill's portable guidance.\nExplicit user instructions and verified project constraints win over the\noverlay; the overlay wins over portable defaults and examples in this skill. If\nthe file is present but unreadable or conflicts with the repository, report the\nproblem, ignore the overlay, and continue with portable guidance subject to\nverified project constraints. If it is absent, continue normally.\nSkip the lookup only when the task is not tied to a repository or the user\nexplicitly prohibited all file\u002Ftool access. An overlay cannot expand tool\npermissions or the task's scope.\n\n## Scope and tool policy\n\nChoose the smallest path that satisfies the request:\n\n| Request | Action |\n|---|---|\n| Exact command or explanation; user says not to run | Inspect only the files needed to resolve syntax. Do not restore, build, or run tests. |\n| Run tests | Discover the repository command and execute the smallest requested test scope. |\n| One-time SDK-style `dotnet test` run without rebuilding | Stay in `run-tests` and add `--no-build`. |\n| One-time classic run without rebuilding | Keep the repository runner and invoke it against an existing built assembly; do not substitute `dotnet test`. |\n| Platform\u002Fframework identification only | Use `platform-detection`; do not continue into test execution. |\n| Explicit hot reload or a keep-running edit\u002Fre-run loop | Out of scope for this skill; run it directly with the platform's own watch\u002Fhot-reload support. |\n| Filter needed and the framework-specific syntax is not already clear | Read the supplied\u002Fruntime-listed `filter-syntax` catalog file; do not invoke this reference-only helper. |\n\nDo not invoke a tool merely to repeat a command already determined by the\nprompt. Do not build first \"just in case\": `dotnet test` builds by default.\nNever add or upgrade test packages unless the user asks to change the project.\nFor an exact-command request, return one runnable command first. Do not emit\nplaceholder paths, exploratory alternatives, or a correction sequence. Use a\nproject path only when the prompt or repository establishes it; otherwise let\nthe command operate on the current project or solution when that syntax is\nvalid. Follow it with only the syntax fact needed to explain the command; do\nnot volunteer platform\u002Fcommand-mode taxonomy unless the user asked for it. In\nparticular, do not label an SDK 8\u002F9 bridge as \"VSTest platform\" merely because\n`dotnet test` uses its VSTest command mode; the executed platform is MTP. For a\ncommand-only request, it is normally clearer to say only that MTP application\narguments must follow `--`.\n\n## Inputs to discover\n\n- Project, solution, module, or repository test command\n- Requested scope: all tests, TFM, class, method, category, or trait\n- Requested output: console result, TRX, diagnostics, crash dump, or hang dump\n\nWhen those facts are present in the prompt, use them. Otherwise inspect only the\nrelevant files: `global.json`, the selected project, `packages.config`,\n`Directory.Build.props`, `Directory.Packages.props`, then repository\nscripts\u002FCI documentation. For a file-backed request, enumerate those\nconfiguration names once and read all relevant files that are present in one\nbatch; never infer that a runner or bridge property is absent merely because it\nis not in the `.csproj`. Load `platform-detection` only when those signals need\nprecedence analysis; do not duplicate its full analysis in the response.\nIf execution is requested and the command depends on the active SDK but neither\nthe prompt nor `global.json` establishes it, run `dotnet --version` once. For a\ncommand-only request that prohibits execution, do not probe: state the required\nSDK assumption or ask for the SDK version when the syntax cannot otherwise be\nresolved. Route identification-only requests to `platform-detection`.\n\n## Decision table\n\n| Detected mode \u002F platform | Command shape | Never use |\n|---|---|---|\n| Classic non-SDK | Repository script, or full MSBuild followed by `vstest.console.exe` \u002F `MSTest.exe` | Assuming `dotnet test` is compatible or migrating implicitly |\n| VSTest mode \u002F VSTest | `dotnet test [\u003Cpath>] [VSTEST_OPTIONS]` | MTP-only flags such as `--report-trx` or `--treenode-filter` |\n| VSTest mode \u002F executable MTP bridge | `dotnet test [\u003Cpath>] [DOTNET_OPTIONS] -- [MTP_OPTIONS]` | Omitting the `--` separator, including on SDK 10 |\n| Native MTP mode, SDK 10+ | `dotnet test --project \u003Cpath> [DOTNET_OPTIONS] [MTP_OPTIONS]` | Bare positional project paths or the bridge separator |\n\n`global.json` controls the `dotnet test` command mode on SDK 10+, not\nnecessarily the platform that executes tests. A VSTest-mode project with an MTP\nrunner, `TestingPlatformDotnetTestSupport=true`, and final `OutputType=Exe` is\nstill bridge syntax with `--`. SDK 8\u002F9 only has VSTest command mode.\n\n`--project` is valid only in SDK 10+ **native MTP command mode** (selected by\n`global.json` `test.runner`). Never use it for VSTest mode or an SDK 8\u002F9 bridge;\nthose forms take a positional project path. Conversely, native MTP options are\ndirect arguments and must not be placed after a bridge separator.\n\nKeep `dotnet test`\u002FMSBuild options such as `--framework`, `--configuration`,\n`--no-build`, and `--verbosity` before `--`. Put only MTP application arguments\nafter `--` in bridge mode.\n\n## Workflow\n\n1. **Resolve the repository-compatible runner.**\n\nFor classic projects, signals include `ToolsVersion`, explicit `Compile` and\n`Reference` items, legacy imports, and `packages.config`. Prefer a checked-in\nscript or documented CI command. A typical fallback is:\n\n```powershell\nnuget restore MySolution.sln\nMSBuild.exe MySolution.sln \u002Ft:Build \u002Fp:Configuration=Debug\nvstest.console.exe path\\to\\MyTests.dll \u002FTestAdapterPath:path\\to\\adapter\\build\\\u003Ctfm>\n```\n\nFor `packages.config`, restore with NuGet before the build unless the imported\npackage files are already present. If adapter discovery is not repository-\nconfigured, derive `\u002FTestAdapterPath` from the restored adapter package path or\nthe adapter `.props`\u002F`.targets` imports; do not guess the package root.\n\nFor a requested no-rebuild run, omit the build step and invoke the repository's\ntest runner only when the expected assembly already exists. Otherwise report the\nmissing build output rather than silently rebuilding or switching runners.\n\nFor a requested subset, keep the repository runner and use its filter syntax:\n`vstest.console.exe path\\to\\MyTests.dll\n\u002FTestCaseFilter:\"TestCategory=Integration\"`. Older `MSTest.exe` repositories may\nuse `\u002Ftest:\u003Cname>` or `\u002Fcategory:\u003Ccategory>` instead. Do not substitute the\nlater `dotnet test` filter examples for a classic runner.\n\nUse the installed adapter-compatible VSTest\u002FMSTest toolchain. If it is not\navailable, state the missing prerequisite and the documented command; do not\nclaim tests ran.\nClassic `packages.config` fallback commands are Windows toolchain commands.\nExplicitly say they require a Windows Developer Command Prompt (or the\nrepository's equivalent configured environment) when the current host cannot\nprovide `nuget`, full MSBuild, and `vstest.console.exe`.\n\nFor SDK-style projects, distinguish:\n\n| Signal | Meaning |\n|---|---|\n| SDK 10+ `global.json` selects `Microsoft.Testing.Platform` | Native MTP command mode |\n| VSTest mode + enabled MTP runner + final `TestingPlatformDotnetTestSupport=true` + final `OutputType=Exe` | Executable VSTest-to-MTP bridge |\n| VSTest mode without a complete runner-and-bridge combination | VSTest |\n| `Microsoft.NET.Test.Sdk` plus adapter, without stronger MTP signals | VSTest |\n| `TUnit` | MTP-only; use a configured bridge\u002Fnative mode or the test executable |\n\nEvaluate properties from the project and imported\n`Directory.Build.props`\u002F`Directory.Packages.props`. Respect project-level\noverrides and per-target-framework conditions. A runner and bridge without an\nexecutable final output are an incomplete MTP configuration, not a usable\nbridge.\n\n2. **Select the command and requested scope.**\n\n```shell\n# VSTest mode\ndotnet test path\u002Fto\u002FTests.csproj\n\n# VSTest mode that bridges to MTP\ndotnet test path\u002Fto\u002FTests.csproj -- \u003CMTP_OPTIONS>\n\n# Native MTP mode on SDK 10+\ndotnet test --project path\u002Fto\u002FTests.csproj \u003CMTP_OPTIONS>\n\n# One target framework; this stays before the bridge separator\ndotnet test path\u002Fto\u002FTests.csproj --framework net9.0 -- \u003CMTP_OPTIONS>\n```\n\nFor native MTP, use `--project`, `--solution`, or `--test-modules`; positional\npaths belong to VSTest mode.\n\nIf the user names a subset, do not run the whole suite. Inspect test attributes\nonly when needed to translate a human label such as \"integration\" or \"smoke\"\ninto the framework's actual category\u002Ftrait name.\n\nWhen a VSTest class filter must distinguish similarly named classes, combine\nthe positive selector with an explicit negative selector rather than relying on\nan incidental substring difference.\n\n3. **Apply platform- and framework-correct filters.**\n\nRead the supplied or runtime-listed `filter-syntax` file only when the request\nis filtered and framework-specific syntax is unclear. It is reference-only,\nnot an invocable skill; otherwise use the common decisions below:\n\nFor a file-backed filtered request, resolve the framework and SDK command mode\nfrom the project, `global.json`, and imported props before choosing syntax.\nDo not infer VSTest syntax merely from `Microsoft.NET.Test.Sdk` or from the\nframework name.\n\n| Platform \u002F framework | Filter |\n|---|---|\n| VSTest with MSTest, xUnit v2, or NUnit | `--filter \"\u003Cproperty expression>\"` |\n| MTP with MSTest or NUnit | Same expression; after `--` in bridge mode, direct in native mode |\n| MTP with xUnit v3 | `--filter-class`, `--filter-method`, `--filter-trait`, or one `--filter-query` for a combined expression |\n| MTP with TUnit | `--treenode-filter` path expression |\n\nExamples:\n\n```shell\n# VSTest MSTest\u002FNUnit\ndotnet test --filter \"FullyQualifiedName~OrderServiceTests&TestCategory=Unit\"\n\n# SDK 8\u002F9 or SDK 10 VSTest-mode MTP bridge, xUnit v3\ndotnet test -- --filter-trait \"Category=Integration\"\n\n# Native MTP, xUnit v3\ndotnet test --project Tests.csproj --filter-class \"*ShoppingCartTests*\"\n\n# One xUnit v3 combined expression\ndotnet test -- --filter-query \"\u002F*\u002F*\u002F*Integration*\u002F*[Category=Smoke]\"\n\n# TUnit on SDK 8\u002F9 with a configured VSTest-to-MTP bridge\ndotnet test -- --treenode-filter \"\u002F*\u002F*\u002FSmsNotificationTests\u002F*\"\n\n# TUnit executable fallback when no bridge is configured\ndotnet run --project Tests.csproj -- --treenode-filter \"\u002F*\u002F*\u002FSmsNotificationTests\u002F*\"\n```\n\nDo not use VSTest `--filter \"ClassName=...\"` with xUnit v3 on MTP. Do not use a\ngeneric VSTest expression with TUnit.\nWhen the user requests one combined xUnit query expression, return only one\n`--filter-query` command; do not replace it with separate filter flags or offer\nspeculative alternative grammars.\n\n4. **Add reports or diagnostics.**\n\n| Outcome | VSTest | MTP |\n|---|---|---|\n| TRX | SDK-style: `--logger \"trx;LogFileName=\u003Cname>.trx\"` when an exact output file is requested, otherwise `--logger trx`; standalone `vstest.console.exe`: `\u002FLogger:trx`; `MSTest.exe`: repository-documented results option | `--report-trx` |\n| Results directory | `--results-directory \u003Cdir>` | `--results-directory \u003Cdir>` |\n| Diagnostic log | `--diag \u003Cfile>` | `--diagnostic --diagnostic-output-directory \u003Cdir>` |\n| Crash dump | `--blame-crash` | `--crashdump` |\n| Hang timeout | `--blame-hang --blame-hang-timeout 5min` | `--hangdump --hangdump-timeout 5min` |\n| Code coverage | `--collect \"Code Coverage\"` | `--coverage` |\n\nMTP report, dump, and coverage flags require their corresponding registered\nextensions (`TrxReport`, `CrashDump`, `HangDump`, or `CodeCoverage`). Some\nframework SDKs bundle common extensions; if a flag is unrecognized, inspect\npackage references before recommending a package change.\n\n`--verbosity diagnostic` increases dotnet\u002FMSBuild output verbosity; it does not\nwrite a VSTest diagnostic log file.\n\nExamples:\n\n```shell\n# VSTest TRX\ndotnet test Tests.csproj --logger \"trx;LogFileName=TestResults.trx\"\n\n# MTP bridge TRX\ndotnet test Tests.csproj -- --report-trx\n\n# Native MTP TRX and hang detection\ndotnet test --project Tests.csproj --report-trx --hangdump --hangdump-timeout 5min\n\n# Native MTP diagnostics\ndotnet test --project Tests.csproj --diagnostic --diagnostic-output-directory artifacts\u002Fdiagnostics\n```\n\n5. **Execute only when requested.**\n\nRun the narrowest command or sequence that answers the request. Capture each\ncommand, exit code, and test summary. A failed restore\u002Fbuild is not a test\nfailure, and a test failure is not a tool failure. Report which phase failed and\ninclude the actionable diagnostic. Never claim a clean run unless the sequence\ncompleted successfully with the intended tests executed.\nFor a filtered run, a successful exit is not enough: confirm the reported test\nnames or count match the requested scope. If the filter was ignored, correct the\nplatform-specific syntax and rerun before reporting success.\n\n## Output contract\n\n- Command-only request: lead with the exact command or command sequence, then\n  one short syntax explanation.\n- Execution request: report the exact command or command sequence and\n  a literal `Passed: N, Failed: N, Skipped: N` summary from the completed run;\n  include the first actionable failure.\n- Detection needed only to choose syntax: state the selected mode\u002Fplatform\n  briefly, not a separate detection report.\n- Missing prerequisite or incompatible configuration: name it explicitly and\n  stop rather than returning a success-shaped fallback.\n\n## Validation\n\n- The command matches classic, VSTest, bridged MTP, or native MTP mode.\n- The framework-specific filter targets the requested subset.\n- `--framework` and other `dotnet test` options are before any bridge separator.\n- SDK 8\u002F9 bridge commands contain `--`; `--project` appears only in SDK 10+\n  native MTP mode.\n- TRX, diagnostics, dump, and coverage flags match the platform.\n- No restore, build, or test was run for an advisory-only request.\n- Reported results match the actual command outcome.\n",{"name":5,"license":15,"metadata":54,"description":7},{"binding":55,"portability":56,"binding-revision":57},"optional-overlay","portable","1","main","c392076c8b3fae3b8b31e7d5684d71f9be75e8bb",".cratis\u002Fai\u002Fskills\u002Frun-tests","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications","https:\u002F\u002Fwww.cratis.io\u002Fspecifications\u002F","https:\u002F\u002Fgithub.com\u002FCratis","https:\u002F\u002Fwww.cratis.io","Open-source (MIT) event sourcing and CQRS for .NET and beyond: Chronicle, Arc, Components and Screenplay.","2026-11-14 15:53:54",{"source":9,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add Cratis\u002FSpecifications --skill run-tests",{"tool":73,"command":74},"bunx","bunx skills add Cratis\u002FSpecifications --skill run-tests",{"tool":76,"command":77},"pnpm","pnpm dlx skills add Cratis\u002FSpecifications --skill run-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Frun-tests\u002FSKILL.md",true,[81,85],{"path":82,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":16},"LICENSE","许可证",1162,{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"NOTICE","OTHER","其他",995,"https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Frun-tests\u002FNOTICE",[92,114,135,160,177,208],{"skillNo":93,"name":94,"nameZh":95,"description":96,"descriptionZh":97,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":107,"publishedAt":49},"01M6BXWPJZ1W4FTAZ7N0B718XQ","vectorization",".NET SIMD 向量化代码","Designs, implements, optimizes, and reviews SIMD code in .NET: vectorizing scalar loops with TensorPrimitives, Vector64, Vector128, Vector256, Vector512, or hardware intrinsics, and reviewing existing SIMD code, including the generic Vector type, for contract equivalence, tail handling, memory safety, portability, fallbacks, and measured performance. Use when a .NET loop or SIMD routine is being written or reviewed. Not for performance work unrelated to SIMD.","设计、实现、优化和审查 .NET 中的 SIMD 代码：使用 TensorPrimitives、Vector64、Vector128、Vector256、Vector512 或硬件内部函数将标量循环向量化，并审查现有 SIMD 代码（包括泛型 Vector 类型）的契约等价性、尾部处理、内存安全性、可移植性、回退方案和实测性能。当正在编写或审查 .NET 循环或 SIMD 例程时使用。不用于与 SIMD 无关的性能工作。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fvectorization\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fvectorization\u002FSKILL.md",[101,104],{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":105,"categoryName":106,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C796JZ1YCTM2B2X7TKEWZZ","性能剖析与优化",[94,108,109,110,44,111,112,113,35],"Safety","simd","vector","performance","memory safety","memory",{"skillNo":115,"name":116,"nameZh":117,"description":118,"descriptionZh":119,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":127,"publishedAt":49},"01M6BXWKDP8VKEXE9WN5R8R1E0","target-authoring","MSBuild自定义目标编写","Canonical patterns for writing custom MSBuild targets: DependsOnTargets versus BeforeTargets and AfterTargets, the Build-to-CoreBuild three-level pattern, and the XxxDependsOn chain-extension pattern. Use when diagnosing or fixing custom-target anti-patterns: Directory.Build.targets redefining SDK targets, targets that replace CompileDependsOn instead of extending it, Outputs versus Returns misuse that returns stale results, missing Inputs\u002FOutputs causing needless rebuilds, or missing FileWrites registration. Not for incremental build tuning or general anti-pattern review (use the msbuild skill), or non-MSBuild build systems.","编写自定义 MSBuild target 的规范模式：DependsOnTargets 与 BeforeTargets、AfterTargets 的区别，Build-to-CoreBuild 三级模式，以及 XxxDependsOn 链式扩展模式。用于诊断或修复自定义 target 的反模式：Directory.Build.targets 重新定义 SDK target、target 替换而非扩展 CompileDependsOn、Outputs 与 Returns 误用导致返回过期结果、缺少 Inputs\u002FOutputs 导致不必要的重新构建，或缺少 FileWrites 注册。不适用于增量构建调优或一般反模式审查（使用 msbuild 技能），也不适用于非 MSBuild 构建系统。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Ftarget-authoring\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Ftarget-authoring\u002FSKILL.md",[123,124],{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":125,"categoryName":126,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[128,129,130,131,132,133,134,42],"target authoring","msbuild","tuning","incremental build","sdk","review","directory",{"skillNo":136,"name":137,"nameZh":138,"description":139,"descriptionZh":140,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":141,"sourceHtmlUrl":142,"categories":143,"keywords":146,"publishedAt":49},"01M6BXWCTS8TECDKSYFJT9C445","profiling",".NET 性能剖析","Uses the free official .NET diagnostics CLI tools for profiling and runtime investigation in a repository: CPU, GC pressure, allocation growth, exception storms, lock contention, and slow code. Use when a .NET application needs performance or runtime profiling. Not for replacing realistic performance or load tests with ad-hoc tracing, production heap collection without a pause-risk plan, crash dumps (use dump-collect), or benchmark design (use microbenchmarking).","使用免费的官方 .NET 诊断 CLI 工具在代码仓库中进行性能剖析和运行时调查：CPU、GC 压力、分配增长、异常风暴、锁竞争和慢代码。当 .NET 应用程序需要性能或运行时剖析时使用。不适用于用临时跟踪替代真实的性能或负载测试、无暂停风险计划的生产堆内存采集、崩溃转储（使用 dump-collect），或基准测试设计（使用 microbenchmarking）。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fprofiling\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fprofiling\u002FSKILL.md",[144,145],{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":105,"categoryName":106,"taxonomyType":27,"taxonomyTypeDesc":28},[137,147,148,149,150,151,41,152,153,154,44,155,156,111,157,158,38,159,36],"first","plan","risk","Tools","Production","collect","tracing","benchmark","diagnostics","official","cli","design","microbenchmarking",{"skillNo":161,"name":162,"nameZh":163,"description":164,"descriptionZh":165,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":166,"sourceHtmlUrl":167,"categories":168,"keywords":171,"publishedAt":49},"01M6BXW9N4G1NTMKNVBECTM2GM","platform-detection",".NET 测试平台识别","Identifies a .NET project's test platform, framework, command mode, and SDK-style versus classic project system, resolving global.json, project, packages.config, Directory.Build.props, and Directory.Packages.props precedence for MSTest, xUnit, NUnit, and TUnit. Use when asking \"which test platform or framework?\", \"VSTest or MTP?\", or \"what runner does this project use?\", including bridge settings, UseVSTest opt-outs, and conflicting VSTest\u002FMTP configuration. Not for running or filtering tests, commands, flags, TRX, dumps, or test-command errors (use run-tests), or for hot-reload or migration requests.","识别 .NET 项目的测试平台、框架、命令模式，以及 SDK 样式与经典项目系统，并解析 global.json、项目文件、packages.config、Directory.Build.props 和 Directory.Packages.props 对 MSTest、xUnit、NUnit 和 TUnit 的优先级。当询问“使用哪种测试平台或框架”“VSTest 还是 MTP”或“该项目使用什么测试运行器”时使用，包括桥接设置、UseVSTest 退出选项，以及 VSTest\u002FMTP 配置冲突。不适用于运行或筛选测试、命令、标志、TRX、转储或测试命令错误（使用 run-tests），也不适用于热重载或迁移请求。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fplatform-detection\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fplatform-detection\u002FSKILL.md",[169,170],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[39,172,33,34,134,173,32,31,174,175,46,47,48,132,176],"platform detection","system","packages","config","json",{"skillNo":178,"name":179,"nameZh":180,"description":181,"descriptionZh":182,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":183,"sourceHtmlUrl":184,"categories":185,"keywords":192,"publishedAt":49},"01M6BXW4VVFJH0WDPATWMFE9TY","orleans","Orleans 分布式系统设计","Designs Microsoft Orleans systems from each primitive's purpose and failure model: grains, digital twins, state versus databases, transactions, messaging, streams, timers, reminders, Durable Jobs, stateless workers, grain services, startup, and hosting. Use when a task needs an Orleans design decision: inspect version and topology, choose the primitive, implement, and validate. Not for other actor stacks, batch processing, relational-only CRUD, or advice without an Orleans decision.","从每种原语的用途和失效模型出发设计 Microsoft Orleans 系统：grain、数字孪生、状态与数据库、事务、消息传递、流（streams）、计时器（timers）、提醒（reminders）、Durable Jobs（持久作业）、无状态工作进程、grain 服务、启动与托管。当任务需要做出 Orleans 设计决策时使用：检查版本与拓扑、选择原语、实现并验证。不适用于其他 actor 技术栈、批处理、纯关系型 CRUD，或不涉及 Orleans 决策的建议。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Forleans\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Forleans\u002FSKILL.md",[186,189],{"categoryNo":187,"categoryName":188,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8C4ZVS0ZJKF2T2G58PW5VR2","系统架构师",{"categoryNo":190,"categoryName":191,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C535MHXGXDSGN98VJTMCSK","系统架构设计模式",[179,193,194,195,196,197,198,158,199,200,201,202,203,204,205,206,207],"batch","state","reminders","validate","microsoft","implement","messaging","decision","choose","model","crud","transactions","startup","services","topology",{"skillNo":209,"name":129,"nameZh":210,"description":211,"descriptionZh":212,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":213,"sourceHtmlUrl":214,"categories":215,"keywords":218,"publishedAt":49},"01M6BXW0XCD8DG3B9PH5TS9P8D","MSBuild 构建故障排查","Investigates MSBuild build failures, diagnoses build performance, and reviews build XML and extension contracts using binary logs. Use for failing dotnet build, restore, pack, or publish; .binlog capture and replay; project, props, and targets conditions; custom-target inputs\u002Foutputs; Import\u002FExists hooks and packed NuGet imports; slow evaluation, compilation, copying, or no-change builds; and controlled timing comparisons. Not for legacy or non-SDK project migration, framework or package upgrades, SDK installation, C# refactoring, runtime profiling, assertions after a successful build, or non-MSBuild builds.","使用二进制日志调查 MSBuild 构建失败、诊断构建性能，并审查构建 XML 与扩展契约。适用于 dotnet build、restore、pack 或 publish 失败；.binlog 捕获与回放；project、props 与 targets 条件；自定义 target 的输入\u002F输出；Import\u002FExists 钩子与打包的 NuGet 导入；求值、编译、复制缓慢或无变更构建；以及受控的耗时对比。不适用于旧版或非 SDK 项目迁移、框架或包升级、SDK 安装、C# 重构、运行时性能剖析、构建成功后的断言，或非 MSBuild 构建。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fmsbuild\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fmsbuild\u002FSKILL.md",[216,217],{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":125,"categoryName":126,"taxonomyType":27,"taxonomyTypeDesc":28},[129,132,219,220,221,222,223,224,32,225,226,227,111],"publish","refactoring","Evaluation","logs","xml","package","nuget","change","dotnet"]