[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-dotnet-migrate-xunit-to-mstest":3,"mdc-h9vv0h-key":34,"related-repo-dotnet-migrate-xunit-to-mstest":1497,"related-org-dotnet-migrate-xunit-to-mstest":1605},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":22,"repoUrl":23,"updatedAt":24,"license":25,"forks":26,"topics":27,"repo":29,"sourceUrl":32,"mdContent":33},"migrate-xunit-to-mstest","migrate xUnit test projects to MSTest","Convert .NET test projects from xUnit.net v2 or v3 to MSTest v4. Use for replacing xunit packages, [Fact]\u002F[Theory], xUnit assertions, fixtures, ITestOutputHelper, traits, skips, and xUnit parallelization with MSTest equivalents while preserving the current VSTest or MTP runner. DO NOT USE FOR: xUnit v2 to v3 upgrades, MSTest version upgrades, migrations from NUnit\u002FTUnit, or runner-only VSTest to MTP migrations.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"dotnet",".NET (Microsoft)","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fdotnet.png",[12,16,19],{"name":13,"slug":14,"type":15},".NET","net","tag",{"name":17,"slug":18,"type":15},"Migration","migration",{"name":20,"slug":21,"type":15},"Testing","testing",4576,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills","2026-07-25T05:31:32.288152","MIT",332,[28],"agent-skills",{"repoUrl":23,"stars":22,"forks":26,"topics":30,"description":31},[28],"Repository for skills to assist AI coding agents with .NET and C#","https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills\u002Ftree\u002FHEAD\u002Fplugins\u002Fdotnet-test-migration\u002Fskills\u002Fmigrate-xunit-to-mstest","---\nname: migrate-xunit-to-mstest\ndescription: >\n  Convert .NET test projects from xUnit.net v2 or v3 to MSTest v4. Use for\n  replacing xunit packages, [Fact]\u002F[Theory], xUnit assertions, fixtures,\n  ITestOutputHelper, traits, skips, and xUnit parallelization with MSTest\n  equivalents while preserving the current VSTest or MTP runner.\n  DO NOT USE FOR: xUnit v2 to v3 upgrades, MSTest version upgrades, migrations\n  from NUnit\u002FTUnit, or runner-only VSTest to MTP migrations.\nlicense: MIT\n---\n\n# xUnit -> MSTest Migration\n\nConvert xUnit.net v2 or v3 tests to MSTest v4 without changing the target framework or test platform. A successful migration builds, discovers the same tests, and preserves pass\u002Ffail results and execution semantics.\n\n## Scope\n\nUse this skill only when the project contains xUnit packages or source and the user wants MSTest. If the project already uses MSTest and contains no xUnit tests, report that no framework migration is needed and make no changes.\n\nDo not combine this framework conversion with a target-framework upgrade or VSTest\u002FMTP migration. Complete and verify one migration before starting another.\n\n## Response Mode\n\n- **Full migration request:** inspect the project, make the edits, build, and run tests. Do not stop after giving a plan.\n- **Focused compile error or API question:** inspect the relevant code and apply only that mapping. Do not narrate the entire workflow.\n- **Unsupported target framework:** stop before changing packages. MSTest v4 requires .NET 8+ or .NET Framework 4.6.2+ for test applications; offer a separately approved TFM upgrade or MSTest v3 as the intermediate target.\n\nFor detailed mappings and examples, search [`references\u002Fmapping-cheatsheet.md`](references\u002Fmapping-cheatsheet.md) for constructs actually present in the project and read only the matching sections. Do not load or reproduce the whole reference.\n\n## Fast Path\n\nFor a routine project migration, converge in four phases: one batched discovery read\u002Fsearch, one edit pass, one `dotnet test`, and one concise result. Do not:\n\n- list a directory and then reread the same files through another tool\n- try `dotnet test --no-restore` unless restore is already known to be current\n- run separate restore, build, and test commands when `dotnet test` is sufficient\n- rerun a passing test command or inspect unchanged files for confirmation\n\nUse an existing CI\u002Ftest result as the parity baseline when available. Run a new pre-edit baseline only when counts are unavailable and the migration contains data-driven tests, fixtures, skips, custom extensions, shared state, or other behavior whose parity cannot be established from source alone.\n\n## Workflow\n\n### 1. Establish the baseline\n\n1. In one discovery pass, batch-read the test projects plus `Directory.Build.props`, `Directory.Packages.props`, `global.json`, and runner configuration, and search the source for the high-risk constructs below.\n2. State the detected source version:\n   - `xunit` 2.x and related packages -> xUnit v2\n   - `xunit.v3` or `xunit.v3.*` -> xUnit v3\n3. Identify VSTest or MTP from the project and repository configuration. Use `platform-detection` only when the platform is ambiguous, and preserve the detected platform.\n4. Record the target frameworks and stop if MSTest v4 does not support them.\n5. If the Fast Path requires a new baseline, run the existing test command once and record discovered, passed, failed, and skipped counts.\n6. Inventory high-risk constructs before editing:\n   - `IClassFixture`, `ICollectionFixture`, `CollectionDefinition`, custom `FactAttribute`\u002F`TheoryAttribute`\u002F`DataAttribute`\n   - `Assert.Throws`, `ThrowsAny`, `IsType`, `Record.Exception`, event assertions\n   - `ITestOutputHelper`, `TestContext.Current`, `IAsyncLifetime`\n   - `CollectionBehavior`, `xunit.runner.json`, shared static or external state\n\n### 2. Replace packages without switching runners\n\nRemove xUnit packages from project files and central package files. This includes `xunit*`, `xunit.v3.*`, `xunit.runner.visualstudio`, `YTest.MTP.XUnit2`, and xUnit-specific companion packages that are being replaced.\n\nDefault to the MSTest v4 metapackage for an incremental conversion:\n\n```xml\n\u003CPackageReference Include=\"MSTest\" Version=\"4.1.0\" \u002F>\n```\n\nThis keeps VSTest available through the metapackage's compatible `Microsoft.NET.Test.Sdk` dependency. Remove a stale explicit `Microsoft.NET.Test.Sdk` reference or update it to the minimum required by the chosen MSTest version (MSTest 4.1.0 requires 18.0.1+); otherwise restore fails with `NU1605`. Use `MSTest.Sdk` only when the project already uses it elsewhere or the user explicitly requests it. `MSTest.Sdk` defaults to MTP, so add `\u003CUseVSTest>true\u003C\u002FUseVSTest>` when preserving VSTest.\n\nDo not change `TargetFramework`. Remove `xunit.runner.json` only after porting its relevant settings.\n\n### 3. Perform the mechanical conversion\n\nApply the common rewrites first:\n\n| xUnit | MSTest |\n|---|---|\n| no class attribute | `[TestClass]` |\n| `[Fact]` | `[TestMethod]` |\n| `[Theory]` + `[InlineData]` | `[TestMethod]` + `[DataRow]` |\n| `[MemberData]` | `[DynamicData]` |\n| `[Fact(Skip = \"...\")]` | `[TestMethod]` + `[Ignore(\"...\")]` |\n| `[Trait(\"Category\", value)]` | `[TestCategory(value)]` |\n| `[Trait(\"Owner\", value)]` | `[Owner(value)]` |\n| other `[Trait(key, value)]` | `[TestProperty(key, value)]` |\n| `Assert.Equal` \u002F `NotEqual` | `Assert.AreEqual` \u002F `AreNotEqual` |\n| `Assert.True` \u002F `False` | `Assert.IsTrue` \u002F `IsFalse` |\n| `Assert.Null` \u002F `NotNull` | `Assert.IsNull` \u002F `IsNotNull` |\n\nRemove `using Xunit;` and `using Xunit.Abstractions;`. Add `using Microsoft.VisualStudio.TestTools.UnitTesting;` for the metapackage option; `MSTest.Sdk` supplies it as an implicit global using.\n\nPreserve existing class inheritance. Do not mechanically seal classes.\n\n### 4. Resolve semantic mappings\n\nLoad the mapping cheatsheet for every high-risk construct found in Step 1. These rules are mandatory:\n\n- xUnit `Assert.Throws\u003CT>` is exact-type and maps to MSTest `Assert.ThrowsExactly\u003CT>`.\n- xUnit `Assert.ThrowsAny\u003CT>` permits derived types and maps to MSTest `Assert.Throws\u003CT>`.\n- xUnit `Assert.IsType\u003CT>` is exact-type and maps to `Assert.IsExactInstanceOfType\u003CT>`; `Assert.IsAssignableFrom\u003CT>` maps to `Assert.IsInstanceOfType\u003CT>`.\n- xUnit `Assert.Equal` on sequences compares elements. Use `Assert.AreSequenceEqual` on MSTest 4.3+ or `CollectionAssert.AreEqual` with materialized lists on earlier v4; never replace sequence equality with reference-based `Assert.AreEqual`.\n- `[Ignore]` and `[Timeout]` are modifiers; keep `[TestMethod]` so the test is discovered.\n- `[DataRow]` values must exactly match parameter types.\n- `TestContext.Current.CancellationToken` maps to an injected MSTest `TestContext.CancellationToken`; never replace it with `CancellationToken.None` or a new `CancellationTokenSource`.\n- `Owner` is a reserved VSTest property. Map `[Trait(\"Owner\", value)]` to `[Owner(value)]`, not `[TestProperty(\"Owner\", value)]`.\n- Assertions with no MSTest equivalent (`Assert.Collection`, `Assert.All`, `Assert.Equivalent`, `Record.Exception`, event assertions) require an explicit manual rewrite. Never delete an assertion without replacing its verification.\n\nApply the mechanical and semantic rewrites in one edit pass when the inventory makes the required mappings clear. Do not run an intermediate build by default; use compiler errors from final verification to drive only unresolved conversions.\n\n### 5. Preserve lifecycle, fixture scope, and parallelization\n\n- Keep constructor setup and `IDisposable`\u002F`IAsyncDisposable` when valid. Map `IAsyncLifetime` to `[TestInitialize]`\u002F`[TestCleanup]`.\n- Map `IClassFixture\u003CT>` to class-scoped initialization and cleanup.\n- For `ICollectionFixture\u003CT>`, preserve both sharing and serialization. Prefer a static `Lazy\u003CT>` helper used by each member class; add `[DoNotParallelize]` only when the source collection disabled parallelization. Use assembly initialization only when the fixture is genuinely assembly-wide.\n- Replace `ITestOutputHelper` with injected or property-based MSTest `TestContext`.\n\nxUnit runs classes in parallel by default; MSTest runs them serially. Unless the source disabled parallelism, preserve xUnit behavior with:\n\n```csharp\n[assembly: Parallelize(Workers = 0, Scope = ExecutionScope.ClassLevel)]\n```\n\nNever use `ExecutionScope.MethodLevel` to emulate xUnit. Before applying a fixture-scope or parallelization decision, state what the source shared or serialized and how the target preserves it.\n\n### 6. Verify parity\n\n1. Run tests once with the same platform, filter, and configuration used for the baseline. `dotnet test` builds by default; run a separate build only when needed to isolate a compilation failure.\n2. Compare discovered, passed, failed, and skipped counts.\n3. Investigate every difference before declaring completion:\n   - missing cases -> discovery attributes, `DynamicData`, or `DataRow` literal types\n   - changed exception behavior -> exact-vs-derived assertion mapping\n   - shared-state failures or large duration changes -> fixture scope and parallelization\n   - silently skipped tests -> missing `[TestMethod]` or incorrect runtime-skip conversion\n4. Confirm no xUnit package, namespace, attribute, runner configuration, or fixture interface remains unless explicitly documented for manual follow-up.\n\n## Completion Criteria\n\n- Current xUnit version and test platform were identified\n- xUnit packages and source constructs were converted\n- Target framework and test platform stayed unchanged\n- Fixture scope and parallelization decisions are explicit\n- Build succeeds\n- Test discovery and result counts match the baseline\n- Any unsupported custom extension point is called out rather than approximated\n\n## Follow-up\n\nRun `migrate-vstest-to-mtp` separately if the user also wants MTP. Use `writing-mstest-tests` only after parity is established to polish the converted MSTest code.\n",{"data":35,"body":36},{"name":4,"description":6,"license":25},{"type":37,"children":38},"root",[39,48,54,61,66,71,77,113,131,137,150,188,193,199,206,426,432,465,470,491,542,562,568,573,893,929,934,940,945,1189,1194,1200,1304,1309,1325,1338,1344,1420,1426,1464,1470,1491],{"type":40,"tag":41,"props":42,"children":44},"element","h1",{"id":43},"xunit-mstest-migration",[45],{"type":46,"value":47},"text","xUnit -> MSTest Migration",{"type":40,"tag":49,"props":50,"children":51},"p",{},[52],{"type":46,"value":53},"Convert xUnit.net v2 or v3 tests to MSTest v4 without changing the target framework or test platform. A successful migration builds, discovers the same tests, and preserves pass\u002Ffail results and execution semantics.",{"type":40,"tag":55,"props":56,"children":58},"h2",{"id":57},"scope",[59],{"type":46,"value":60},"Scope",{"type":40,"tag":49,"props":62,"children":63},{},[64],{"type":46,"value":65},"Use this skill only when the project contains xUnit packages or source and the user wants MSTest. If the project already uses MSTest and contains no xUnit tests, report that no framework migration is needed and make no changes.",{"type":40,"tag":49,"props":67,"children":68},{},[69],{"type":46,"value":70},"Do not combine this framework conversion with a target-framework upgrade or VSTest\u002FMTP migration. Complete and verify one migration before starting another.",{"type":40,"tag":55,"props":72,"children":74},{"id":73},"response-mode",[75],{"type":46,"value":76},"Response Mode",{"type":40,"tag":78,"props":79,"children":80},"ul",{},[81,93,103],{"type":40,"tag":82,"props":83,"children":84},"li",{},[85,91],{"type":40,"tag":86,"props":87,"children":88},"strong",{},[89],{"type":46,"value":90},"Full migration request:",{"type":46,"value":92}," inspect the project, make the edits, build, and run tests. Do not stop after giving a plan.",{"type":40,"tag":82,"props":94,"children":95},{},[96,101],{"type":40,"tag":86,"props":97,"children":98},{},[99],{"type":46,"value":100},"Focused compile error or API question:",{"type":46,"value":102}," inspect the relevant code and apply only that mapping. Do not narrate the entire workflow.",{"type":40,"tag":82,"props":104,"children":105},{},[106,111],{"type":40,"tag":86,"props":107,"children":108},{},[109],{"type":46,"value":110},"Unsupported target framework:",{"type":46,"value":112}," stop before changing packages. MSTest v4 requires .NET 8+ or .NET Framework 4.6.2+ for test applications; offer a separately approved TFM upgrade or MSTest v3 as the intermediate target.",{"type":40,"tag":49,"props":114,"children":115},{},[116,118,129],{"type":46,"value":117},"For detailed mappings and examples, search ",{"type":40,"tag":119,"props":120,"children":122},"a",{"href":121},"references\u002Fmapping-cheatsheet.md",[123],{"type":40,"tag":124,"props":125,"children":127},"code",{"className":126},[],[128],{"type":46,"value":121},{"type":46,"value":130}," for constructs actually present in the project and read only the matching sections. Do not load or reproduce the whole reference.",{"type":40,"tag":55,"props":132,"children":134},{"id":133},"fast-path",[135],{"type":46,"value":136},"Fast Path",{"type":40,"tag":49,"props":138,"children":139},{},[140,142,148],{"type":46,"value":141},"For a routine project migration, converge in four phases: one batched discovery read\u002Fsearch, one edit pass, one ",{"type":40,"tag":124,"props":143,"children":145},{"className":144},[],[146],{"type":46,"value":147},"dotnet test",{"type":46,"value":149},", and one concise result. Do not:",{"type":40,"tag":78,"props":151,"children":152},{},[153,158,171,183],{"type":40,"tag":82,"props":154,"children":155},{},[156],{"type":46,"value":157},"list a directory and then reread the same files through another tool",{"type":40,"tag":82,"props":159,"children":160},{},[161,163,169],{"type":46,"value":162},"try ",{"type":40,"tag":124,"props":164,"children":166},{"className":165},[],[167],{"type":46,"value":168},"dotnet test --no-restore",{"type":46,"value":170}," unless restore is already known to be current",{"type":40,"tag":82,"props":172,"children":173},{},[174,176,181],{"type":46,"value":175},"run separate restore, build, and test commands when ",{"type":40,"tag":124,"props":177,"children":179},{"className":178},[],[180],{"type":46,"value":147},{"type":46,"value":182}," is sufficient",{"type":40,"tag":82,"props":184,"children":185},{},[186],{"type":46,"value":187},"rerun a passing test command or inspect unchanged files for confirmation",{"type":40,"tag":49,"props":189,"children":190},{},[191],{"type":46,"value":192},"Use an existing CI\u002Ftest result as the parity baseline when available. Run a new pre-edit baseline only when counts are unavailable and the migration contains data-driven tests, fixtures, skips, custom extensions, shared state, or other behavior whose parity cannot be established from source alone.",{"type":40,"tag":55,"props":194,"children":196},{"id":195},"workflow",[197],{"type":46,"value":198},"Workflow",{"type":40,"tag":200,"props":201,"children":203},"h3",{"id":202},"_1-establish-the-baseline",[204],{"type":46,"value":205},"1. Establish the baseline",{"type":40,"tag":207,"props":208,"children":209},"ol",{},[210,238,276,289,294,299],{"type":40,"tag":82,"props":211,"children":212},{},[213,215,221,223,229,230,236],{"type":46,"value":214},"In one discovery pass, batch-read the test projects plus ",{"type":40,"tag":124,"props":216,"children":218},{"className":217},[],[219],{"type":46,"value":220},"Directory.Build.props",{"type":46,"value":222},", ",{"type":40,"tag":124,"props":224,"children":226},{"className":225},[],[227],{"type":46,"value":228},"Directory.Packages.props",{"type":46,"value":222},{"type":40,"tag":124,"props":231,"children":233},{"className":232},[],[234],{"type":46,"value":235},"global.json",{"type":46,"value":237},", and runner configuration, and search the source for the high-risk constructs below.",{"type":40,"tag":82,"props":239,"children":240},{},[241,243],{"type":46,"value":242},"State the detected source version:\n",{"type":40,"tag":78,"props":244,"children":245},{},[246,257],{"type":40,"tag":82,"props":247,"children":248},{},[249,255],{"type":40,"tag":124,"props":250,"children":252},{"className":251},[],[253],{"type":46,"value":254},"xunit",{"type":46,"value":256}," 2.x and related packages -> xUnit v2",{"type":40,"tag":82,"props":258,"children":259},{},[260,266,268,274],{"type":40,"tag":124,"props":261,"children":263},{"className":262},[],[264],{"type":46,"value":265},"xunit.v3",{"type":46,"value":267}," or ",{"type":40,"tag":124,"props":269,"children":271},{"className":270},[],[272],{"type":46,"value":273},"xunit.v3.*",{"type":46,"value":275}," -> xUnit v3",{"type":40,"tag":82,"props":277,"children":278},{},[279,281,287],{"type":46,"value":280},"Identify VSTest or MTP from the project and repository configuration. Use ",{"type":40,"tag":124,"props":282,"children":284},{"className":283},[],[285],{"type":46,"value":286},"platform-detection",{"type":46,"value":288}," only when the platform is ambiguous, and preserve the detected platform.",{"type":40,"tag":82,"props":290,"children":291},{},[292],{"type":46,"value":293},"Record the target frameworks and stop if MSTest v4 does not support them.",{"type":40,"tag":82,"props":295,"children":296},{},[297],{"type":46,"value":298},"If the Fast Path requires a new baseline, run the existing test command once and record discovered, passed, failed, and skipped counts.",{"type":40,"tag":82,"props":300,"children":301},{},[302,304],{"type":46,"value":303},"Inventory high-risk constructs before editing:\n",{"type":40,"tag":78,"props":305,"children":306},{},[307,353,385,408],{"type":40,"tag":82,"props":308,"children":309},{},[310,316,317,323,324,330,332,338,340,346,347],{"type":40,"tag":124,"props":311,"children":313},{"className":312},[],[314],{"type":46,"value":315},"IClassFixture",{"type":46,"value":222},{"type":40,"tag":124,"props":318,"children":320},{"className":319},[],[321],{"type":46,"value":322},"ICollectionFixture",{"type":46,"value":222},{"type":40,"tag":124,"props":325,"children":327},{"className":326},[],[328],{"type":46,"value":329},"CollectionDefinition",{"type":46,"value":331},", custom ",{"type":40,"tag":124,"props":333,"children":335},{"className":334},[],[336],{"type":46,"value":337},"FactAttribute",{"type":46,"value":339},"\u002F",{"type":40,"tag":124,"props":341,"children":343},{"className":342},[],[344],{"type":46,"value":345},"TheoryAttribute",{"type":46,"value":339},{"type":40,"tag":124,"props":348,"children":350},{"className":349},[],[351],{"type":46,"value":352},"DataAttribute",{"type":40,"tag":82,"props":354,"children":355},{},[356,362,363,369,370,376,377,383],{"type":40,"tag":124,"props":357,"children":359},{"className":358},[],[360],{"type":46,"value":361},"Assert.Throws",{"type":46,"value":222},{"type":40,"tag":124,"props":364,"children":366},{"className":365},[],[367],{"type":46,"value":368},"ThrowsAny",{"type":46,"value":222},{"type":40,"tag":124,"props":371,"children":373},{"className":372},[],[374],{"type":46,"value":375},"IsType",{"type":46,"value":222},{"type":40,"tag":124,"props":378,"children":380},{"className":379},[],[381],{"type":46,"value":382},"Record.Exception",{"type":46,"value":384},", event assertions",{"type":40,"tag":82,"props":386,"children":387},{},[388,394,395,401,402],{"type":40,"tag":124,"props":389,"children":391},{"className":390},[],[392],{"type":46,"value":393},"ITestOutputHelper",{"type":46,"value":222},{"type":40,"tag":124,"props":396,"children":398},{"className":397},[],[399],{"type":46,"value":400},"TestContext.Current",{"type":46,"value":222},{"type":40,"tag":124,"props":403,"children":405},{"className":404},[],[406],{"type":46,"value":407},"IAsyncLifetime",{"type":40,"tag":82,"props":409,"children":410},{},[411,417,418,424],{"type":40,"tag":124,"props":412,"children":414},{"className":413},[],[415],{"type":46,"value":416},"CollectionBehavior",{"type":46,"value":222},{"type":40,"tag":124,"props":419,"children":421},{"className":420},[],[422],{"type":46,"value":423},"xunit.runner.json",{"type":46,"value":425},", shared static or external state",{"type":40,"tag":200,"props":427,"children":429},{"id":428},"_2-replace-packages-without-switching-runners",[430],{"type":46,"value":431},"2. Replace packages without switching runners",{"type":40,"tag":49,"props":433,"children":434},{},[435,437,443,444,449,450,456,457,463],{"type":46,"value":436},"Remove xUnit packages from project files and central package files. This includes ",{"type":40,"tag":124,"props":438,"children":440},{"className":439},[],[441],{"type":46,"value":442},"xunit*",{"type":46,"value":222},{"type":40,"tag":124,"props":445,"children":447},{"className":446},[],[448],{"type":46,"value":273},{"type":46,"value":222},{"type":40,"tag":124,"props":451,"children":453},{"className":452},[],[454],{"type":46,"value":455},"xunit.runner.visualstudio",{"type":46,"value":222},{"type":40,"tag":124,"props":458,"children":460},{"className":459},[],[461],{"type":46,"value":462},"YTest.MTP.XUnit2",{"type":46,"value":464},", and xUnit-specific companion packages that are being replaced.",{"type":40,"tag":49,"props":466,"children":467},{},[468],{"type":46,"value":469},"Default to the MSTest v4 metapackage for an incremental conversion:",{"type":40,"tag":471,"props":472,"children":477},"pre",{"className":473,"code":474,"language":475,"meta":476,"style":476},"language-xml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003CPackageReference Include=\"MSTest\" Version=\"4.1.0\" \u002F>\n","xml","",[478],{"type":40,"tag":124,"props":479,"children":480},{"__ignoreMap":476},[481],{"type":40,"tag":482,"props":483,"children":486},"span",{"class":484,"line":485},"line",1,[487],{"type":40,"tag":482,"props":488,"children":489},{},[490],{"type":46,"value":474},{"type":40,"tag":49,"props":492,"children":493},{},[494,496,502,504,509,511,517,519,525,527,532,534,540],{"type":46,"value":495},"This keeps VSTest available through the metapackage's compatible ",{"type":40,"tag":124,"props":497,"children":499},{"className":498},[],[500],{"type":46,"value":501},"Microsoft.NET.Test.Sdk",{"type":46,"value":503}," dependency. Remove a stale explicit ",{"type":40,"tag":124,"props":505,"children":507},{"className":506},[],[508],{"type":46,"value":501},{"type":46,"value":510}," reference or update it to the minimum required by the chosen MSTest version (MSTest 4.1.0 requires 18.0.1+); otherwise restore fails with ",{"type":40,"tag":124,"props":512,"children":514},{"className":513},[],[515],{"type":46,"value":516},"NU1605",{"type":46,"value":518},". Use ",{"type":40,"tag":124,"props":520,"children":522},{"className":521},[],[523],{"type":46,"value":524},"MSTest.Sdk",{"type":46,"value":526}," only when the project already uses it elsewhere or the user explicitly requests it. ",{"type":40,"tag":124,"props":528,"children":530},{"className":529},[],[531],{"type":46,"value":524},{"type":46,"value":533}," defaults to MTP, so add ",{"type":40,"tag":124,"props":535,"children":537},{"className":536},[],[538],{"type":46,"value":539},"\u003CUseVSTest>true\u003C\u002FUseVSTest>",{"type":46,"value":541}," when preserving VSTest.",{"type":40,"tag":49,"props":543,"children":544},{},[545,547,553,555,560],{"type":46,"value":546},"Do not change ",{"type":40,"tag":124,"props":548,"children":550},{"className":549},[],[551],{"type":46,"value":552},"TargetFramework",{"type":46,"value":554},". Remove ",{"type":40,"tag":124,"props":556,"children":558},{"className":557},[],[559],{"type":46,"value":423},{"type":46,"value":561}," only after porting its relevant settings.",{"type":40,"tag":200,"props":563,"children":565},{"id":564},"_3-perform-the-mechanical-conversion",[566],{"type":46,"value":567},"3. Perform the mechanical conversion",{"type":40,"tag":49,"props":569,"children":570},{},[571],{"type":46,"value":572},"Apply the common rewrites first:",{"type":40,"tag":574,"props":575,"children":576},"table",{},[577,596],{"type":40,"tag":578,"props":579,"children":580},"thead",{},[581],{"type":40,"tag":582,"props":583,"children":584},"tr",{},[585,591],{"type":40,"tag":586,"props":587,"children":588},"th",{},[589],{"type":46,"value":590},"xUnit",{"type":40,"tag":586,"props":592,"children":593},{},[594],{"type":46,"value":595},"MSTest",{"type":40,"tag":597,"props":598,"children":599},"tbody",{},[600,618,639,674,695,722,743,764,787,823,858],{"type":40,"tag":582,"props":601,"children":602},{},[603,609],{"type":40,"tag":604,"props":605,"children":606},"td",{},[607],{"type":46,"value":608},"no class attribute",{"type":40,"tag":604,"props":610,"children":611},{},[612],{"type":40,"tag":124,"props":613,"children":615},{"className":614},[],[616],{"type":46,"value":617},"[TestClass]",{"type":40,"tag":582,"props":619,"children":620},{},[621,630],{"type":40,"tag":604,"props":622,"children":623},{},[624],{"type":40,"tag":124,"props":625,"children":627},{"className":626},[],[628],{"type":46,"value":629},"[Fact]",{"type":40,"tag":604,"props":631,"children":632},{},[633],{"type":40,"tag":124,"props":634,"children":636},{"className":635},[],[637],{"type":46,"value":638},"[TestMethod]",{"type":40,"tag":582,"props":640,"children":641},{},[642,659],{"type":40,"tag":604,"props":643,"children":644},{},[645,651,653],{"type":40,"tag":124,"props":646,"children":648},{"className":647},[],[649],{"type":46,"value":650},"[Theory]",{"type":46,"value":652}," + ",{"type":40,"tag":124,"props":654,"children":656},{"className":655},[],[657],{"type":46,"value":658},"[InlineData]",{"type":40,"tag":604,"props":660,"children":661},{},[662,667,668],{"type":40,"tag":124,"props":663,"children":665},{"className":664},[],[666],{"type":46,"value":638},{"type":46,"value":652},{"type":40,"tag":124,"props":669,"children":671},{"className":670},[],[672],{"type":46,"value":673},"[DataRow]",{"type":40,"tag":582,"props":675,"children":676},{},[677,686],{"type":40,"tag":604,"props":678,"children":679},{},[680],{"type":40,"tag":124,"props":681,"children":683},{"className":682},[],[684],{"type":46,"value":685},"[MemberData]",{"type":40,"tag":604,"props":687,"children":688},{},[689],{"type":40,"tag":124,"props":690,"children":692},{"className":691},[],[693],{"type":46,"value":694},"[DynamicData]",{"type":40,"tag":582,"props":696,"children":697},{},[698,707],{"type":40,"tag":604,"props":699,"children":700},{},[701],{"type":40,"tag":124,"props":702,"children":704},{"className":703},[],[705],{"type":46,"value":706},"[Fact(Skip = \"...\")]",{"type":40,"tag":604,"props":708,"children":709},{},[710,715,716],{"type":40,"tag":124,"props":711,"children":713},{"className":712},[],[714],{"type":46,"value":638},{"type":46,"value":652},{"type":40,"tag":124,"props":717,"children":719},{"className":718},[],[720],{"type":46,"value":721},"[Ignore(\"...\")]",{"type":40,"tag":582,"props":723,"children":724},{},[725,734],{"type":40,"tag":604,"props":726,"children":727},{},[728],{"type":40,"tag":124,"props":729,"children":731},{"className":730},[],[732],{"type":46,"value":733},"[Trait(\"Category\", value)]",{"type":40,"tag":604,"props":735,"children":736},{},[737],{"type":40,"tag":124,"props":738,"children":740},{"className":739},[],[741],{"type":46,"value":742},"[TestCategory(value)]",{"type":40,"tag":582,"props":744,"children":745},{},[746,755],{"type":40,"tag":604,"props":747,"children":748},{},[749],{"type":40,"tag":124,"props":750,"children":752},{"className":751},[],[753],{"type":46,"value":754},"[Trait(\"Owner\", value)]",{"type":40,"tag":604,"props":756,"children":757},{},[758],{"type":40,"tag":124,"props":759,"children":761},{"className":760},[],[762],{"type":46,"value":763},"[Owner(value)]",{"type":40,"tag":582,"props":765,"children":766},{},[767,778],{"type":40,"tag":604,"props":768,"children":769},{},[770,772],{"type":46,"value":771},"other ",{"type":40,"tag":124,"props":773,"children":775},{"className":774},[],[776],{"type":46,"value":777},"[Trait(key, value)]",{"type":40,"tag":604,"props":779,"children":780},{},[781],{"type":40,"tag":124,"props":782,"children":784},{"className":783},[],[785],{"type":46,"value":786},"[TestProperty(key, value)]",{"type":40,"tag":582,"props":788,"children":789},{},[790,807],{"type":40,"tag":604,"props":791,"children":792},{},[793,799,801],{"type":40,"tag":124,"props":794,"children":796},{"className":795},[],[797],{"type":46,"value":798},"Assert.Equal",{"type":46,"value":800}," \u002F ",{"type":40,"tag":124,"props":802,"children":804},{"className":803},[],[805],{"type":46,"value":806},"NotEqual",{"type":40,"tag":604,"props":808,"children":809},{},[810,816,817],{"type":40,"tag":124,"props":811,"children":813},{"className":812},[],[814],{"type":46,"value":815},"Assert.AreEqual",{"type":46,"value":800},{"type":40,"tag":124,"props":818,"children":820},{"className":819},[],[821],{"type":46,"value":822},"AreNotEqual",{"type":40,"tag":582,"props":824,"children":825},{},[826,842],{"type":40,"tag":604,"props":827,"children":828},{},[829,835,836],{"type":40,"tag":124,"props":830,"children":832},{"className":831},[],[833],{"type":46,"value":834},"Assert.True",{"type":46,"value":800},{"type":40,"tag":124,"props":837,"children":839},{"className":838},[],[840],{"type":46,"value":841},"False",{"type":40,"tag":604,"props":843,"children":844},{},[845,851,852],{"type":40,"tag":124,"props":846,"children":848},{"className":847},[],[849],{"type":46,"value":850},"Assert.IsTrue",{"type":46,"value":800},{"type":40,"tag":124,"props":853,"children":855},{"className":854},[],[856],{"type":46,"value":857},"IsFalse",{"type":40,"tag":582,"props":859,"children":860},{},[861,877],{"type":40,"tag":604,"props":862,"children":863},{},[864,870,871],{"type":40,"tag":124,"props":865,"children":867},{"className":866},[],[868],{"type":46,"value":869},"Assert.Null",{"type":46,"value":800},{"type":40,"tag":124,"props":872,"children":874},{"className":873},[],[875],{"type":46,"value":876},"NotNull",{"type":40,"tag":604,"props":878,"children":879},{},[880,886,887],{"type":40,"tag":124,"props":881,"children":883},{"className":882},[],[884],{"type":46,"value":885},"Assert.IsNull",{"type":46,"value":800},{"type":40,"tag":124,"props":888,"children":890},{"className":889},[],[891],{"type":46,"value":892},"IsNotNull",{"type":40,"tag":49,"props":894,"children":895},{},[896,898,904,906,912,914,920,922,927],{"type":46,"value":897},"Remove ",{"type":40,"tag":124,"props":899,"children":901},{"className":900},[],[902],{"type":46,"value":903},"using Xunit;",{"type":46,"value":905}," and ",{"type":40,"tag":124,"props":907,"children":909},{"className":908},[],[910],{"type":46,"value":911},"using Xunit.Abstractions;",{"type":46,"value":913},". Add ",{"type":40,"tag":124,"props":915,"children":917},{"className":916},[],[918],{"type":46,"value":919},"using Microsoft.VisualStudio.TestTools.UnitTesting;",{"type":46,"value":921}," for the metapackage option; ",{"type":40,"tag":124,"props":923,"children":925},{"className":924},[],[926],{"type":46,"value":524},{"type":46,"value":928}," supplies it as an implicit global using.",{"type":40,"tag":49,"props":930,"children":931},{},[932],{"type":46,"value":933},"Preserve existing class inheritance. Do not mechanically seal classes.",{"type":40,"tag":200,"props":935,"children":937},{"id":936},"_4-resolve-semantic-mappings",[938],{"type":46,"value":939},"4. Resolve semantic mappings",{"type":40,"tag":49,"props":941,"children":942},{},[943],{"type":46,"value":944},"Load the mapping cheatsheet for every high-risk construct found in Step 1. These rules are mandatory:",{"type":40,"tag":78,"props":946,"children":947},{},[948,969,987,1022,1055,1080,1090,1124,1156],{"type":40,"tag":82,"props":949,"children":950},{},[951,953,959,961,967],{"type":46,"value":952},"xUnit ",{"type":40,"tag":124,"props":954,"children":956},{"className":955},[],[957],{"type":46,"value":958},"Assert.Throws\u003CT>",{"type":46,"value":960}," is exact-type and maps to MSTest ",{"type":40,"tag":124,"props":962,"children":964},{"className":963},[],[965],{"type":46,"value":966},"Assert.ThrowsExactly\u003CT>",{"type":46,"value":968},".",{"type":40,"tag":82,"props":970,"children":971},{},[972,973,979,981,986],{"type":46,"value":952},{"type":40,"tag":124,"props":974,"children":976},{"className":975},[],[977],{"type":46,"value":978},"Assert.ThrowsAny\u003CT>",{"type":46,"value":980}," permits derived types and maps to MSTest ",{"type":40,"tag":124,"props":982,"children":984},{"className":983},[],[985],{"type":46,"value":958},{"type":46,"value":968},{"type":40,"tag":82,"props":988,"children":989},{},[990,991,997,999,1005,1007,1013,1015,1021],{"type":46,"value":952},{"type":40,"tag":124,"props":992,"children":994},{"className":993},[],[995],{"type":46,"value":996},"Assert.IsType\u003CT>",{"type":46,"value":998}," is exact-type and maps to ",{"type":40,"tag":124,"props":1000,"children":1002},{"className":1001},[],[1003],{"type":46,"value":1004},"Assert.IsExactInstanceOfType\u003CT>",{"type":46,"value":1006},"; ",{"type":40,"tag":124,"props":1008,"children":1010},{"className":1009},[],[1011],{"type":46,"value":1012},"Assert.IsAssignableFrom\u003CT>",{"type":46,"value":1014}," maps to ",{"type":40,"tag":124,"props":1016,"children":1018},{"className":1017},[],[1019],{"type":46,"value":1020},"Assert.IsInstanceOfType\u003CT>",{"type":46,"value":968},{"type":40,"tag":82,"props":1023,"children":1024},{},[1025,1026,1031,1033,1039,1041,1047,1049,1054],{"type":46,"value":952},{"type":40,"tag":124,"props":1027,"children":1029},{"className":1028},[],[1030],{"type":46,"value":798},{"type":46,"value":1032}," on sequences compares elements. Use ",{"type":40,"tag":124,"props":1034,"children":1036},{"className":1035},[],[1037],{"type":46,"value":1038},"Assert.AreSequenceEqual",{"type":46,"value":1040}," on MSTest 4.3+ or ",{"type":40,"tag":124,"props":1042,"children":1044},{"className":1043},[],[1045],{"type":46,"value":1046},"CollectionAssert.AreEqual",{"type":46,"value":1048}," with materialized lists on earlier v4; never replace sequence equality with reference-based ",{"type":40,"tag":124,"props":1050,"children":1052},{"className":1051},[],[1053],{"type":46,"value":815},{"type":46,"value":968},{"type":40,"tag":82,"props":1056,"children":1057},{},[1058,1064,1065,1071,1073,1078],{"type":40,"tag":124,"props":1059,"children":1061},{"className":1060},[],[1062],{"type":46,"value":1063},"[Ignore]",{"type":46,"value":905},{"type":40,"tag":124,"props":1066,"children":1068},{"className":1067},[],[1069],{"type":46,"value":1070},"[Timeout]",{"type":46,"value":1072}," are modifiers; keep ",{"type":40,"tag":124,"props":1074,"children":1076},{"className":1075},[],[1077],{"type":46,"value":638},{"type":46,"value":1079}," so the test is discovered.",{"type":40,"tag":82,"props":1081,"children":1082},{},[1083,1088],{"type":40,"tag":124,"props":1084,"children":1086},{"className":1085},[],[1087],{"type":46,"value":673},{"type":46,"value":1089}," values must exactly match parameter types.",{"type":40,"tag":82,"props":1091,"children":1092},{},[1093,1099,1101,1107,1109,1115,1117,1123],{"type":40,"tag":124,"props":1094,"children":1096},{"className":1095},[],[1097],{"type":46,"value":1098},"TestContext.Current.CancellationToken",{"type":46,"value":1100}," maps to an injected MSTest ",{"type":40,"tag":124,"props":1102,"children":1104},{"className":1103},[],[1105],{"type":46,"value":1106},"TestContext.CancellationToken",{"type":46,"value":1108},"; never replace it with ",{"type":40,"tag":124,"props":1110,"children":1112},{"className":1111},[],[1113],{"type":46,"value":1114},"CancellationToken.None",{"type":46,"value":1116}," or a new ",{"type":40,"tag":124,"props":1118,"children":1120},{"className":1119},[],[1121],{"type":46,"value":1122},"CancellationTokenSource",{"type":46,"value":968},{"type":40,"tag":82,"props":1125,"children":1126},{},[1127,1133,1135,1140,1142,1147,1149,1155],{"type":40,"tag":124,"props":1128,"children":1130},{"className":1129},[],[1131],{"type":46,"value":1132},"Owner",{"type":46,"value":1134}," is a reserved VSTest property. Map ",{"type":40,"tag":124,"props":1136,"children":1138},{"className":1137},[],[1139],{"type":46,"value":754},{"type":46,"value":1141}," to ",{"type":40,"tag":124,"props":1143,"children":1145},{"className":1144},[],[1146],{"type":46,"value":763},{"type":46,"value":1148},", not ",{"type":40,"tag":124,"props":1150,"children":1152},{"className":1151},[],[1153],{"type":46,"value":1154},"[TestProperty(\"Owner\", value)]",{"type":46,"value":968},{"type":40,"tag":82,"props":1157,"children":1158},{},[1159,1161,1167,1168,1174,1175,1181,1182,1187],{"type":46,"value":1160},"Assertions with no MSTest equivalent (",{"type":40,"tag":124,"props":1162,"children":1164},{"className":1163},[],[1165],{"type":46,"value":1166},"Assert.Collection",{"type":46,"value":222},{"type":40,"tag":124,"props":1169,"children":1171},{"className":1170},[],[1172],{"type":46,"value":1173},"Assert.All",{"type":46,"value":222},{"type":40,"tag":124,"props":1176,"children":1178},{"className":1177},[],[1179],{"type":46,"value":1180},"Assert.Equivalent",{"type":46,"value":222},{"type":40,"tag":124,"props":1183,"children":1185},{"className":1184},[],[1186],{"type":46,"value":382},{"type":46,"value":1188},", event assertions) require an explicit manual rewrite. Never delete an assertion without replacing its verification.",{"type":40,"tag":49,"props":1190,"children":1191},{},[1192],{"type":46,"value":1193},"Apply the mechanical and semantic rewrites in one edit pass when the inventory makes the required mappings clear. Do not run an intermediate build by default; use compiler errors from final verification to drive only unresolved conversions.",{"type":40,"tag":200,"props":1195,"children":1197},{"id":1196},"_5-preserve-lifecycle-fixture-scope-and-parallelization",[1198],{"type":46,"value":1199},"5. Preserve lifecycle, fixture scope, and parallelization",{"type":40,"tag":78,"props":1201,"children":1202},{},[1203,1243,1256,1285],{"type":40,"tag":82,"props":1204,"children":1205},{},[1206,1208,1214,1215,1221,1223,1228,1229,1235,1236,1242],{"type":46,"value":1207},"Keep constructor setup and ",{"type":40,"tag":124,"props":1209,"children":1211},{"className":1210},[],[1212],{"type":46,"value":1213},"IDisposable",{"type":46,"value":339},{"type":40,"tag":124,"props":1216,"children":1218},{"className":1217},[],[1219],{"type":46,"value":1220},"IAsyncDisposable",{"type":46,"value":1222}," when valid. Map ",{"type":40,"tag":124,"props":1224,"children":1226},{"className":1225},[],[1227],{"type":46,"value":407},{"type":46,"value":1141},{"type":40,"tag":124,"props":1230,"children":1232},{"className":1231},[],[1233],{"type":46,"value":1234},"[TestInitialize]",{"type":46,"value":339},{"type":40,"tag":124,"props":1237,"children":1239},{"className":1238},[],[1240],{"type":46,"value":1241},"[TestCleanup]",{"type":46,"value":968},{"type":40,"tag":82,"props":1244,"children":1245},{},[1246,1248,1254],{"type":46,"value":1247},"Map ",{"type":40,"tag":124,"props":1249,"children":1251},{"className":1250},[],[1252],{"type":46,"value":1253},"IClassFixture\u003CT>",{"type":46,"value":1255}," to class-scoped initialization and cleanup.",{"type":40,"tag":82,"props":1257,"children":1258},{},[1259,1261,1267,1269,1275,1277,1283],{"type":46,"value":1260},"For ",{"type":40,"tag":124,"props":1262,"children":1264},{"className":1263},[],[1265],{"type":46,"value":1266},"ICollectionFixture\u003CT>",{"type":46,"value":1268},", preserve both sharing and serialization. Prefer a static ",{"type":40,"tag":124,"props":1270,"children":1272},{"className":1271},[],[1273],{"type":46,"value":1274},"Lazy\u003CT>",{"type":46,"value":1276}," helper used by each member class; add ",{"type":40,"tag":124,"props":1278,"children":1280},{"className":1279},[],[1281],{"type":46,"value":1282},"[DoNotParallelize]",{"type":46,"value":1284}," only when the source collection disabled parallelization. Use assembly initialization only when the fixture is genuinely assembly-wide.",{"type":40,"tag":82,"props":1286,"children":1287},{},[1288,1290,1295,1297,1303],{"type":46,"value":1289},"Replace ",{"type":40,"tag":124,"props":1291,"children":1293},{"className":1292},[],[1294],{"type":46,"value":393},{"type":46,"value":1296}," with injected or property-based MSTest ",{"type":40,"tag":124,"props":1298,"children":1300},{"className":1299},[],[1301],{"type":46,"value":1302},"TestContext",{"type":46,"value":968},{"type":40,"tag":49,"props":1305,"children":1306},{},[1307],{"type":46,"value":1308},"xUnit runs classes in parallel by default; MSTest runs them serially. Unless the source disabled parallelism, preserve xUnit behavior with:",{"type":40,"tag":471,"props":1310,"children":1314},{"className":1311,"code":1312,"language":1313,"meta":476,"style":476},"language-csharp shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[assembly: Parallelize(Workers = 0, Scope = ExecutionScope.ClassLevel)]\n","csharp",[1315],{"type":40,"tag":124,"props":1316,"children":1317},{"__ignoreMap":476},[1318],{"type":40,"tag":482,"props":1319,"children":1320},{"class":484,"line":485},[1321],{"type":40,"tag":482,"props":1322,"children":1323},{},[1324],{"type":46,"value":1312},{"type":40,"tag":49,"props":1326,"children":1327},{},[1328,1330,1336],{"type":46,"value":1329},"Never use ",{"type":40,"tag":124,"props":1331,"children":1333},{"className":1332},[],[1334],{"type":46,"value":1335},"ExecutionScope.MethodLevel",{"type":46,"value":1337}," to emulate xUnit. Before applying a fixture-scope or parallelization decision, state what the source shared or serialized and how the target preserves it.",{"type":40,"tag":200,"props":1339,"children":1341},{"id":1340},"_6-verify-parity",[1342],{"type":46,"value":1343},"6. Verify parity",{"type":40,"tag":207,"props":1345,"children":1346},{},[1347,1359,1364,1415],{"type":40,"tag":82,"props":1348,"children":1349},{},[1350,1352,1357],{"type":46,"value":1351},"Run tests once with the same platform, filter, and configuration used for the baseline. ",{"type":40,"tag":124,"props":1353,"children":1355},{"className":1354},[],[1356],{"type":46,"value":147},{"type":46,"value":1358}," builds by default; run a separate build only when needed to isolate a compilation failure.",{"type":40,"tag":82,"props":1360,"children":1361},{},[1362],{"type":46,"value":1363},"Compare discovered, passed, failed, and skipped counts.",{"type":40,"tag":82,"props":1365,"children":1366},{},[1367,1369],{"type":46,"value":1368},"Investigate every difference before declaring completion:\n",{"type":40,"tag":78,"props":1370,"children":1371},{},[1372,1393,1398,1403],{"type":40,"tag":82,"props":1373,"children":1374},{},[1375,1377,1383,1385,1391],{"type":46,"value":1376},"missing cases -> discovery attributes, ",{"type":40,"tag":124,"props":1378,"children":1380},{"className":1379},[],[1381],{"type":46,"value":1382},"DynamicData",{"type":46,"value":1384},", or ",{"type":40,"tag":124,"props":1386,"children":1388},{"className":1387},[],[1389],{"type":46,"value":1390},"DataRow",{"type":46,"value":1392}," literal types",{"type":40,"tag":82,"props":1394,"children":1395},{},[1396],{"type":46,"value":1397},"changed exception behavior -> exact-vs-derived assertion mapping",{"type":40,"tag":82,"props":1399,"children":1400},{},[1401],{"type":46,"value":1402},"shared-state failures or large duration changes -> fixture scope and parallelization",{"type":40,"tag":82,"props":1404,"children":1405},{},[1406,1408,1413],{"type":46,"value":1407},"silently skipped tests -> missing ",{"type":40,"tag":124,"props":1409,"children":1411},{"className":1410},[],[1412],{"type":46,"value":638},{"type":46,"value":1414}," or incorrect runtime-skip conversion",{"type":40,"tag":82,"props":1416,"children":1417},{},[1418],{"type":46,"value":1419},"Confirm no xUnit package, namespace, attribute, runner configuration, or fixture interface remains unless explicitly documented for manual follow-up.",{"type":40,"tag":55,"props":1421,"children":1423},{"id":1422},"completion-criteria",[1424],{"type":46,"value":1425},"Completion Criteria",{"type":40,"tag":78,"props":1427,"children":1428},{},[1429,1434,1439,1444,1449,1454,1459],{"type":40,"tag":82,"props":1430,"children":1431},{},[1432],{"type":46,"value":1433},"Current xUnit version and test platform were identified",{"type":40,"tag":82,"props":1435,"children":1436},{},[1437],{"type":46,"value":1438},"xUnit packages and source constructs were converted",{"type":40,"tag":82,"props":1440,"children":1441},{},[1442],{"type":46,"value":1443},"Target framework and test platform stayed unchanged",{"type":40,"tag":82,"props":1445,"children":1446},{},[1447],{"type":46,"value":1448},"Fixture scope and parallelization decisions are explicit",{"type":40,"tag":82,"props":1450,"children":1451},{},[1452],{"type":46,"value":1453},"Build succeeds",{"type":40,"tag":82,"props":1455,"children":1456},{},[1457],{"type":46,"value":1458},"Test discovery and result counts match the baseline",{"type":40,"tag":82,"props":1460,"children":1461},{},[1462],{"type":46,"value":1463},"Any unsupported custom extension point is called out rather than approximated",{"type":40,"tag":55,"props":1465,"children":1467},{"id":1466},"follow-up",[1468],{"type":46,"value":1469},"Follow-up",{"type":40,"tag":49,"props":1471,"children":1472},{},[1473,1475,1481,1483,1489],{"type":46,"value":1474},"Run ",{"type":40,"tag":124,"props":1476,"children":1478},{"className":1477},[],[1479],{"type":46,"value":1480},"migrate-vstest-to-mtp",{"type":46,"value":1482}," separately if the user also wants MTP. Use ",{"type":40,"tag":124,"props":1484,"children":1486},{"className":1485},[],[1487],{"type":46,"value":1488},"writing-mstest-tests",{"type":46,"value":1490}," only after parity is established to polish the converted MSTest code.",{"type":40,"tag":1492,"props":1493,"children":1494},"style",{},[1495],{"type":46,"value":1496},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1498,"total":1604},[1499,1516,1531,1549,1561,1580,1590],{"slug":1500,"name":1500,"fn":1501,"description":1502,"org":1503,"tags":1504,"stars":22,"repoUrl":23,"updatedAt":1515},"analyzing-dotnet-performance","analyze .NET code for performance anti-patterns","Scans .NET code for ~50 performance anti-patterns across async, memory, strings, collections, LINQ, regex, serialization, and I\u002FO with tiered severity classification. Use when analyzing .NET code for optimization opportunities, reviewing hot paths, or auditing allocation-heavy patterns.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1505,1506,1509,1512],{"name":13,"slug":14,"type":15},{"name":1507,"slug":1508,"type":15},"Code Analysis","code-analysis",{"name":1510,"slug":1511,"type":15},"Debugging","debugging",{"name":1513,"slug":1514,"type":15},"Performance","performance","2026-07-12T08:23:25.400375",{"slug":1517,"name":1517,"fn":1518,"description":1519,"org":1520,"tags":1521,"stars":22,"repoUrl":23,"updatedAt":1530},"android-tombstone-symbolication","symbolicate .NET runtime frames in Android tombstones","Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app crash from a tombstone, resolving native backtrace frames in libmonosgen-2.0.so or libcoreclr.so to .NET runtime source code, or investigating SIGABRT, SIGSEGV, or other native signals originating from the .NET runtime on Android. DO NOT USE FOR pure Java\u002FKotlin crashes, managed .NET exceptions that are already captured in logcat, or iOS crash logs. INVOKES Symbolicate-Tombstone.ps1 script, llvm-symbolizer, Microsoft symbol server.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1522,1523,1526,1527],{"name":13,"slug":14,"type":15},{"name":1524,"slug":1525,"type":15},"Android","android",{"name":1510,"slug":1511,"type":15},{"name":1528,"slug":1529,"type":15},"Microsoft","microsoft","2026-07-12T08:23:21.595572",{"slug":1532,"name":1532,"fn":1533,"description":1534,"org":1535,"tags":1536,"stars":22,"repoUrl":23,"updatedAt":1548},"apple-crash-symbolication","symbolicate .NET runtime frames in crash logs","Symbolicate .NET runtime frames in Apple platform .ips crash logs (iOS, tvOS, Mac Catalyst, macOS). Extracts UUIDs and addresses from the native backtrace, locates dSYM debug symbols, and runs atos to produce function names with source file and line numbers. Automatically downloads .dwarf symbols from the Microsoft symbol server using Mach-O UUIDs. USE FOR triaging a .NET MAUI or Mono app crash from an .ips file on any Apple platform, resolving native backtrace frames in libcoreclr or libmonosgen-2.0 to .NET runtime source code, retrieving .ips crash logs from a connected iOS device or iPhone, or investigating EXC_CRASH, EXC_BAD_ACCESS, SIGABRT, or SIGSEGV originating from the .NET runtime. DO NOT USE FOR pure Swift\u002FObjective-C crashes with no .NET components, or Android tombstone files. INVOKES Symbolicate-Crash.ps1 script, atos, dwarfdump, idevicecrashreport.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1537,1538,1539,1542,1545],{"name":13,"slug":14,"type":15},{"name":1510,"slug":1511,"type":15},{"name":1540,"slug":1541,"type":15},"iOS","ios",{"name":1543,"slug":1544,"type":15},"macOS","macos",{"name":1546,"slug":1547,"type":15},"Observability","observability","2026-07-12T08:23:20.369986",{"slug":1550,"name":1550,"fn":1551,"description":1552,"org":1553,"tags":1554,"stars":22,"repoUrl":23,"updatedAt":1560},"assertion-quality","evaluate assertion quality in test suites","Analyzes the variety and depth of assertions across test suites in any language. Use when the user asks to evaluate assertion quality, find shallow tests, identify assertion-free tests (no assertions or only trivial ones like Assert.IsNotNull \u002F toBeTruthy()), flag self-referential or tautological assertions, measure assertion diversity, or audit whether tests verify different facets of behavior. Polyglot: .NET, Python, TS\u002FJS, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, C++. DO NOT USE FOR: writing new tests (use code-testing-agent \u002F writing-mstest-tests), mutation reasoning about whether tests would catch a bug (use test-gap-analysis), or a general severity-ranked anti-pattern audit (use test-anti-patterns), fixing or rewriting assertions, or writing, fixing, or modernizing MSTest tests, assertions, or attributes (use writing-mstest-tests).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1555,1556,1559],{"name":1507,"slug":1508,"type":15},{"name":1557,"slug":1558,"type":15},"QA","qa",{"name":20,"slug":21,"type":15},"2026-07-12T08:23:51.277743",{"slug":1562,"name":1562,"fn":1563,"description":1564,"org":1565,"tags":1566,"stars":22,"repoUrl":23,"updatedAt":1579},"author-component","create and review Blazor components","Create or review Blazor components (.razor files) with correct architecture. USE FOR: writing new Blazor components that do NOT involve JavaScript interop, implementing parameters and EventCallback, RenderFragment slots, component lifecycle (OnInitializedAsync, OnParametersSet), async patterns, IAsyncDisposable, CancellationToken, CSS isolation, code-behind. DO NOT USE FOR: creating new projects (use create-blazor-project), JavaScript interop or calling browser APIs from Blazor (use use-js-interop), forms and validation (use collect-user-input), prerendering issues (use support-prerendering), HTTP data fetching patterns (use fetch-and-send-data), coordinating state between unrelated components (use coordinate-components).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1567,1568,1571,1573,1576],{"name":13,"slug":14,"type":15},{"name":1569,"slug":1570,"type":15},"Blazor","blazor",{"name":1572,"slug":1313,"type":15},"C#",{"name":1574,"slug":1575,"type":15},"UI Components","ui-components",{"name":1577,"slug":1578,"type":15},"Web Development","web-development","2026-07-15T06:03:29.216359",{"slug":1581,"name":1581,"fn":1582,"description":1583,"org":1584,"tags":1585,"stars":22,"repoUrl":23,"updatedAt":1589},"binlog-failure-analysis","analyze MSBuild binary logs","Analyze MSBuild binary logs to diagnose build failures. USE FOR: build errors that are unclear from console output, diagnosing cascading failures across multi-project builds, tracing MSBuild target execution order, and generally any MSBuild build issues. Requires an existing .binlog file. DO NOT USE FOR: generating binlogs (use binlog-generation), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1586,1587,1588],{"name":1507,"slug":1508,"type":15},{"name":1510,"slug":1511,"type":15},{"name":1528,"slug":1529,"type":15},"2026-07-12T08:21:34.637923",{"slug":1591,"name":1591,"fn":1592,"description":1593,"org":1594,"tags":1595,"stars":22,"repoUrl":23,"updatedAt":1603},"binlog-generation","generate MSBuild binary logs for diagnostics","Generate MSBuild binary logs (binlogs) for build diagnostics and analysis. USE FOR: adding \u002Fbl:{} to any dotnet build, test, pack, publish, or restore command to capture a full build execution trace, prerequisite for binlog-failure-analysis and build-perf-diagnostics skills, enabling post-build investigation of errors or performance. Requires MSBuild 17.8+ \u002F .NET 8 SDK+ for {} placeholder; PowerShell needs -bl:{{}}. DO NOT USE FOR: non-MSBuild build systems (npm, Maven, CMake), analyzing an existing binlog (use binlog-failure-analysis instead).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1596,1599,1600],{"name":1597,"slug":1598,"type":15},"Build","build",{"name":1510,"slug":1511,"type":15},{"name":1601,"slug":1602,"type":15},"Engineering","engineering","2026-07-19T05:38:19.340791",96,{"items":1606,"total":1711},[1607,1619,1626,1633,1641,1647,1655,1661,1667,1677,1690,1701],{"slug":1608,"name":1608,"fn":1609,"description":1610,"org":1611,"tags":1612,"stars":1616,"repoUrl":1617,"updatedAt":1618},"multithreaded-task-migration","migrate MSBuild tasks to multithreaded mode","Guide for migrating MSBuild tasks to multithreaded mode support, including compatibility red-team review. Use this when converting tasks to thread-safe versions, implementing IMultiThreadableTask, adding TaskEnvironment support, or auditing migrations for behavioral compatibility.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1613,1614,1615],{"name":13,"slug":14,"type":15},{"name":1601,"slug":1602,"type":15},{"name":1513,"slug":1514,"type":15},5535,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmsbuild","2026-07-22T05:37:33.965588",{"slug":1500,"name":1500,"fn":1501,"description":1502,"org":1620,"tags":1621,"stars":22,"repoUrl":23,"updatedAt":1515},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1622,1623,1624,1625],{"name":13,"slug":14,"type":15},{"name":1507,"slug":1508,"type":15},{"name":1510,"slug":1511,"type":15},{"name":1513,"slug":1514,"type":15},{"slug":1517,"name":1517,"fn":1518,"description":1519,"org":1627,"tags":1628,"stars":22,"repoUrl":23,"updatedAt":1530},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1629,1630,1631,1632],{"name":13,"slug":14,"type":15},{"name":1524,"slug":1525,"type":15},{"name":1510,"slug":1511,"type":15},{"name":1528,"slug":1529,"type":15},{"slug":1532,"name":1532,"fn":1533,"description":1534,"org":1634,"tags":1635,"stars":22,"repoUrl":23,"updatedAt":1548},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1636,1637,1638,1639,1640],{"name":13,"slug":14,"type":15},{"name":1510,"slug":1511,"type":15},{"name":1540,"slug":1541,"type":15},{"name":1543,"slug":1544,"type":15},{"name":1546,"slug":1547,"type":15},{"slug":1550,"name":1550,"fn":1551,"description":1552,"org":1642,"tags":1643,"stars":22,"repoUrl":23,"updatedAt":1560},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1644,1645,1646],{"name":1507,"slug":1508,"type":15},{"name":1557,"slug":1558,"type":15},{"name":20,"slug":21,"type":15},{"slug":1562,"name":1562,"fn":1563,"description":1564,"org":1648,"tags":1649,"stars":22,"repoUrl":23,"updatedAt":1579},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1650,1651,1652,1653,1654],{"name":13,"slug":14,"type":15},{"name":1569,"slug":1570,"type":15},{"name":1572,"slug":1313,"type":15},{"name":1574,"slug":1575,"type":15},{"name":1577,"slug":1578,"type":15},{"slug":1581,"name":1581,"fn":1582,"description":1583,"org":1656,"tags":1657,"stars":22,"repoUrl":23,"updatedAt":1589},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1658,1659,1660],{"name":1507,"slug":1508,"type":15},{"name":1510,"slug":1511,"type":15},{"name":1528,"slug":1529,"type":15},{"slug":1591,"name":1591,"fn":1592,"description":1593,"org":1662,"tags":1663,"stars":22,"repoUrl":23,"updatedAt":1603},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1664,1665,1666],{"name":1597,"slug":1598,"type":15},{"name":1510,"slug":1511,"type":15},{"name":1601,"slug":1602,"type":15},{"slug":1668,"name":1668,"fn":1669,"description":1670,"org":1671,"tags":1672,"stars":22,"repoUrl":23,"updatedAt":1676},"build-parallelism","optimize MSBuild build parallelism","Diagnose and fix under-parallelized MSBuild builds. USE WHEN a multi-project solution build is slower than expected, doesn't speed up when you add cores, pegs a single core while others idle, or you want to know why `-m` isn't helping. Note: `\u002Fmaxcpucount` default is 1 (sequential) — always pass `-m` for parallel builds. Covers finding the critical path (longest serial ProjectReference chain), graph build (`\u002Fgraph`), BuildInParallel, and solution filters (`.slnf`). DO NOT USE FOR: single-project builds, incremental issues (use incremental-build), compilation slowness inside one project (use build-perf-diagnostics), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1673,1674,1675],{"name":13,"slug":14,"type":15},{"name":1601,"slug":1602,"type":15},{"name":1513,"slug":1514,"type":15},"2026-07-19T05:38:18.364937",{"slug":1678,"name":1678,"fn":1679,"description":1680,"org":1681,"tags":1682,"stars":22,"repoUrl":23,"updatedAt":1689},"build-perf-baseline","establish and optimize build performance baselines","Establish build performance baselines and apply systematic optimization techniques. USE FOR: diagnosing slow builds, establishing before\u002Fafter measurements (cold, warm, no-op scenarios), applying optimization strategies like MSBuild Server, static graph builds, artifacts output, and dependency graph trimming. Start here before diving into build-perf-diagnostics, incremental-build, or build-parallelism. DO NOT USE FOR: non-MSBuild build systems, detailed bottleneck analysis (use build-perf-diagnostics after baselining).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1683,1684,1687,1688],{"name":1601,"slug":1602,"type":15},{"name":1685,"slug":1686,"type":15},"Monitoring","monitoring",{"name":1513,"slug":1514,"type":15},{"name":20,"slug":21,"type":15},"2026-07-12T08:21:35.865649",{"slug":1691,"name":1691,"fn":1692,"description":1693,"org":1694,"tags":1695,"stars":22,"repoUrl":23,"updatedAt":1700},"build-perf-diagnostics","diagnose MSBuild build performance bottlenecks","Diagnose MSBuild build performance bottlenecks using binary log analysis. USE FOR: identifying why builds are slow by analyzing binlog performance summaries, detecting ResolveAssemblyReference (RAR) taking >5s, Roslyn analyzers consuming >30% of Csc time, single targets dominating >50% of build time, node utilization below 80%, excessive Copy tasks, NuGet restore running every build. Covers timeline analysis, Target\u002FTask Performance Summary interpretation, and 7 common bottleneck categories. Use after build-perf-baseline has established measurements. DO NOT USE FOR: establishing initial baselines (use build-perf-baseline first), fixing incremental build issues (use incremental-build), parallelism tuning (use build-parallelism), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1696,1697,1698,1699],{"name":13,"slug":14,"type":15},{"name":1510,"slug":1511,"type":15},{"name":1601,"slug":1602,"type":15},{"name":1513,"slug":1514,"type":15},"2026-07-12T08:21:40.961722",{"slug":1702,"name":1702,"fn":1703,"description":1704,"org":1705,"tags":1706,"stars":22,"repoUrl":23,"updatedAt":1710},"check-bin-obj-clash","detect MSBuild output path conflicts","Detects MSBuild projects with conflicting OutputPath or IntermediateOutputPath. USE FOR: builds failing with 'Cannot create a file when that file already exists', 'The process cannot access the file because it is being used by another process', intermittent build failures that succeed on retry, or missing\u002Foverwritten outputs in multi-project or multi-targeting builds where bin\u002Fobj (or project.assets.json) collide. Common causes: shared OutputPath, missing AppendTargetFrameworkToOutputPath, extra global properties (e.g. PublishReadyToRun), or SetTargetFramework on a ProjectReference to a single-targeting project. DO NOT USE FOR: file access errors unrelated to MSBuild (OS-level locking), single-project single-TFM builds, non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1707,1708,1709],{"name":1510,"slug":1511,"type":15},{"name":1601,"slug":1602,"type":15},{"name":1557,"slug":1558,"type":15},"2026-07-19T05:38:14.336279",144]