[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-dotnet-migrate-vstest-to-mtp":3,"mdc-l6t6a1-key":34,"related-org-dotnet-migrate-vstest-to-mtp":3846,"related-repo-dotnet-migrate-vstest-to-mtp":4011},{"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-vstest-to-mtp","migrate .NET test projects to MTP","Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to \"migrate to MTP\", \"switch from VSTest\", \"enable Microsoft.Testing.Platform\", \"use MTP runner\", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing MTP properties and OutputType=Exe on test projects via MSBuildProjectName, not IsTestProject. Supports MSTest, NUnit, xUnit.net v2 (via YTest.MTP.XUnit2), and xUnit.net v3. Covers runner enablement, CLI argument and filter translation (--filter-class\u002F--filter-trait\u002F--filter-query), global.json config, CI\u002FCD updates, and extension packages. DO NOT USE FOR: migrating between test frameworks (MSTest\u002FxUnit\u002FNUnit), xUnit.net v2 to v3 API migration, MSTest version upgrades, TFM upgrades, or UWP\u002FWinUI test projects.\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-08-01T05:42:28.168995","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-vstest-to-mtp","---\nname: migrate-vstest-to-mtp\ndescription: >\n  Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP).\n  Use when user asks to \"migrate to MTP\", \"switch from VSTest\", \"enable\n  Microsoft.Testing.Platform\", \"use MTP runner\", set OutputType=Exe only for\n  test projects in Directory.Build.props, or mentions EnableMSTestRunner,\n  EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner.\n  USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests\n  discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE);\n  centralizing MTP properties and OutputType=Exe on test projects via\n  MSBuildProjectName, not IsTestProject.\n  Supports MSTest, NUnit, xUnit.net v2 (via YTest.MTP.XUnit2), and\n  xUnit.net v3. Covers runner enablement, CLI argument and filter\n  translation (--filter-class\u002F--filter-trait\u002F--filter-query),\n  global.json config, CI\u002FCD updates, and extension packages.\n  DO NOT USE FOR: migrating between test frameworks (MSTest\u002FxUnit\u002FNUnit),\n  xUnit.net v2 to v3 API migration, MSTest version upgrades, TFM upgrades,\n  or UWP\u002FWinUI test projects.\nlicense: MIT\n---\n\n# VSTest -> Microsoft.Testing.Platform Migration\n\nMigrate a .NET test solution from VSTest to Microsoft.Testing.Platform (MTP). The outcome is a solution where all test projects run on MTP, `dotnet test` works correctly, and CI\u002FCD pipelines are updated.\n\n> **Important**: Do not mix VSTest-based and MTP-based .NET test projects in the same solution or run configuration -- this is an unsupported scenario.\n\n## When to Use\n\n- Switching from VSTest to Microsoft.Testing.Platform for any supported test framework\n- Enabling `dotnet run` \u002F `dotnet watch` \u002F direct executable execution for test projects\n- Enabling Native AOT or trimmed test execution\n- Replacing `vstest.console.exe` with `dotnet test` on MTP\n- Updating CI\u002FCD pipelines from the VSTest task to the .NET Core CLI task\n- Updating `dotnet test` arguments from VSTest syntax to MTP syntax\n\n## When Not to Use\n\n- The project already runs on Microsoft.Testing.Platform and there is no remaining MTP behavioral difference to resolve (e.g., exit code 8 for zero tests discovered)\n- Migrating between test frameworks (e.g., MSTest to xUnit.net) -- different effort entirely\n- The project builds UWP or packaged WinUI test projects -- MTP does not support these yet\n- The solution mixes .NET and non-.NET test adapters (e.g., JavaScript or C++ adapters) -- VSTest is required\n- Upgrading MSTest versions -- use `migrate-mstest-v1v2-to-v3` or `migrate-mstest-v3-to-v4`\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Project or solution path | No | The `.csproj`, `.sln`, or `.slnx` entry point containing test projects. **Discover it yourself** by globbing the working directory; ask only when nothing is found or the choice is genuinely ambiguous |\n| Test framework | No | MSTest, NUnit, xUnit.net v2, or xUnit.net v3. Auto-detected from package references |\n| .NET SDK version | No | Determines `dotnet test` integration mode. Auto-detected via `dotnet --version` |\n| CI\u002FCD pipeline files | No | Paths to pipeline definitions that invoke `vstest.console` or `dotnet test` |\n\n## Workflow\n\n### Step 1: Assess the solution\n\n1. Identify the test framework for each test project -- see the `platform-detection` skill for the package-to-framework mapping. Key indicators:\n   - **MSTest**: References `MSTest` or `MSTest.TestAdapter`, or uses `MSTest.Sdk` (with `\u003CIsTestApplication>` not set to `false`). Note: `MSTest.TestFramework` alone is a library dependency, not a test project.\n   - **NUnit**: References `NUnit3TestAdapter`\n   - **xUnit.net**: References `xunit` and `xunit.runner.visualstudio`\n2. Check the .NET SDK version (`dotnet --version`) -- this determines how `dotnet test` integrates with MTP\n3. Check whether a `Directory.Build.props` file exists at the solution or repo root -- all MTP properties should go there for consistency\n4. Check for `vstest.console.exe` usage in CI scripts or pipeline definitions\n5. Check for VSTest-specific `dotnet test` arguments in CI scripts: `--filter`, `--logger`, `--collect`, `--settings`, `--blame*`\n6. Run `dotnet test` to establish a baseline of test pass\u002Ffail counts\n\n### Step 2: Set up Directory.Build.props\n\n> **Critical**: Set MTP runner properties in `Directory.Build.props` at the solution or repo root whenever possible, rather than per-project. This prevents inconsistent configuration where some projects use VSTest and others use MTP (an unsupported scenario).\n> **Note**: MTP also requires test projects to have `\u003COutputType>Exe\u003C\u002FOutputType>`. Only `MSTest.Sdk` sets this automatically. For all other setups (MSTest NuGet packages with `EnableMSTestRunner`, NUnit with `EnableNUnitRunner`, xUnit.net with `YTest.MTP.XUnit2`), prefer setting `\u003COutputType>Exe\u003C\u002FOutputType>` centrally in `Directory.Build.props` with a condition that targets only test projects. If you cannot reliably target only test projects from `Directory.Build.props`, setting `\u003COutputType>Exe\u003C\u002FOutputType>` per-project is an acceptable exception.\n>\n> **Conditioning in `Directory.Build.props`**: Do NOT use `Condition=\"'$(IsTestProject)' == 'true'\"` -- `IsTestProject` is set by the test SDK targets later in evaluation and is not available when `Directory.Build.props` is imported. Use a property that is available early, such as `MSBuildProjectName`, to target test projects by naming convention. For example, if all test projects end in `.Tests`:\n>\n> ```xml\n> \u003CPropertyGroup Condition=\"$(MSBuildProjectName.EndsWith('.Tests'))\">\n>   \u003COutputType>Exe\u003C\u002FOutputType>\n> \u003C\u002FPropertyGroup>\n> ```\n>\n> Adjust the condition (e.g., `.EndsWith('Tests')`, `.Contains('.Test')`) to match the test project naming convention used in the repository.\n\n### Step 3: Enable the framework-specific MTP runner\n\nEach framework has its own opt-in property. Add these in `Directory.Build.props` for consistency.\n\n#### MSTest\n\n**Option A -- MSTest NuGet packages (3.2.0+):**\n\n```xml\n\u003CPropertyGroup>\n  \u003CEnableMSTestRunner>true\u003C\u002FEnableMSTestRunner>\n  \u003COutputType>Exe\u003C\u002FOutputType>\n\u003C\u002FPropertyGroup>\n```\n\nEnsure the project references MSTest 3.2.0 or later. If the version is already 3.2.0+, no MSTest version upgrade is needed for MTP migration.\n\n**Option B -- MSTest.Sdk:**\n\nWhen using `MSTest.Sdk`, MTP is enabled by default -- no `EnableMSTestRunner` or `OutputType Exe` property is needed (the SDK sets both automatically). The only action is: if the project has `\u003CUseVSTest>true\u003C\u002FUseVSTest>`, **remove it**. That property forces the project to use VSTest instead of MTP.\n\n#### NUnit\n\nRequires `NUnit3TestAdapter` **5.0.0** or later.\n\n1. Update `NUnit3TestAdapter` to 5.0.0+:\n\n```xml\n\u003CPackageReference Include=\"NUnit3TestAdapter\" Version=\"5.0.0\" \u002F>\n```\n\n1. Enable the NUnit runner:\n\n```xml\n\u003CPropertyGroup>\n  \u003CEnableNUnitRunner>true\u003C\u002FEnableNUnitRunner>\n  \u003COutputType>Exe\u003C\u002FOutputType>\n\u003C\u002FPropertyGroup>\n```\n\n#### xUnit.net\n\nAdd a reference to `YTest.MTP.XUnit2` -- this package provides MTP support for xUnit.net v2 projects without requiring an upgrade to xunit.v3. You must also set `OutputType` to `Exe`:\n\n```xml\n\u003CPackageReference Include=\"YTest.MTP.XUnit2\" Version=\"0.4.0\" \u002F>\n```\n\n```xml\n\u003CPropertyGroup>\n  \u003COutputType>Exe\u003C\u002FOutputType>\n\u003C\u002FPropertyGroup>\n```\n\n> **Note**: `YTest.MTP.XUnit2` preserves the VSTest `--filter` syntax, so no filter migration is needed for xUnit.net v2. It also supports `--settings` for runsettings (xunit-specific configurations only), `xunit.runner.json`, TRX reporting via `--report-trx`, and `--treenode-filter`.\n\n#### xUnit.net v3\n\nxUnit.net v3 (`xunit.v3` package) has built-in MTP support. Enable it with:\n\n```xml\n\u003CPropertyGroup>\n  \u003CUseMicrosoftTestingPlatformRunner>true\u003C\u002FUseMicrosoftTestingPlatformRunner>\n\u003C\u002FPropertyGroup>\n```\n\n> **Important**: xUnit.net v3 on MTP does NOT support the VSTest `--filter` syntax. You must translate filters to xUnit.net v3's native filter options (see Step 5).\n\n### Step 4: Configure dotnet test integration\n\nThe `dotnet test` integration depends on the .NET SDK version.\n\n#### .NET 10 SDK and later (recommended)\n\nUse the native MTP mode by adding a `test` section to `global.json`:\n\n```json\n{\n  \"sdk\": {\n    \"version\": \"10.0.100\"\n  },\n  \"test\": {\n    \"runner\": \"Microsoft.Testing.Platform\"\n  }\n}\n```\n\nIn this mode, `dotnet test` arguments are passed directly -- for example, `dotnet test --report-trx`.\n\n> **Important**: `global.json` does not support trailing commas. Ensure the JSON is strictly valid.\n\n#### .NET 9 SDK and earlier\n\nUse the VSTest mode of `dotnet test` command to run MTP test projects by adding this property in `Directory.Build.props`:\n\n```xml\n\u003CPropertyGroup>\n  \u003CTestingPlatformDotnetTestSupport>true\u003C\u002FTestingPlatformDotnetTestSupport>\n\u003C\u002FPropertyGroup>\n```\n\n> **Important**: In this mode, you must use `--` to separate `dotnet test` build arguments from MTP arguments. For example: `dotnet test --no-build -- --list-tests`.\n\n### Step 5: Update dotnet test command-line arguments\n\nVSTest-specific arguments must be translated to MTP equivalents. Build-related arguments (`-c`, `-f`, `--no-build`, `--nologo`, `-v`, etc.) are unchanged.\n\n| VSTest argument | MTP equivalent | Notes |\n|-----------------|----------------|-------|\n| `--test-adapter-path` | Not applicable | MTP does not use external adapter discovery |\n| `--blame` | Not applicable | |\n| `--blame-crash` | `--crashdump` | Requires `Microsoft.Testing.Extensions.CrashDump` NuGet package |\n| `--blame-crash-dump-type \u003CTYPE>` | `--crashdump-type \u003CTYPE>` | Requires CrashDump extension |\n| `--blame-hang` | `--hangdump` | Requires `Microsoft.Testing.Extensions.HangDump` NuGet package |\n| `--blame-hang-dump-type \u003CTYPE>` | `--hangdump-type \u003CTYPE>` | Requires HangDump extension |\n| `--blame-hang-timeout \u003CTIMESPAN>` | `--hangdump-timeout \u003CTIMESPAN>` | Requires HangDump extension |\n| `--collect \"Code Coverage;Format=cobertura\"` | `--coverage --coverage-output-format cobertura` | Per-extension arguments |\n| `-d\\|--diag \u003CLOG_FILE>` | `--diagnostic` | |\n| `--filter \u003CEXPRESSION>` | `--filter \u003CEXPRESSION>` | Same syntax for MSTest, NUnit, and xUnit.net v2 (with `YTest.MTP.XUnit2`). For xUnit.net v3, see filter migration below |\n| `-l\\|--logger trx` | `--report-trx` | Requires `Microsoft.Testing.Extensions.TrxReport` NuGet package |\n| `--results-directory \u003CDIR>` | `--results-directory \u003CDIR>` | Same |\n| `-s\\|--settings \u003CFILE>` | `--settings \u003CFILE>` | MSTest and NUnit still support `.runsettings` |\n| `-t\\|--list-tests` | `--list-tests` | Same |\n| `-- \u003CRunSettings args>` | `--test-parameter` | Applicable only to MSTest and NUnit |\n\n#### Filter migration\n\n**MSTest, NUnit, and xUnit.net v2 (with `YTest.MTP.XUnit2`)**: The VSTest `--filter` syntax is identical on both VSTest and MTP. No changes needed.\n\n**xUnit.net v3 (native MTP)**: xUnit.net v3 does NOT support the VSTest `--filter` syntax on MTP. You must translate filters to xUnit.net v3's native filter options.\n\n#### xUnit.net v3 filter flags\n\n| Flag | Description |\n|------|-------------|\n| `--filter-class \"name\"` | Run all tests in a given class. Supports wildcards (`*`). |\n| `--filter-not-class \"name\"` | Exclude all tests in a given class |\n| `--filter-method \"name\"` | Run a specific test method |\n| `--filter-not-method \"name\"` | Exclude a specific test method |\n| `--filter-namespace \"name\"` | Run all tests in a namespace |\n| `--filter-not-namespace \"name\"` | Exclude all tests in a namespace |\n| `--filter-trait \"name=value\"` | Run tests with a matching trait |\n| `--filter-not-trait \"name=value\"` | Exclude tests with a matching trait |\n\nMultiple values can be specified with a single flag: `--filter-class Foo Bar`.\n\n#### VSTest → xUnit.net v3 filter translation table\n\n| VSTest `--filter` syntax | xUnit.net v3 MTP equivalent | Notes |\n|---|---|---|\n| `FullyQualifiedName~ClassName` | `--filter-class *ClassName*` | Wildcards required for substring match |\n| `FullyQualifiedName=Ns.Class.Method` | `--filter-method Ns.Class.Method` | Exact match on fully qualified method |\n| `Name=MethodName` | `--filter-method *MethodName*` | Wildcards for substring match |\n| `Category=Value` (trait) | `--filter-trait \"Category=Value\"` | Filter by trait name\u002Fvalue pair |\n| Complex expressions | `--filter-query \"expr\"` | Uses xUnit.net query filter language (see below) |\n\n#### xUnit.net v3 query filter language\n\nFor complex expressions, use `--filter-query` with a path-segment syntax:\n\n```text\n\u002F\u003CassemblyFilter>\u002F\u003CnamespaceFilter>\u002F\u003CclassFilter>\u002F\u003CmethodFilter>[traitName=traitValue]\n```\n\nEach segment matches against: assembly name, namespace, class name, method name. Use `*` for \"match all\" in any segment. Documentation: \u003Chttps:\u002F\u002Fxunit.net\u002Fdocs\u002Fquery-filter-language>\n\n#### Translation example\n\n```shell\n# VSTest\ndotnet test --filter \"FullyQualifiedName~IntegrationTests&Category=Smoke\"\n\n# xUnit.net v3 MTP -- using individual filters (AND behavior)\ndotnet test -- --filter-class *IntegrationTests* --filter-trait \"Category=Smoke\"\n\n# xUnit.net v3 MTP -- using query language (assembly\u002Fnamespace\u002Fclass\u002Fmethod[trait])\ndotnet test -- --filter-query \"\u002F*\u002F*\u002F*IntegrationTests*\u002F*[Category=Smoke]\"\n```\n\n> **Note**: When combining `--filter-class` and `--filter-trait`, both conditions must match (AND behavior). For complex expressions, use `--filter-query` with the path-segment syntax. See the [xUnit.net query filter language docs](https:\u002F\u002Fxunit.net\u002Fdocs\u002Fquery-filter-language) for full reference.\n\n### Step 6: Install MTP extension packages (if needed)\n\nIf CI scripts use TRX reporting, crash dumps, or hang dumps, add the corresponding NuGet packages:\n\n```xml\n\u003C!-- TRX report generation (replaces --logger trx) -->\n\u003CPackageReference Include=\"Microsoft.Testing.Extensions.TrxReport\" Version=\"1.6.2\" \u002F>\n\n\u003C!-- Crash dump collection (replaces --blame-crash) -->\n\u003CPackageReference Include=\"Microsoft.Testing.Extensions.CrashDump\" Version=\"1.6.2\" \u002F>\n\n\u003C!-- Hang dump collection (replaces --blame-hang) -->\n\u003CPackageReference Include=\"Microsoft.Testing.Extensions.HangDump\" Version=\"1.6.2\" \u002F>\n\n\u003C!-- Code coverage (replaces --collect \"Code Coverage\") -->\n\u003CPackageReference Include=\"Microsoft.Testing.Extensions.CodeCoverage\" Version=\"17.13.0\" \u002F>\n```\n\n### Step 7: Update CI\u002FCD pipelines\n\n#### Azure DevOps\n\n**If using the VSTest task (`VSTest@3`)**: Replace with the .NET Core CLI task (`DotNetCoreCLI@2`):\n\n```yaml\n# Before (VSTest task)\n- task: VSTest@3\n  inputs:\n    testAssemblyVer2: '**\u002F*Tests.dll'\n    runSettingsFile: 'test.runsettings'\n\n# After (.NET Core CLI task)\n- task: DotNetCoreCLI@2\n  displayName: Run tests\n  inputs:\n    command: 'test'\n    arguments: '--no-build --configuration Release'\n```\n\n**If already using DotNetCoreCLI@2**: Update arguments per Step 5 translations. Remember the `--` separator on .NET 9 and earlier:\n\n```yaml\n- task: DotNetCoreCLI@2\n  displayName: Run tests\n  inputs:\n    command: 'test'\n    arguments: '--no-build -- --report-trx --results-directory $(Agent.TempDirectory)'\n```\n\n#### GitHub Actions\n\nUpdate `dotnet test` invocations in workflow files with the same argument translations from Step 5.\n\n#### Replace vstest.console.exe\n\nIf any script invokes `vstest.console.exe` directly, replace it with `dotnet test`. The test projects are now executables and can also be run directly.\n\n### Step 8: Handle behavioral differences\n\n#### Zero tests exit code\n\nVSTest silently succeeds when zero tests are discovered. MTP fails with **exit code 8**. Options:\n\n- Pass `--ignore-exit-code 8` when running tests\n- Add to `Directory.Build.props`:\n\n```xml\n\u003CPropertyGroup>\n  \u003CTestingPlatformCommandLineArguments>$(TestingPlatformCommandLineArguments) --ignore-exit-code 8\u003C\u002FTestingPlatformCommandLineArguments>\n\u003C\u002FPropertyGroup>\n```\n\n- Use environment variable: `TESTINGPLATFORM_EXITCODE_IGNORE=8`\n\n### Step 9: Remove VSTest-only packages (optional)\n\nOnce migration is complete and verified, remove packages that are only needed for VSTest:\n\n- `Microsoft.NET.Test.Sdk` -- not needed for MTP (MSTest.Sdk v4 already omits it by default)\n- `xunit.runner.visualstudio` -- only needed for VSTest discovery of xUnit.net (not needed when using `YTest.MTP.XUnit2`)\n- `NUnit3TestAdapter` VSTest-only features -- the adapter is still needed but only for the MTP runner\n\n> **Note**: If you need to maintain VSTest compatibility during a transition period, keep these packages.\n\n### Step 10: Verify\n\n1. Run `dotnet build` -- confirm zero errors\n2. Run `dotnet test` -- confirm all tests pass\n3. Compare test pass\u002Ffail counts to the pre-migration baseline\n4. Run the test executable directly (e.g., `.\u002Fbin\u002FDebug\u002Fnet8.0\u002FMyTests.exe`) -- confirm it works\n5. Verify CI pipeline produces the expected test result artifacts (TRX files, code coverage, crash dumps)\n6. Test that Test Explorer in Visual Studio (17.14+) or VS Code discovers and runs tests\n\n## Validation\n\n- [ ] All test projects use MTP runner (no VSTest-only configuration remains)\n- [ ] `dotnet build` completes with zero errors\n- [ ] `dotnet test` passes all tests and test counts match pre-migration baseline\n- [ ] Test executable runs directly (e.g., `.\u002Fbin\u002FDebug\u002Fnet8.0\u002FMyTests.exe`)\n- [ ] CI pipeline produces expected test result artifacts (TRX files, code coverage, crash dumps)\n- [ ] Test Explorer in Visual Studio or VS Code discovers and runs tests\n- [ ] No `vstest.console.exe` invocations remain in CI scripts\n- [ ] `\u003COutputType>Exe\u003C\u002FOutputType>` is set for all non-MSTest.Sdk test projects\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| Mixing VSTest and MTP projects in the same solution | Migrate all test projects together -- mixed mode is unsupported |\n| `dotnet test` arguments ignored on .NET 9 and earlier | Use `--` to separate build args from MTP args: `dotnet test -- --report-trx` |\n| Exit code 8 on CI without failures | MTP fails when zero tests run; use `--ignore-exit-code 8` or fix test discovery |\n| MSTest.Sdk v4 + vstest.console no longer works | MSTest.Sdk v4 no longer adds `Microsoft.NET.Test.Sdk` -- add it explicitly or switch to `dotnet test` |\n| Missing `\u003COutputType>Exe\u003C\u002FOutputType>` | Required for all setups except MSTest.Sdk (which sets it automatically) |\n| Using `Condition=\"'$(IsTestProject)' == 'true'\"` in `Directory.Build.props` | `IsTestProject` is not yet defined when `Directory.Build.props` is evaluated -- use `$(MSBuildProjectName.EndsWith('.Tests'))` (or a similar name-based check) instead |\n\n## Next Steps\n\n- Use `run-tests` for running tests on the new MTP platform\n- Use `mtp-hot-reload` for iterative test fixing with hot reload on MTP\n\n## More Info\n\n- [Test platforms overview](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftesting\u002Ftest-platforms-overview)\n- [Migrate from VSTest to Microsoft.Testing.Platform](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftesting\u002Fmigrating-vstest-microsoft-testing-platform)\n- [Microsoft.Testing.Platform overview](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftesting\u002Fmicrosoft-testing-platform-intro)\n- [Testing with dotnet test](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftesting\u002Funit-testing-with-dotnet-test)\n- [Microsoft.Testing.Platform CLI options](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftesting\u002Fmicrosoft-testing-platform-cli-options)\n- [Microsoft.Testing.Platform extensions](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftesting\u002Funit-testing-platform-extensions)\n",{"data":35,"body":36},{"name":4,"description":6,"license":25},{"type":37,"children":38},"root",[39,48,63,78,85,158,164,206,212,370,376,383,599,605,813,819,831,837,845,883,888,896,936,941,960,975,989,997,1033,1038,1065,1079,1107,1164,1170,1183,1212,1231,1237,1248,1254,1274,1442,1461,1479,1485,1503,1532,1566,1572,1613,2044,2050,2074,2091,2097,2262,2274,2280,2441,2447,2460,2470,2490,2496,2663,2705,2711,2716,2811,2817,2823,2848,3066,3083,3182,3188,3199,3205,3224,3230,3236,3248,3275,3304,3318,3324,3329,3369,3381,3387,3441,3447,3558,3564,3738,3744,3771,3777,3840],{"type":40,"tag":41,"props":42,"children":44},"element","h1",{"id":43},"vstest-microsofttestingplatform-migration",[45],{"type":46,"value":47},"text","VSTest -> Microsoft.Testing.Platform Migration",{"type":40,"tag":49,"props":50,"children":51},"p",{},[52,54,61],{"type":46,"value":53},"Migrate a .NET test solution from VSTest to Microsoft.Testing.Platform (MTP). The outcome is a solution where all test projects run on MTP, ",{"type":40,"tag":55,"props":56,"children":58},"code",{"className":57},[],[59],{"type":46,"value":60},"dotnet test",{"type":46,"value":62}," works correctly, and CI\u002FCD pipelines are updated.",{"type":40,"tag":64,"props":65,"children":66},"blockquote",{},[67],{"type":40,"tag":49,"props":68,"children":69},{},[70,76],{"type":40,"tag":71,"props":72,"children":73},"strong",{},[74],{"type":46,"value":75},"Important",{"type":46,"value":77},": Do not mix VSTest-based and MTP-based .NET test projects in the same solution or run configuration -- this is an unsupported scenario.",{"type":40,"tag":79,"props":80,"children":82},"h2",{"id":81},"when-to-use",[83],{"type":46,"value":84},"When to Use",{"type":40,"tag":86,"props":87,"children":88},"ul",{},[89,95,116,121,141,146],{"type":40,"tag":90,"props":91,"children":92},"li",{},[93],{"type":46,"value":94},"Switching from VSTest to Microsoft.Testing.Platform for any supported test framework",{"type":40,"tag":90,"props":96,"children":97},{},[98,100,106,108,114],{"type":46,"value":99},"Enabling ",{"type":40,"tag":55,"props":101,"children":103},{"className":102},[],[104],{"type":46,"value":105},"dotnet run",{"type":46,"value":107}," \u002F ",{"type":40,"tag":55,"props":109,"children":111},{"className":110},[],[112],{"type":46,"value":113},"dotnet watch",{"type":46,"value":115}," \u002F direct executable execution for test projects",{"type":40,"tag":90,"props":117,"children":118},{},[119],{"type":46,"value":120},"Enabling Native AOT or trimmed test execution",{"type":40,"tag":90,"props":122,"children":123},{},[124,126,132,134,139],{"type":46,"value":125},"Replacing ",{"type":40,"tag":55,"props":127,"children":129},{"className":128},[],[130],{"type":46,"value":131},"vstest.console.exe",{"type":46,"value":133}," with ",{"type":40,"tag":55,"props":135,"children":137},{"className":136},[],[138],{"type":46,"value":60},{"type":46,"value":140}," on MTP",{"type":40,"tag":90,"props":142,"children":143},{},[144],{"type":46,"value":145},"Updating CI\u002FCD pipelines from the VSTest task to the .NET Core CLI task",{"type":40,"tag":90,"props":147,"children":148},{},[149,151,156],{"type":46,"value":150},"Updating ",{"type":40,"tag":55,"props":152,"children":154},{"className":153},[],[155],{"type":46,"value":60},{"type":46,"value":157}," arguments from VSTest syntax to MTP syntax",{"type":40,"tag":79,"props":159,"children":161},{"id":160},"when-not-to-use",[162],{"type":46,"value":163},"When Not to Use",{"type":40,"tag":86,"props":165,"children":166},{},[167,172,177,182,187],{"type":40,"tag":90,"props":168,"children":169},{},[170],{"type":46,"value":171},"The project already runs on Microsoft.Testing.Platform and there is no remaining MTP behavioral difference to resolve (e.g., exit code 8 for zero tests discovered)",{"type":40,"tag":90,"props":173,"children":174},{},[175],{"type":46,"value":176},"Migrating between test frameworks (e.g., MSTest to xUnit.net) -- different effort entirely",{"type":40,"tag":90,"props":178,"children":179},{},[180],{"type":46,"value":181},"The project builds UWP or packaged WinUI test projects -- MTP does not support these yet",{"type":40,"tag":90,"props":183,"children":184},{},[185],{"type":46,"value":186},"The solution mixes .NET and non-.NET test adapters (e.g., JavaScript or C++ adapters) -- VSTest is required",{"type":40,"tag":90,"props":188,"children":189},{},[190,192,198,200],{"type":46,"value":191},"Upgrading MSTest versions -- use ",{"type":40,"tag":55,"props":193,"children":195},{"className":194},[],[196],{"type":46,"value":197},"migrate-mstest-v1v2-to-v3",{"type":46,"value":199}," or ",{"type":40,"tag":55,"props":201,"children":203},{"className":202},[],[204],{"type":46,"value":205},"migrate-mstest-v3-to-v4",{"type":40,"tag":79,"props":207,"children":209},{"id":208},"inputs",[210],{"type":46,"value":211},"Inputs",{"type":40,"tag":213,"props":214,"children":215},"table",{},[216,240],{"type":40,"tag":217,"props":218,"children":219},"thead",{},[220],{"type":40,"tag":221,"props":222,"children":223},"tr",{},[224,230,235],{"type":40,"tag":225,"props":226,"children":227},"th",{},[228],{"type":46,"value":229},"Input",{"type":40,"tag":225,"props":231,"children":232},{},[233],{"type":46,"value":234},"Required",{"type":40,"tag":225,"props":236,"children":237},{},[238],{"type":46,"value":239},"Description",{"type":40,"tag":241,"props":242,"children":243},"tbody",{},[244,294,311,341],{"type":40,"tag":221,"props":245,"children":246},{},[247,253,258],{"type":40,"tag":248,"props":249,"children":250},"td",{},[251],{"type":46,"value":252},"Project or solution path",{"type":40,"tag":248,"props":254,"children":255},{},[256],{"type":46,"value":257},"No",{"type":40,"tag":248,"props":259,"children":260},{},[261,263,269,271,277,279,285,287,292],{"type":46,"value":262},"The ",{"type":40,"tag":55,"props":264,"children":266},{"className":265},[],[267],{"type":46,"value":268},".csproj",{"type":46,"value":270},", ",{"type":40,"tag":55,"props":272,"children":274},{"className":273},[],[275],{"type":46,"value":276},".sln",{"type":46,"value":278},", or ",{"type":40,"tag":55,"props":280,"children":282},{"className":281},[],[283],{"type":46,"value":284},".slnx",{"type":46,"value":286}," entry point containing test projects. ",{"type":40,"tag":71,"props":288,"children":289},{},[290],{"type":46,"value":291},"Discover it yourself",{"type":46,"value":293}," by globbing the working directory; ask only when nothing is found or the choice is genuinely ambiguous",{"type":40,"tag":221,"props":295,"children":296},{},[297,302,306],{"type":40,"tag":248,"props":298,"children":299},{},[300],{"type":46,"value":301},"Test framework",{"type":40,"tag":248,"props":303,"children":304},{},[305],{"type":46,"value":257},{"type":40,"tag":248,"props":307,"children":308},{},[309],{"type":46,"value":310},"MSTest, NUnit, xUnit.net v2, or xUnit.net v3. Auto-detected from package references",{"type":40,"tag":221,"props":312,"children":313},{},[314,319,323],{"type":40,"tag":248,"props":315,"children":316},{},[317],{"type":46,"value":318},".NET SDK version",{"type":40,"tag":248,"props":320,"children":321},{},[322],{"type":46,"value":257},{"type":40,"tag":248,"props":324,"children":325},{},[326,328,333,335],{"type":46,"value":327},"Determines ",{"type":40,"tag":55,"props":329,"children":331},{"className":330},[],[332],{"type":46,"value":60},{"type":46,"value":334}," integration mode. Auto-detected via ",{"type":40,"tag":55,"props":336,"children":338},{"className":337},[],[339],{"type":46,"value":340},"dotnet --version",{"type":40,"tag":221,"props":342,"children":343},{},[344,349,353],{"type":40,"tag":248,"props":345,"children":346},{},[347],{"type":46,"value":348},"CI\u002FCD pipeline files",{"type":40,"tag":248,"props":350,"children":351},{},[352],{"type":46,"value":257},{"type":40,"tag":248,"props":354,"children":355},{},[356,358,364,365],{"type":46,"value":357},"Paths to pipeline definitions that invoke ",{"type":40,"tag":55,"props":359,"children":361},{"className":360},[],[362],{"type":46,"value":363},"vstest.console",{"type":46,"value":199},{"type":40,"tag":55,"props":366,"children":368},{"className":367},[],[369],{"type":46,"value":60},{"type":40,"tag":79,"props":371,"children":373},{"id":372},"workflow",[374],{"type":46,"value":375},"Workflow",{"type":40,"tag":377,"props":378,"children":380},"h3",{"id":379},"step-1-assess-the-solution",[381],{"type":46,"value":382},"Step 1: Assess the solution",{"type":40,"tag":384,"props":385,"children":386},"ol",{},[387,497,516,529,541,587],{"type":40,"tag":90,"props":388,"children":389},{},[390,392,398,400],{"type":46,"value":391},"Identify the test framework for each test project -- see the ",{"type":40,"tag":55,"props":393,"children":395},{"className":394},[],[396],{"type":46,"value":397},"platform-detection",{"type":46,"value":399}," skill for the package-to-framework mapping. Key indicators:\n",{"type":40,"tag":86,"props":401,"children":402},{},[403,459,474],{"type":40,"tag":90,"props":404,"children":405},{},[406,411,413,418,419,425,427,433,435,441,443,449,451,457],{"type":40,"tag":71,"props":407,"children":408},{},[409],{"type":46,"value":410},"MSTest",{"type":46,"value":412},": References ",{"type":40,"tag":55,"props":414,"children":416},{"className":415},[],[417],{"type":46,"value":410},{"type":46,"value":199},{"type":40,"tag":55,"props":420,"children":422},{"className":421},[],[423],{"type":46,"value":424},"MSTest.TestAdapter",{"type":46,"value":426},", or uses ",{"type":40,"tag":55,"props":428,"children":430},{"className":429},[],[431],{"type":46,"value":432},"MSTest.Sdk",{"type":46,"value":434}," (with ",{"type":40,"tag":55,"props":436,"children":438},{"className":437},[],[439],{"type":46,"value":440},"\u003CIsTestApplication>",{"type":46,"value":442}," not set to ",{"type":40,"tag":55,"props":444,"children":446},{"className":445},[],[447],{"type":46,"value":448},"false",{"type":46,"value":450},"). Note: ",{"type":40,"tag":55,"props":452,"children":454},{"className":453},[],[455],{"type":46,"value":456},"MSTest.TestFramework",{"type":46,"value":458}," alone is a library dependency, not a test project.",{"type":40,"tag":90,"props":460,"children":461},{},[462,467,468],{"type":40,"tag":71,"props":463,"children":464},{},[465],{"type":46,"value":466},"NUnit",{"type":46,"value":412},{"type":40,"tag":55,"props":469,"children":471},{"className":470},[],[472],{"type":46,"value":473},"NUnit3TestAdapter",{"type":40,"tag":90,"props":475,"children":476},{},[477,482,483,489,491],{"type":40,"tag":71,"props":478,"children":479},{},[480],{"type":46,"value":481},"xUnit.net",{"type":46,"value":412},{"type":40,"tag":55,"props":484,"children":486},{"className":485},[],[487],{"type":46,"value":488},"xunit",{"type":46,"value":490}," and ",{"type":40,"tag":55,"props":492,"children":494},{"className":493},[],[495],{"type":46,"value":496},"xunit.runner.visualstudio",{"type":40,"tag":90,"props":498,"children":499},{},[500,502,507,509,514],{"type":46,"value":501},"Check the .NET SDK version (",{"type":40,"tag":55,"props":503,"children":505},{"className":504},[],[506],{"type":46,"value":340},{"type":46,"value":508},") -- this determines how ",{"type":40,"tag":55,"props":510,"children":512},{"className":511},[],[513],{"type":46,"value":60},{"type":46,"value":515}," integrates with MTP",{"type":40,"tag":90,"props":517,"children":518},{},[519,521,527],{"type":46,"value":520},"Check whether a ",{"type":40,"tag":55,"props":522,"children":524},{"className":523},[],[525],{"type":46,"value":526},"Directory.Build.props",{"type":46,"value":528}," file exists at the solution or repo root -- all MTP properties should go there for consistency",{"type":40,"tag":90,"props":530,"children":531},{},[532,534,539],{"type":46,"value":533},"Check for ",{"type":40,"tag":55,"props":535,"children":537},{"className":536},[],[538],{"type":46,"value":131},{"type":46,"value":540}," usage in CI scripts or pipeline definitions",{"type":40,"tag":90,"props":542,"children":543},{},[544,546,551,553,559,560,566,567,573,574,580,581],{"type":46,"value":545},"Check for VSTest-specific ",{"type":40,"tag":55,"props":547,"children":549},{"className":548},[],[550],{"type":46,"value":60},{"type":46,"value":552}," arguments in CI scripts: ",{"type":40,"tag":55,"props":554,"children":556},{"className":555},[],[557],{"type":46,"value":558},"--filter",{"type":46,"value":270},{"type":40,"tag":55,"props":561,"children":563},{"className":562},[],[564],{"type":46,"value":565},"--logger",{"type":46,"value":270},{"type":40,"tag":55,"props":568,"children":570},{"className":569},[],[571],{"type":46,"value":572},"--collect",{"type":46,"value":270},{"type":40,"tag":55,"props":575,"children":577},{"className":576},[],[578],{"type":46,"value":579},"--settings",{"type":46,"value":270},{"type":40,"tag":55,"props":582,"children":584},{"className":583},[],[585],{"type":46,"value":586},"--blame*",{"type":40,"tag":90,"props":588,"children":589},{},[590,592,597],{"type":46,"value":591},"Run ",{"type":40,"tag":55,"props":593,"children":595},{"className":594},[],[596],{"type":46,"value":60},{"type":46,"value":598}," to establish a baseline of test pass\u002Ffail counts",{"type":40,"tag":377,"props":600,"children":602},{"id":601},"step-2-set-up-directorybuildprops",[603],{"type":46,"value":604},"Step 2: Set up Directory.Build.props",{"type":40,"tag":64,"props":606,"children":607},{},[608,699,753,793],{"type":40,"tag":49,"props":609,"children":610},{},[611,616,618,623,625,630,632,638,640,645,647,653,655,661,663,669,671,676,678,683,685,690,692,697],{"type":40,"tag":71,"props":612,"children":613},{},[614],{"type":46,"value":615},"Critical",{"type":46,"value":617},": Set MTP runner properties in ",{"type":40,"tag":55,"props":619,"children":621},{"className":620},[],[622],{"type":46,"value":526},{"type":46,"value":624}," at the solution or repo root whenever possible, rather than per-project. This prevents inconsistent configuration where some projects use VSTest and others use MTP (an unsupported scenario).\n",{"type":40,"tag":71,"props":626,"children":627},{},[628],{"type":46,"value":629},"Note",{"type":46,"value":631},": MTP also requires test projects to have ",{"type":40,"tag":55,"props":633,"children":635},{"className":634},[],[636],{"type":46,"value":637},"\u003COutputType>Exe\u003C\u002FOutputType>",{"type":46,"value":639},". Only ",{"type":40,"tag":55,"props":641,"children":643},{"className":642},[],[644],{"type":46,"value":432},{"type":46,"value":646}," sets this automatically. For all other setups (MSTest NuGet packages with ",{"type":40,"tag":55,"props":648,"children":650},{"className":649},[],[651],{"type":46,"value":652},"EnableMSTestRunner",{"type":46,"value":654},", NUnit with ",{"type":40,"tag":55,"props":656,"children":658},{"className":657},[],[659],{"type":46,"value":660},"EnableNUnitRunner",{"type":46,"value":662},", xUnit.net with ",{"type":40,"tag":55,"props":664,"children":666},{"className":665},[],[667],{"type":46,"value":668},"YTest.MTP.XUnit2",{"type":46,"value":670},"), prefer setting ",{"type":40,"tag":55,"props":672,"children":674},{"className":673},[],[675],{"type":46,"value":637},{"type":46,"value":677}," centrally in ",{"type":40,"tag":55,"props":679,"children":681},{"className":680},[],[682],{"type":46,"value":526},{"type":46,"value":684}," with a condition that targets only test projects. If you cannot reliably target only test projects from ",{"type":40,"tag":55,"props":686,"children":688},{"className":687},[],[689],{"type":46,"value":526},{"type":46,"value":691},", setting ",{"type":40,"tag":55,"props":693,"children":695},{"className":694},[],[696],{"type":46,"value":637},{"type":46,"value":698}," per-project is an acceptable exception.",{"type":40,"tag":49,"props":700,"children":701},{},[702,712,714,720,722,728,730,735,737,743,745,751],{"type":40,"tag":71,"props":703,"children":704},{},[705,707],{"type":46,"value":706},"Conditioning in ",{"type":40,"tag":55,"props":708,"children":710},{"className":709},[],[711],{"type":46,"value":526},{"type":46,"value":713},": Do NOT use ",{"type":40,"tag":55,"props":715,"children":717},{"className":716},[],[718],{"type":46,"value":719},"Condition=\"'$(IsTestProject)' == 'true'\"",{"type":46,"value":721}," -- ",{"type":40,"tag":55,"props":723,"children":725},{"className":724},[],[726],{"type":46,"value":727},"IsTestProject",{"type":46,"value":729}," is set by the test SDK targets later in evaluation and is not available when ",{"type":40,"tag":55,"props":731,"children":733},{"className":732},[],[734],{"type":46,"value":526},{"type":46,"value":736}," is imported. Use a property that is available early, such as ",{"type":40,"tag":55,"props":738,"children":740},{"className":739},[],[741],{"type":46,"value":742},"MSBuildProjectName",{"type":46,"value":744},", to target test projects by naming convention. For example, if all test projects end in ",{"type":40,"tag":55,"props":746,"children":748},{"className":747},[],[749],{"type":46,"value":750},".Tests",{"type":46,"value":752},":",{"type":40,"tag":754,"props":755,"children":760},"pre",{"className":756,"code":757,"language":758,"meta":759,"style":759},"language-xml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003CPropertyGroup Condition=\"$(MSBuildProjectName.EndsWith('.Tests'))\">\n  \u003COutputType>Exe\u003C\u002FOutputType>\n\u003C\u002FPropertyGroup>\n","xml","",[761],{"type":40,"tag":55,"props":762,"children":763},{"__ignoreMap":759},[764,775,784],{"type":40,"tag":765,"props":766,"children":769},"span",{"class":767,"line":768},"line",1,[770],{"type":40,"tag":765,"props":771,"children":772},{},[773],{"type":46,"value":774},"\u003CPropertyGroup Condition=\"$(MSBuildProjectName.EndsWith('.Tests'))\">\n",{"type":40,"tag":765,"props":776,"children":778},{"class":767,"line":777},2,[779],{"type":40,"tag":765,"props":780,"children":781},{},[782],{"type":46,"value":783},"  \u003COutputType>Exe\u003C\u002FOutputType>\n",{"type":40,"tag":765,"props":785,"children":787},{"class":767,"line":786},3,[788],{"type":40,"tag":765,"props":789,"children":790},{},[791],{"type":46,"value":792},"\u003C\u002FPropertyGroup>\n",{"type":40,"tag":49,"props":794,"children":795},{},[796,798,804,805,811],{"type":46,"value":797},"Adjust the condition (e.g., ",{"type":40,"tag":55,"props":799,"children":801},{"className":800},[],[802],{"type":46,"value":803},".EndsWith('Tests')",{"type":46,"value":270},{"type":40,"tag":55,"props":806,"children":808},{"className":807},[],[809],{"type":46,"value":810},".Contains('.Test')",{"type":46,"value":812},") to match the test project naming convention used in the repository.",{"type":40,"tag":377,"props":814,"children":816},{"id":815},"step-3-enable-the-framework-specific-mtp-runner",[817],{"type":46,"value":818},"Step 3: Enable the framework-specific MTP runner",{"type":40,"tag":49,"props":820,"children":821},{},[822,824,829],{"type":46,"value":823},"Each framework has its own opt-in property. Add these in ",{"type":40,"tag":55,"props":825,"children":827},{"className":826},[],[828],{"type":46,"value":526},{"type":46,"value":830}," for consistency.",{"type":40,"tag":832,"props":833,"children":835},"h4",{"id":834},"mstest",[836],{"type":46,"value":410},{"type":40,"tag":49,"props":838,"children":839},{},[840],{"type":40,"tag":71,"props":841,"children":842},{},[843],{"type":46,"value":844},"Option A -- MSTest NuGet packages (3.2.0+):",{"type":40,"tag":754,"props":846,"children":848},{"className":756,"code":847,"language":758,"meta":759,"style":759},"\u003CPropertyGroup>\n  \u003CEnableMSTestRunner>true\u003C\u002FEnableMSTestRunner>\n  \u003COutputType>Exe\u003C\u002FOutputType>\n\u003C\u002FPropertyGroup>\n",[849],{"type":40,"tag":55,"props":850,"children":851},{"__ignoreMap":759},[852,860,868,875],{"type":40,"tag":765,"props":853,"children":854},{"class":767,"line":768},[855],{"type":40,"tag":765,"props":856,"children":857},{},[858],{"type":46,"value":859},"\u003CPropertyGroup>\n",{"type":40,"tag":765,"props":861,"children":862},{"class":767,"line":777},[863],{"type":40,"tag":765,"props":864,"children":865},{},[866],{"type":46,"value":867},"  \u003CEnableMSTestRunner>true\u003C\u002FEnableMSTestRunner>\n",{"type":40,"tag":765,"props":869,"children":870},{"class":767,"line":786},[871],{"type":40,"tag":765,"props":872,"children":873},{},[874],{"type":46,"value":783},{"type":40,"tag":765,"props":876,"children":878},{"class":767,"line":877},4,[879],{"type":40,"tag":765,"props":880,"children":881},{},[882],{"type":46,"value":792},{"type":40,"tag":49,"props":884,"children":885},{},[886],{"type":46,"value":887},"Ensure the project references MSTest 3.2.0 or later. If the version is already 3.2.0+, no MSTest version upgrade is needed for MTP migration.",{"type":40,"tag":49,"props":889,"children":890},{},[891],{"type":40,"tag":71,"props":892,"children":893},{},[894],{"type":46,"value":895},"Option B -- MSTest.Sdk:",{"type":40,"tag":49,"props":897,"children":898},{},[899,901,906,908,913,914,920,922,928,929,934],{"type":46,"value":900},"When using ",{"type":40,"tag":55,"props":902,"children":904},{"className":903},[],[905],{"type":46,"value":432},{"type":46,"value":907},", MTP is enabled by default -- no ",{"type":40,"tag":55,"props":909,"children":911},{"className":910},[],[912],{"type":46,"value":652},{"type":46,"value":199},{"type":40,"tag":55,"props":915,"children":917},{"className":916},[],[918],{"type":46,"value":919},"OutputType Exe",{"type":46,"value":921}," property is needed (the SDK sets both automatically). The only action is: if the project has ",{"type":40,"tag":55,"props":923,"children":925},{"className":924},[],[926],{"type":46,"value":927},"\u003CUseVSTest>true\u003C\u002FUseVSTest>",{"type":46,"value":270},{"type":40,"tag":71,"props":930,"children":931},{},[932],{"type":46,"value":933},"remove it",{"type":46,"value":935},". That property forces the project to use VSTest instead of MTP.",{"type":40,"tag":832,"props":937,"children":939},{"id":938},"nunit",[940],{"type":46,"value":466},{"type":40,"tag":49,"props":942,"children":943},{},[944,946,951,953,958],{"type":46,"value":945},"Requires ",{"type":40,"tag":55,"props":947,"children":949},{"className":948},[],[950],{"type":46,"value":473},{"type":46,"value":952}," ",{"type":40,"tag":71,"props":954,"children":955},{},[956],{"type":46,"value":957},"5.0.0",{"type":46,"value":959}," or later.",{"type":40,"tag":384,"props":961,"children":962},{},[963],{"type":40,"tag":90,"props":964,"children":965},{},[966,968,973],{"type":46,"value":967},"Update ",{"type":40,"tag":55,"props":969,"children":971},{"className":970},[],[972],{"type":46,"value":473},{"type":46,"value":974}," to 5.0.0+:",{"type":40,"tag":754,"props":976,"children":978},{"className":756,"code":977,"language":758,"meta":759,"style":759},"\u003CPackageReference Include=\"NUnit3TestAdapter\" Version=\"5.0.0\" \u002F>\n",[979],{"type":40,"tag":55,"props":980,"children":981},{"__ignoreMap":759},[982],{"type":40,"tag":765,"props":983,"children":984},{"class":767,"line":768},[985],{"type":40,"tag":765,"props":986,"children":987},{},[988],{"type":46,"value":977},{"type":40,"tag":384,"props":990,"children":991},{},[992],{"type":40,"tag":90,"props":993,"children":994},{},[995],{"type":46,"value":996},"Enable the NUnit runner:",{"type":40,"tag":754,"props":998,"children":1000},{"className":756,"code":999,"language":758,"meta":759,"style":759},"\u003CPropertyGroup>\n  \u003CEnableNUnitRunner>true\u003C\u002FEnableNUnitRunner>\n  \u003COutputType>Exe\u003C\u002FOutputType>\n\u003C\u002FPropertyGroup>\n",[1001],{"type":40,"tag":55,"props":1002,"children":1003},{"__ignoreMap":759},[1004,1011,1019,1026],{"type":40,"tag":765,"props":1005,"children":1006},{"class":767,"line":768},[1007],{"type":40,"tag":765,"props":1008,"children":1009},{},[1010],{"type":46,"value":859},{"type":40,"tag":765,"props":1012,"children":1013},{"class":767,"line":777},[1014],{"type":40,"tag":765,"props":1015,"children":1016},{},[1017],{"type":46,"value":1018},"  \u003CEnableNUnitRunner>true\u003C\u002FEnableNUnitRunner>\n",{"type":40,"tag":765,"props":1020,"children":1021},{"class":767,"line":786},[1022],{"type":40,"tag":765,"props":1023,"children":1024},{},[1025],{"type":46,"value":783},{"type":40,"tag":765,"props":1027,"children":1028},{"class":767,"line":877},[1029],{"type":40,"tag":765,"props":1030,"children":1031},{},[1032],{"type":46,"value":792},{"type":40,"tag":832,"props":1034,"children":1036},{"id":1035},"xunitnet",[1037],{"type":46,"value":481},{"type":40,"tag":49,"props":1039,"children":1040},{},[1041,1043,1048,1050,1056,1058,1064],{"type":46,"value":1042},"Add a reference to ",{"type":40,"tag":55,"props":1044,"children":1046},{"className":1045},[],[1047],{"type":46,"value":668},{"type":46,"value":1049}," -- this package provides MTP support for xUnit.net v2 projects without requiring an upgrade to xunit.v3. You must also set ",{"type":40,"tag":55,"props":1051,"children":1053},{"className":1052},[],[1054],{"type":46,"value":1055},"OutputType",{"type":46,"value":1057}," to ",{"type":40,"tag":55,"props":1059,"children":1061},{"className":1060},[],[1062],{"type":46,"value":1063},"Exe",{"type":46,"value":752},{"type":40,"tag":754,"props":1066,"children":1068},{"className":756,"code":1067,"language":758,"meta":759,"style":759},"\u003CPackageReference Include=\"YTest.MTP.XUnit2\" Version=\"0.4.0\" \u002F>\n",[1069],{"type":40,"tag":55,"props":1070,"children":1071},{"__ignoreMap":759},[1072],{"type":40,"tag":765,"props":1073,"children":1074},{"class":767,"line":768},[1075],{"type":40,"tag":765,"props":1076,"children":1077},{},[1078],{"type":46,"value":1067},{"type":40,"tag":754,"props":1080,"children":1082},{"className":756,"code":1081,"language":758,"meta":759,"style":759},"\u003CPropertyGroup>\n  \u003COutputType>Exe\u003C\u002FOutputType>\n\u003C\u002FPropertyGroup>\n",[1083],{"type":40,"tag":55,"props":1084,"children":1085},{"__ignoreMap":759},[1086,1093,1100],{"type":40,"tag":765,"props":1087,"children":1088},{"class":767,"line":768},[1089],{"type":40,"tag":765,"props":1090,"children":1091},{},[1092],{"type":46,"value":859},{"type":40,"tag":765,"props":1094,"children":1095},{"class":767,"line":777},[1096],{"type":40,"tag":765,"props":1097,"children":1098},{},[1099],{"type":46,"value":783},{"type":40,"tag":765,"props":1101,"children":1102},{"class":767,"line":786},[1103],{"type":40,"tag":765,"props":1104,"children":1105},{},[1106],{"type":46,"value":792},{"type":40,"tag":64,"props":1108,"children":1109},{},[1110],{"type":40,"tag":49,"props":1111,"children":1112},{},[1113,1117,1119,1124,1126,1131,1133,1138,1140,1146,1148,1154,1156,1162],{"type":40,"tag":71,"props":1114,"children":1115},{},[1116],{"type":46,"value":629},{"type":46,"value":1118},": ",{"type":40,"tag":55,"props":1120,"children":1122},{"className":1121},[],[1123],{"type":46,"value":668},{"type":46,"value":1125}," preserves the VSTest ",{"type":40,"tag":55,"props":1127,"children":1129},{"className":1128},[],[1130],{"type":46,"value":558},{"type":46,"value":1132}," syntax, so no filter migration is needed for xUnit.net v2. It also supports ",{"type":40,"tag":55,"props":1134,"children":1136},{"className":1135},[],[1137],{"type":46,"value":579},{"type":46,"value":1139}," for runsettings (xunit-specific configurations only), ",{"type":40,"tag":55,"props":1141,"children":1143},{"className":1142},[],[1144],{"type":46,"value":1145},"xunit.runner.json",{"type":46,"value":1147},", TRX reporting via ",{"type":40,"tag":55,"props":1149,"children":1151},{"className":1150},[],[1152],{"type":46,"value":1153},"--report-trx",{"type":46,"value":1155},", and ",{"type":40,"tag":55,"props":1157,"children":1159},{"className":1158},[],[1160],{"type":46,"value":1161},"--treenode-filter",{"type":46,"value":1163},".",{"type":40,"tag":832,"props":1165,"children":1167},{"id":1166},"xunitnet-v3",[1168],{"type":46,"value":1169},"xUnit.net v3",{"type":40,"tag":49,"props":1171,"children":1172},{},[1173,1175,1181],{"type":46,"value":1174},"xUnit.net v3 (",{"type":40,"tag":55,"props":1176,"children":1178},{"className":1177},[],[1179],{"type":46,"value":1180},"xunit.v3",{"type":46,"value":1182}," package) has built-in MTP support. Enable it with:",{"type":40,"tag":754,"props":1184,"children":1186},{"className":756,"code":1185,"language":758,"meta":759,"style":759},"\u003CPropertyGroup>\n  \u003CUseMicrosoftTestingPlatformRunner>true\u003C\u002FUseMicrosoftTestingPlatformRunner>\n\u003C\u002FPropertyGroup>\n",[1187],{"type":40,"tag":55,"props":1188,"children":1189},{"__ignoreMap":759},[1190,1197,1205],{"type":40,"tag":765,"props":1191,"children":1192},{"class":767,"line":768},[1193],{"type":40,"tag":765,"props":1194,"children":1195},{},[1196],{"type":46,"value":859},{"type":40,"tag":765,"props":1198,"children":1199},{"class":767,"line":777},[1200],{"type":40,"tag":765,"props":1201,"children":1202},{},[1203],{"type":46,"value":1204},"  \u003CUseMicrosoftTestingPlatformRunner>true\u003C\u002FUseMicrosoftTestingPlatformRunner>\n",{"type":40,"tag":765,"props":1206,"children":1207},{"class":767,"line":786},[1208],{"type":40,"tag":765,"props":1209,"children":1210},{},[1211],{"type":46,"value":792},{"type":40,"tag":64,"props":1213,"children":1214},{},[1215],{"type":40,"tag":49,"props":1216,"children":1217},{},[1218,1222,1224,1229],{"type":40,"tag":71,"props":1219,"children":1220},{},[1221],{"type":46,"value":75},{"type":46,"value":1223},": xUnit.net v3 on MTP does NOT support the VSTest ",{"type":40,"tag":55,"props":1225,"children":1227},{"className":1226},[],[1228],{"type":46,"value":558},{"type":46,"value":1230}," syntax. You must translate filters to xUnit.net v3's native filter options (see Step 5).",{"type":40,"tag":377,"props":1232,"children":1234},{"id":1233},"step-4-configure-dotnet-test-integration",[1235],{"type":46,"value":1236},"Step 4: Configure dotnet test integration",{"type":40,"tag":49,"props":1238,"children":1239},{},[1240,1241,1246],{"type":46,"value":262},{"type":40,"tag":55,"props":1242,"children":1244},{"className":1243},[],[1245],{"type":46,"value":60},{"type":46,"value":1247}," integration depends on the .NET SDK version.",{"type":40,"tag":832,"props":1249,"children":1251},{"id":1250},"net-10-sdk-and-later-recommended",[1252],{"type":46,"value":1253},".NET 10 SDK and later (recommended)",{"type":40,"tag":49,"props":1255,"children":1256},{},[1257,1259,1265,1267,1273],{"type":46,"value":1258},"Use the native MTP mode by adding a ",{"type":40,"tag":55,"props":1260,"children":1262},{"className":1261},[],[1263],{"type":46,"value":1264},"test",{"type":46,"value":1266}," section to ",{"type":40,"tag":55,"props":1268,"children":1270},{"className":1269},[],[1271],{"type":46,"value":1272},"global.json",{"type":46,"value":752},{"type":40,"tag":754,"props":1275,"children":1279},{"className":1276,"code":1277,"language":1278,"meta":759,"style":759},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"sdk\": {\n    \"version\": \"10.0.100\"\n  },\n  \"test\": {\n    \"runner\": \"Microsoft.Testing.Platform\"\n  }\n}\n","json",[1280],{"type":40,"tag":55,"props":1281,"children":1282},{"__ignoreMap":759},[1283,1292,1320,1358,1366,1390,1424,1433],{"type":40,"tag":765,"props":1284,"children":1285},{"class":767,"line":768},[1286],{"type":40,"tag":765,"props":1287,"children":1289},{"style":1288},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[1290],{"type":46,"value":1291},"{\n",{"type":40,"tag":765,"props":1293,"children":1294},{"class":767,"line":777},[1295,1300,1306,1311,1315],{"type":40,"tag":765,"props":1296,"children":1297},{"style":1288},[1298],{"type":46,"value":1299},"  \"",{"type":40,"tag":765,"props":1301,"children":1303},{"style":1302},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1304],{"type":46,"value":1305},"sdk",{"type":40,"tag":765,"props":1307,"children":1308},{"style":1288},[1309],{"type":46,"value":1310},"\"",{"type":40,"tag":765,"props":1312,"children":1313},{"style":1288},[1314],{"type":46,"value":752},{"type":40,"tag":765,"props":1316,"children":1317},{"style":1288},[1318],{"type":46,"value":1319}," {\n",{"type":40,"tag":765,"props":1321,"children":1322},{"class":767,"line":786},[1323,1328,1334,1338,1342,1347,1353],{"type":40,"tag":765,"props":1324,"children":1325},{"style":1288},[1326],{"type":46,"value":1327},"    \"",{"type":40,"tag":765,"props":1329,"children":1331},{"style":1330},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1332],{"type":46,"value":1333},"version",{"type":40,"tag":765,"props":1335,"children":1336},{"style":1288},[1337],{"type":46,"value":1310},{"type":40,"tag":765,"props":1339,"children":1340},{"style":1288},[1341],{"type":46,"value":752},{"type":40,"tag":765,"props":1343,"children":1344},{"style":1288},[1345],{"type":46,"value":1346}," \"",{"type":40,"tag":765,"props":1348,"children":1350},{"style":1349},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[1351],{"type":46,"value":1352},"10.0.100",{"type":40,"tag":765,"props":1354,"children":1355},{"style":1288},[1356],{"type":46,"value":1357},"\"\n",{"type":40,"tag":765,"props":1359,"children":1360},{"class":767,"line":877},[1361],{"type":40,"tag":765,"props":1362,"children":1363},{"style":1288},[1364],{"type":46,"value":1365},"  },\n",{"type":40,"tag":765,"props":1367,"children":1369},{"class":767,"line":1368},5,[1370,1374,1378,1382,1386],{"type":40,"tag":765,"props":1371,"children":1372},{"style":1288},[1373],{"type":46,"value":1299},{"type":40,"tag":765,"props":1375,"children":1376},{"style":1302},[1377],{"type":46,"value":1264},{"type":40,"tag":765,"props":1379,"children":1380},{"style":1288},[1381],{"type":46,"value":1310},{"type":40,"tag":765,"props":1383,"children":1384},{"style":1288},[1385],{"type":46,"value":752},{"type":40,"tag":765,"props":1387,"children":1388},{"style":1288},[1389],{"type":46,"value":1319},{"type":40,"tag":765,"props":1391,"children":1393},{"class":767,"line":1392},6,[1394,1398,1403,1407,1411,1415,1420],{"type":40,"tag":765,"props":1395,"children":1396},{"style":1288},[1397],{"type":46,"value":1327},{"type":40,"tag":765,"props":1399,"children":1400},{"style":1330},[1401],{"type":46,"value":1402},"runner",{"type":40,"tag":765,"props":1404,"children":1405},{"style":1288},[1406],{"type":46,"value":1310},{"type":40,"tag":765,"props":1408,"children":1409},{"style":1288},[1410],{"type":46,"value":752},{"type":40,"tag":765,"props":1412,"children":1413},{"style":1288},[1414],{"type":46,"value":1346},{"type":40,"tag":765,"props":1416,"children":1417},{"style":1349},[1418],{"type":46,"value":1419},"Microsoft.Testing.Platform",{"type":40,"tag":765,"props":1421,"children":1422},{"style":1288},[1423],{"type":46,"value":1357},{"type":40,"tag":765,"props":1425,"children":1427},{"class":767,"line":1426},7,[1428],{"type":40,"tag":765,"props":1429,"children":1430},{"style":1288},[1431],{"type":46,"value":1432},"  }\n",{"type":40,"tag":765,"props":1434,"children":1436},{"class":767,"line":1435},8,[1437],{"type":40,"tag":765,"props":1438,"children":1439},{"style":1288},[1440],{"type":46,"value":1441},"}\n",{"type":40,"tag":49,"props":1443,"children":1444},{},[1445,1447,1452,1454,1460],{"type":46,"value":1446},"In this mode, ",{"type":40,"tag":55,"props":1448,"children":1450},{"className":1449},[],[1451],{"type":46,"value":60},{"type":46,"value":1453}," arguments are passed directly -- for example, ",{"type":40,"tag":55,"props":1455,"children":1457},{"className":1456},[],[1458],{"type":46,"value":1459},"dotnet test --report-trx",{"type":46,"value":1163},{"type":40,"tag":64,"props":1462,"children":1463},{},[1464],{"type":40,"tag":49,"props":1465,"children":1466},{},[1467,1471,1472,1477],{"type":40,"tag":71,"props":1468,"children":1469},{},[1470],{"type":46,"value":75},{"type":46,"value":1118},{"type":40,"tag":55,"props":1473,"children":1475},{"className":1474},[],[1476],{"type":46,"value":1272},{"type":46,"value":1478}," does not support trailing commas. Ensure the JSON is strictly valid.",{"type":40,"tag":832,"props":1480,"children":1482},{"id":1481},"net-9-sdk-and-earlier",[1483],{"type":46,"value":1484},".NET 9 SDK and earlier",{"type":40,"tag":49,"props":1486,"children":1487},{},[1488,1490,1495,1497,1502],{"type":46,"value":1489},"Use the VSTest mode of ",{"type":40,"tag":55,"props":1491,"children":1493},{"className":1492},[],[1494],{"type":46,"value":60},{"type":46,"value":1496}," command to run MTP test projects by adding this property in ",{"type":40,"tag":55,"props":1498,"children":1500},{"className":1499},[],[1501],{"type":46,"value":526},{"type":46,"value":752},{"type":40,"tag":754,"props":1504,"children":1506},{"className":756,"code":1505,"language":758,"meta":759,"style":759},"\u003CPropertyGroup>\n  \u003CTestingPlatformDotnetTestSupport>true\u003C\u002FTestingPlatformDotnetTestSupport>\n\u003C\u002FPropertyGroup>\n",[1507],{"type":40,"tag":55,"props":1508,"children":1509},{"__ignoreMap":759},[1510,1517,1525],{"type":40,"tag":765,"props":1511,"children":1512},{"class":767,"line":768},[1513],{"type":40,"tag":765,"props":1514,"children":1515},{},[1516],{"type":46,"value":859},{"type":40,"tag":765,"props":1518,"children":1519},{"class":767,"line":777},[1520],{"type":40,"tag":765,"props":1521,"children":1522},{},[1523],{"type":46,"value":1524},"  \u003CTestingPlatformDotnetTestSupport>true\u003C\u002FTestingPlatformDotnetTestSupport>\n",{"type":40,"tag":765,"props":1526,"children":1527},{"class":767,"line":786},[1528],{"type":40,"tag":765,"props":1529,"children":1530},{},[1531],{"type":46,"value":792},{"type":40,"tag":64,"props":1533,"children":1534},{},[1535],{"type":40,"tag":49,"props":1536,"children":1537},{},[1538,1542,1544,1550,1552,1557,1559,1565],{"type":40,"tag":71,"props":1539,"children":1540},{},[1541],{"type":46,"value":75},{"type":46,"value":1543},": In this mode, you must use ",{"type":40,"tag":55,"props":1545,"children":1547},{"className":1546},[],[1548],{"type":46,"value":1549},"--",{"type":46,"value":1551}," to separate ",{"type":40,"tag":55,"props":1553,"children":1555},{"className":1554},[],[1556],{"type":46,"value":60},{"type":46,"value":1558}," build arguments from MTP arguments. For example: ",{"type":40,"tag":55,"props":1560,"children":1562},{"className":1561},[],[1563],{"type":46,"value":1564},"dotnet test --no-build -- --list-tests",{"type":46,"value":1163},{"type":40,"tag":377,"props":1567,"children":1569},{"id":1568},"step-5-update-dotnet-test-command-line-arguments",[1570],{"type":46,"value":1571},"Step 5: Update dotnet test command-line arguments",{"type":40,"tag":49,"props":1573,"children":1574},{},[1575,1577,1583,1584,1590,1591,1597,1598,1604,1605,1611],{"type":46,"value":1576},"VSTest-specific arguments must be translated to MTP equivalents. Build-related arguments (",{"type":40,"tag":55,"props":1578,"children":1580},{"className":1579},[],[1581],{"type":46,"value":1582},"-c",{"type":46,"value":270},{"type":40,"tag":55,"props":1585,"children":1587},{"className":1586},[],[1588],{"type":46,"value":1589},"-f",{"type":46,"value":270},{"type":40,"tag":55,"props":1592,"children":1594},{"className":1593},[],[1595],{"type":46,"value":1596},"--no-build",{"type":46,"value":270},{"type":40,"tag":55,"props":1599,"children":1601},{"className":1600},[],[1602],{"type":46,"value":1603},"--nologo",{"type":46,"value":270},{"type":40,"tag":55,"props":1606,"children":1608},{"className":1607},[],[1609],{"type":46,"value":1610},"-v",{"type":46,"value":1612},", etc.) are unchanged.",{"type":40,"tag":213,"props":1614,"children":1615},{},[1616,1637],{"type":40,"tag":217,"props":1617,"children":1618},{},[1619],{"type":40,"tag":221,"props":1620,"children":1621},{},[1622,1627,1632],{"type":40,"tag":225,"props":1623,"children":1624},{},[1625],{"type":46,"value":1626},"VSTest argument",{"type":40,"tag":225,"props":1628,"children":1629},{},[1630],{"type":46,"value":1631},"MTP equivalent",{"type":40,"tag":225,"props":1633,"children":1634},{},[1635],{"type":46,"value":1636},"Notes",{"type":40,"tag":241,"props":1638,"children":1639},{},[1640,1662,1681,1714,1740,1772,1798,1823,1849,1873,1905,1936,1961,1993,2018],{"type":40,"tag":221,"props":1641,"children":1642},{},[1643,1652,1657],{"type":40,"tag":248,"props":1644,"children":1645},{},[1646],{"type":40,"tag":55,"props":1647,"children":1649},{"className":1648},[],[1650],{"type":46,"value":1651},"--test-adapter-path",{"type":40,"tag":248,"props":1653,"children":1654},{},[1655],{"type":46,"value":1656},"Not applicable",{"type":40,"tag":248,"props":1658,"children":1659},{},[1660],{"type":46,"value":1661},"MTP does not use external adapter discovery",{"type":40,"tag":221,"props":1663,"children":1664},{},[1665,1674,1678],{"type":40,"tag":248,"props":1666,"children":1667},{},[1668],{"type":40,"tag":55,"props":1669,"children":1671},{"className":1670},[],[1672],{"type":46,"value":1673},"--blame",{"type":40,"tag":248,"props":1675,"children":1676},{},[1677],{"type":46,"value":1656},{"type":40,"tag":248,"props":1679,"children":1680},{},[],{"type":40,"tag":221,"props":1682,"children":1683},{},[1684,1693,1702],{"type":40,"tag":248,"props":1685,"children":1686},{},[1687],{"type":40,"tag":55,"props":1688,"children":1690},{"className":1689},[],[1691],{"type":46,"value":1692},"--blame-crash",{"type":40,"tag":248,"props":1694,"children":1695},{},[1696],{"type":40,"tag":55,"props":1697,"children":1699},{"className":1698},[],[1700],{"type":46,"value":1701},"--crashdump",{"type":40,"tag":248,"props":1703,"children":1704},{},[1705,1706,1712],{"type":46,"value":945},{"type":40,"tag":55,"props":1707,"children":1709},{"className":1708},[],[1710],{"type":46,"value":1711},"Microsoft.Testing.Extensions.CrashDump",{"type":46,"value":1713}," NuGet package",{"type":40,"tag":221,"props":1715,"children":1716},{},[1717,1726,1735],{"type":40,"tag":248,"props":1718,"children":1719},{},[1720],{"type":40,"tag":55,"props":1721,"children":1723},{"className":1722},[],[1724],{"type":46,"value":1725},"--blame-crash-dump-type \u003CTYPE>",{"type":40,"tag":248,"props":1727,"children":1728},{},[1729],{"type":40,"tag":55,"props":1730,"children":1732},{"className":1731},[],[1733],{"type":46,"value":1734},"--crashdump-type \u003CTYPE>",{"type":40,"tag":248,"props":1736,"children":1737},{},[1738],{"type":46,"value":1739},"Requires CrashDump extension",{"type":40,"tag":221,"props":1741,"children":1742},{},[1743,1752,1761],{"type":40,"tag":248,"props":1744,"children":1745},{},[1746],{"type":40,"tag":55,"props":1747,"children":1749},{"className":1748},[],[1750],{"type":46,"value":1751},"--blame-hang",{"type":40,"tag":248,"props":1753,"children":1754},{},[1755],{"type":40,"tag":55,"props":1756,"children":1758},{"className":1757},[],[1759],{"type":46,"value":1760},"--hangdump",{"type":40,"tag":248,"props":1762,"children":1763},{},[1764,1765,1771],{"type":46,"value":945},{"type":40,"tag":55,"props":1766,"children":1768},{"className":1767},[],[1769],{"type":46,"value":1770},"Microsoft.Testing.Extensions.HangDump",{"type":46,"value":1713},{"type":40,"tag":221,"props":1773,"children":1774},{},[1775,1784,1793],{"type":40,"tag":248,"props":1776,"children":1777},{},[1778],{"type":40,"tag":55,"props":1779,"children":1781},{"className":1780},[],[1782],{"type":46,"value":1783},"--blame-hang-dump-type \u003CTYPE>",{"type":40,"tag":248,"props":1785,"children":1786},{},[1787],{"type":40,"tag":55,"props":1788,"children":1790},{"className":1789},[],[1791],{"type":46,"value":1792},"--hangdump-type \u003CTYPE>",{"type":40,"tag":248,"props":1794,"children":1795},{},[1796],{"type":46,"value":1797},"Requires HangDump extension",{"type":40,"tag":221,"props":1799,"children":1800},{},[1801,1810,1819],{"type":40,"tag":248,"props":1802,"children":1803},{},[1804],{"type":40,"tag":55,"props":1805,"children":1807},{"className":1806},[],[1808],{"type":46,"value":1809},"--blame-hang-timeout \u003CTIMESPAN>",{"type":40,"tag":248,"props":1811,"children":1812},{},[1813],{"type":40,"tag":55,"props":1814,"children":1816},{"className":1815},[],[1817],{"type":46,"value":1818},"--hangdump-timeout \u003CTIMESPAN>",{"type":40,"tag":248,"props":1820,"children":1821},{},[1822],{"type":46,"value":1797},{"type":40,"tag":221,"props":1824,"children":1825},{},[1826,1835,1844],{"type":40,"tag":248,"props":1827,"children":1828},{},[1829],{"type":40,"tag":55,"props":1830,"children":1832},{"className":1831},[],[1833],{"type":46,"value":1834},"--collect \"Code Coverage;Format=cobertura\"",{"type":40,"tag":248,"props":1836,"children":1837},{},[1838],{"type":40,"tag":55,"props":1839,"children":1841},{"className":1840},[],[1842],{"type":46,"value":1843},"--coverage --coverage-output-format cobertura",{"type":40,"tag":248,"props":1845,"children":1846},{},[1847],{"type":46,"value":1848},"Per-extension arguments",{"type":40,"tag":221,"props":1850,"children":1851},{},[1852,1861,1870],{"type":40,"tag":248,"props":1853,"children":1854},{},[1855],{"type":40,"tag":55,"props":1856,"children":1858},{"className":1857},[],[1859],{"type":46,"value":1860},"-d|--diag \u003CLOG_FILE>",{"type":40,"tag":248,"props":1862,"children":1863},{},[1864],{"type":40,"tag":55,"props":1865,"children":1867},{"className":1866},[],[1868],{"type":46,"value":1869},"--diagnostic",{"type":40,"tag":248,"props":1871,"children":1872},{},[],{"type":40,"tag":221,"props":1874,"children":1875},{},[1876,1885,1893],{"type":40,"tag":248,"props":1877,"children":1878},{},[1879],{"type":40,"tag":55,"props":1880,"children":1882},{"className":1881},[],[1883],{"type":46,"value":1884},"--filter \u003CEXPRESSION>",{"type":40,"tag":248,"props":1886,"children":1887},{},[1888],{"type":40,"tag":55,"props":1889,"children":1891},{"className":1890},[],[1892],{"type":46,"value":1884},{"type":40,"tag":248,"props":1894,"children":1895},{},[1896,1898,1903],{"type":46,"value":1897},"Same syntax for MSTest, NUnit, and xUnit.net v2 (with ",{"type":40,"tag":55,"props":1899,"children":1901},{"className":1900},[],[1902],{"type":46,"value":668},{"type":46,"value":1904},"). For xUnit.net v3, see filter migration below",{"type":40,"tag":221,"props":1906,"children":1907},{},[1908,1917,1925],{"type":40,"tag":248,"props":1909,"children":1910},{},[1911],{"type":40,"tag":55,"props":1912,"children":1914},{"className":1913},[],[1915],{"type":46,"value":1916},"-l|--logger trx",{"type":40,"tag":248,"props":1918,"children":1919},{},[1920],{"type":40,"tag":55,"props":1921,"children":1923},{"className":1922},[],[1924],{"type":46,"value":1153},{"type":40,"tag":248,"props":1926,"children":1927},{},[1928,1929,1935],{"type":46,"value":945},{"type":40,"tag":55,"props":1930,"children":1932},{"className":1931},[],[1933],{"type":46,"value":1934},"Microsoft.Testing.Extensions.TrxReport",{"type":46,"value":1713},{"type":40,"tag":221,"props":1937,"children":1938},{},[1939,1948,1956],{"type":40,"tag":248,"props":1940,"children":1941},{},[1942],{"type":40,"tag":55,"props":1943,"children":1945},{"className":1944},[],[1946],{"type":46,"value":1947},"--results-directory \u003CDIR>",{"type":40,"tag":248,"props":1949,"children":1950},{},[1951],{"type":40,"tag":55,"props":1952,"children":1954},{"className":1953},[],[1955],{"type":46,"value":1947},{"type":40,"tag":248,"props":1957,"children":1958},{},[1959],{"type":46,"value":1960},"Same",{"type":40,"tag":221,"props":1962,"children":1963},{},[1964,1973,1982],{"type":40,"tag":248,"props":1965,"children":1966},{},[1967],{"type":40,"tag":55,"props":1968,"children":1970},{"className":1969},[],[1971],{"type":46,"value":1972},"-s|--settings \u003CFILE>",{"type":40,"tag":248,"props":1974,"children":1975},{},[1976],{"type":40,"tag":55,"props":1977,"children":1979},{"className":1978},[],[1980],{"type":46,"value":1981},"--settings \u003CFILE>",{"type":40,"tag":248,"props":1983,"children":1984},{},[1985,1987],{"type":46,"value":1986},"MSTest and NUnit still support ",{"type":40,"tag":55,"props":1988,"children":1990},{"className":1989},[],[1991],{"type":46,"value":1992},".runsettings",{"type":40,"tag":221,"props":1994,"children":1995},{},[1996,2005,2014],{"type":40,"tag":248,"props":1997,"children":1998},{},[1999],{"type":40,"tag":55,"props":2000,"children":2002},{"className":2001},[],[2003],{"type":46,"value":2004},"-t|--list-tests",{"type":40,"tag":248,"props":2006,"children":2007},{},[2008],{"type":40,"tag":55,"props":2009,"children":2011},{"className":2010},[],[2012],{"type":46,"value":2013},"--list-tests",{"type":40,"tag":248,"props":2015,"children":2016},{},[2017],{"type":46,"value":1960},{"type":40,"tag":221,"props":2019,"children":2020},{},[2021,2030,2039],{"type":40,"tag":248,"props":2022,"children":2023},{},[2024],{"type":40,"tag":55,"props":2025,"children":2027},{"className":2026},[],[2028],{"type":46,"value":2029},"-- \u003CRunSettings args>",{"type":40,"tag":248,"props":2031,"children":2032},{},[2033],{"type":40,"tag":55,"props":2034,"children":2036},{"className":2035},[],[2037],{"type":46,"value":2038},"--test-parameter",{"type":40,"tag":248,"props":2040,"children":2041},{},[2042],{"type":46,"value":2043},"Applicable only to MSTest and NUnit",{"type":40,"tag":832,"props":2045,"children":2047},{"id":2046},"filter-migration",[2048],{"type":46,"value":2049},"Filter migration",{"type":40,"tag":49,"props":2051,"children":2052},{},[2053,2065,2067,2072],{"type":40,"tag":71,"props":2054,"children":2055},{},[2056,2058,2063],{"type":46,"value":2057},"MSTest, NUnit, and xUnit.net v2 (with ",{"type":40,"tag":55,"props":2059,"children":2061},{"className":2060},[],[2062],{"type":46,"value":668},{"type":46,"value":2064},")",{"type":46,"value":2066},": The VSTest ",{"type":40,"tag":55,"props":2068,"children":2070},{"className":2069},[],[2071],{"type":46,"value":558},{"type":46,"value":2073}," syntax is identical on both VSTest and MTP. No changes needed.",{"type":40,"tag":49,"props":2075,"children":2076},{},[2077,2082,2084,2089],{"type":40,"tag":71,"props":2078,"children":2079},{},[2080],{"type":46,"value":2081},"xUnit.net v3 (native MTP)",{"type":46,"value":2083},": xUnit.net v3 does NOT support the VSTest ",{"type":40,"tag":55,"props":2085,"children":2087},{"className":2086},[],[2088],{"type":46,"value":558},{"type":46,"value":2090}," syntax on MTP. You must translate filters to xUnit.net v3's native filter options.",{"type":40,"tag":832,"props":2092,"children":2094},{"id":2093},"xunitnet-v3-filter-flags",[2095],{"type":46,"value":2096},"xUnit.net v3 filter flags",{"type":40,"tag":213,"props":2098,"children":2099},{},[2100,2115],{"type":40,"tag":217,"props":2101,"children":2102},{},[2103],{"type":40,"tag":221,"props":2104,"children":2105},{},[2106,2111],{"type":40,"tag":225,"props":2107,"children":2108},{},[2109],{"type":46,"value":2110},"Flag",{"type":40,"tag":225,"props":2112,"children":2113},{},[2114],{"type":46,"value":239},{"type":40,"tag":241,"props":2116,"children":2117},{},[2118,2143,2160,2177,2194,2211,2228,2245],{"type":40,"tag":221,"props":2119,"children":2120},{},[2121,2130],{"type":40,"tag":248,"props":2122,"children":2123},{},[2124],{"type":40,"tag":55,"props":2125,"children":2127},{"className":2126},[],[2128],{"type":46,"value":2129},"--filter-class \"name\"",{"type":40,"tag":248,"props":2131,"children":2132},{},[2133,2135,2141],{"type":46,"value":2134},"Run all tests in a given class. Supports wildcards (",{"type":40,"tag":55,"props":2136,"children":2138},{"className":2137},[],[2139],{"type":46,"value":2140},"*",{"type":46,"value":2142},").",{"type":40,"tag":221,"props":2144,"children":2145},{},[2146,2155],{"type":40,"tag":248,"props":2147,"children":2148},{},[2149],{"type":40,"tag":55,"props":2150,"children":2152},{"className":2151},[],[2153],{"type":46,"value":2154},"--filter-not-class \"name\"",{"type":40,"tag":248,"props":2156,"children":2157},{},[2158],{"type":46,"value":2159},"Exclude all tests in a given class",{"type":40,"tag":221,"props":2161,"children":2162},{},[2163,2172],{"type":40,"tag":248,"props":2164,"children":2165},{},[2166],{"type":40,"tag":55,"props":2167,"children":2169},{"className":2168},[],[2170],{"type":46,"value":2171},"--filter-method \"name\"",{"type":40,"tag":248,"props":2173,"children":2174},{},[2175],{"type":46,"value":2176},"Run a specific test method",{"type":40,"tag":221,"props":2178,"children":2179},{},[2180,2189],{"type":40,"tag":248,"props":2181,"children":2182},{},[2183],{"type":40,"tag":55,"props":2184,"children":2186},{"className":2185},[],[2187],{"type":46,"value":2188},"--filter-not-method \"name\"",{"type":40,"tag":248,"props":2190,"children":2191},{},[2192],{"type":46,"value":2193},"Exclude a specific test method",{"type":40,"tag":221,"props":2195,"children":2196},{},[2197,2206],{"type":40,"tag":248,"props":2198,"children":2199},{},[2200],{"type":40,"tag":55,"props":2201,"children":2203},{"className":2202},[],[2204],{"type":46,"value":2205},"--filter-namespace \"name\"",{"type":40,"tag":248,"props":2207,"children":2208},{},[2209],{"type":46,"value":2210},"Run all tests in a namespace",{"type":40,"tag":221,"props":2212,"children":2213},{},[2214,2223],{"type":40,"tag":248,"props":2215,"children":2216},{},[2217],{"type":40,"tag":55,"props":2218,"children":2220},{"className":2219},[],[2221],{"type":46,"value":2222},"--filter-not-namespace \"name\"",{"type":40,"tag":248,"props":2224,"children":2225},{},[2226],{"type":46,"value":2227},"Exclude all tests in a namespace",{"type":40,"tag":221,"props":2229,"children":2230},{},[2231,2240],{"type":40,"tag":248,"props":2232,"children":2233},{},[2234],{"type":40,"tag":55,"props":2235,"children":2237},{"className":2236},[],[2238],{"type":46,"value":2239},"--filter-trait \"name=value\"",{"type":40,"tag":248,"props":2241,"children":2242},{},[2243],{"type":46,"value":2244},"Run tests with a matching trait",{"type":40,"tag":221,"props":2246,"children":2247},{},[2248,2257],{"type":40,"tag":248,"props":2249,"children":2250},{},[2251],{"type":40,"tag":55,"props":2252,"children":2254},{"className":2253},[],[2255],{"type":46,"value":2256},"--filter-not-trait \"name=value\"",{"type":40,"tag":248,"props":2258,"children":2259},{},[2260],{"type":46,"value":2261},"Exclude tests with a matching trait",{"type":40,"tag":49,"props":2263,"children":2264},{},[2265,2267,2273],{"type":46,"value":2266},"Multiple values can be specified with a single flag: ",{"type":40,"tag":55,"props":2268,"children":2270},{"className":2269},[],[2271],{"type":46,"value":2272},"--filter-class Foo Bar",{"type":46,"value":1163},{"type":40,"tag":832,"props":2275,"children":2277},{"id":2276},"vstest-xunitnet-v3-filter-translation-table",[2278],{"type":46,"value":2279},"VSTest → xUnit.net v3 filter translation table",{"type":40,"tag":213,"props":2281,"children":2282},{},[2283,2310],{"type":40,"tag":217,"props":2284,"children":2285},{},[2286],{"type":40,"tag":221,"props":2287,"children":2288},{},[2289,2301,2306],{"type":40,"tag":225,"props":2290,"children":2291},{},[2292,2294,2299],{"type":46,"value":2293},"VSTest ",{"type":40,"tag":55,"props":2295,"children":2297},{"className":2296},[],[2298],{"type":46,"value":558},{"type":46,"value":2300}," syntax",{"type":40,"tag":225,"props":2302,"children":2303},{},[2304],{"type":46,"value":2305},"xUnit.net v3 MTP equivalent",{"type":40,"tag":225,"props":2307,"children":2308},{},[2309],{"type":46,"value":1636},{"type":40,"tag":241,"props":2311,"children":2312},{},[2313,2339,2365,2391,2419],{"type":40,"tag":221,"props":2314,"children":2315},{},[2316,2325,2334],{"type":40,"tag":248,"props":2317,"children":2318},{},[2319],{"type":40,"tag":55,"props":2320,"children":2322},{"className":2321},[],[2323],{"type":46,"value":2324},"FullyQualifiedName~ClassName",{"type":40,"tag":248,"props":2326,"children":2327},{},[2328],{"type":40,"tag":55,"props":2329,"children":2331},{"className":2330},[],[2332],{"type":46,"value":2333},"--filter-class *ClassName*",{"type":40,"tag":248,"props":2335,"children":2336},{},[2337],{"type":46,"value":2338},"Wildcards required for substring match",{"type":40,"tag":221,"props":2340,"children":2341},{},[2342,2351,2360],{"type":40,"tag":248,"props":2343,"children":2344},{},[2345],{"type":40,"tag":55,"props":2346,"children":2348},{"className":2347},[],[2349],{"type":46,"value":2350},"FullyQualifiedName=Ns.Class.Method",{"type":40,"tag":248,"props":2352,"children":2353},{},[2354],{"type":40,"tag":55,"props":2355,"children":2357},{"className":2356},[],[2358],{"type":46,"value":2359},"--filter-method Ns.Class.Method",{"type":40,"tag":248,"props":2361,"children":2362},{},[2363],{"type":46,"value":2364},"Exact match on fully qualified method",{"type":40,"tag":221,"props":2366,"children":2367},{},[2368,2377,2386],{"type":40,"tag":248,"props":2369,"children":2370},{},[2371],{"type":40,"tag":55,"props":2372,"children":2374},{"className":2373},[],[2375],{"type":46,"value":2376},"Name=MethodName",{"type":40,"tag":248,"props":2378,"children":2379},{},[2380],{"type":40,"tag":55,"props":2381,"children":2383},{"className":2382},[],[2384],{"type":46,"value":2385},"--filter-method *MethodName*",{"type":40,"tag":248,"props":2387,"children":2388},{},[2389],{"type":46,"value":2390},"Wildcards for substring match",{"type":40,"tag":221,"props":2392,"children":2393},{},[2394,2405,2414],{"type":40,"tag":248,"props":2395,"children":2396},{},[2397,2403],{"type":40,"tag":55,"props":2398,"children":2400},{"className":2399},[],[2401],{"type":46,"value":2402},"Category=Value",{"type":46,"value":2404}," (trait)",{"type":40,"tag":248,"props":2406,"children":2407},{},[2408],{"type":40,"tag":55,"props":2409,"children":2411},{"className":2410},[],[2412],{"type":46,"value":2413},"--filter-trait \"Category=Value\"",{"type":40,"tag":248,"props":2415,"children":2416},{},[2417],{"type":46,"value":2418},"Filter by trait name\u002Fvalue pair",{"type":40,"tag":221,"props":2420,"children":2421},{},[2422,2427,2436],{"type":40,"tag":248,"props":2423,"children":2424},{},[2425],{"type":46,"value":2426},"Complex expressions",{"type":40,"tag":248,"props":2428,"children":2429},{},[2430],{"type":40,"tag":55,"props":2431,"children":2433},{"className":2432},[],[2434],{"type":46,"value":2435},"--filter-query \"expr\"",{"type":40,"tag":248,"props":2437,"children":2438},{},[2439],{"type":46,"value":2440},"Uses xUnit.net query filter language (see below)",{"type":40,"tag":832,"props":2442,"children":2444},{"id":2443},"xunitnet-v3-query-filter-language",[2445],{"type":46,"value":2446},"xUnit.net v3 query filter language",{"type":40,"tag":49,"props":2448,"children":2449},{},[2450,2452,2458],{"type":46,"value":2451},"For complex expressions, use ",{"type":40,"tag":55,"props":2453,"children":2455},{"className":2454},[],[2456],{"type":46,"value":2457},"--filter-query",{"type":46,"value":2459}," with a path-segment syntax:",{"type":40,"tag":754,"props":2461,"children":2465},{"className":2462,"code":2464,"language":46,"meta":759},[2463],"language-text","\u002F\u003CassemblyFilter>\u002F\u003CnamespaceFilter>\u002F\u003CclassFilter>\u002F\u003CmethodFilter>[traitName=traitValue]\n",[2466],{"type":40,"tag":55,"props":2467,"children":2468},{"__ignoreMap":759},[2469],{"type":46,"value":2464},{"type":40,"tag":49,"props":2471,"children":2472},{},[2473,2475,2480,2482],{"type":46,"value":2474},"Each segment matches against: assembly name, namespace, class name, method name. Use ",{"type":40,"tag":55,"props":2476,"children":2478},{"className":2477},[],[2479],{"type":46,"value":2140},{"type":46,"value":2481}," for \"match all\" in any segment. Documentation: ",{"type":40,"tag":2483,"props":2484,"children":2488},"a",{"href":2485,"rel":2486},"https:\u002F\u002Fxunit.net\u002Fdocs\u002Fquery-filter-language",[2487],"nofollow",[2489],{"type":46,"value":2485},{"type":40,"tag":832,"props":2491,"children":2493},{"id":2492},"translation-example",[2494],{"type":46,"value":2495},"Translation example",{"type":40,"tag":754,"props":2497,"children":2501},{"className":2498,"code":2499,"language":2500,"meta":759,"style":759},"language-shell shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# VSTest\ndotnet test --filter \"FullyQualifiedName~IntegrationTests&Category=Smoke\"\n\n# xUnit.net v3 MTP -- using individual filters (AND behavior)\ndotnet test -- --filter-class *IntegrationTests* --filter-trait \"Category=Smoke\"\n\n# xUnit.net v3 MTP -- using query language (assembly\u002Fnamespace\u002Fclass\u002Fmethod[trait])\ndotnet test -- --filter-query \"\u002F*\u002F*\u002F*IntegrationTests*\u002F*[Category=Smoke]\"\n","shell",[2502],{"type":40,"tag":55,"props":2503,"children":2504},{"__ignoreMap":759},[2505,2514,2544,2553,2561,2615,2622,2630],{"type":40,"tag":765,"props":2506,"children":2507},{"class":767,"line":768},[2508],{"type":40,"tag":765,"props":2509,"children":2511},{"style":2510},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[2512],{"type":46,"value":2513},"# VSTest\n",{"type":40,"tag":765,"props":2515,"children":2516},{"class":767,"line":777},[2517,2521,2526,2531,2535,2540],{"type":40,"tag":765,"props":2518,"children":2519},{"style":1330},[2520],{"type":46,"value":8},{"type":40,"tag":765,"props":2522,"children":2523},{"style":1349},[2524],{"type":46,"value":2525}," test",{"type":40,"tag":765,"props":2527,"children":2528},{"style":1349},[2529],{"type":46,"value":2530}," --filter",{"type":40,"tag":765,"props":2532,"children":2533},{"style":1288},[2534],{"type":46,"value":1346},{"type":40,"tag":765,"props":2536,"children":2537},{"style":1349},[2538],{"type":46,"value":2539},"FullyQualifiedName~IntegrationTests&Category=Smoke",{"type":40,"tag":765,"props":2541,"children":2542},{"style":1288},[2543],{"type":46,"value":1357},{"type":40,"tag":765,"props":2545,"children":2546},{"class":767,"line":786},[2547],{"type":40,"tag":765,"props":2548,"children":2550},{"emptyLinePlaceholder":2549},true,[2551],{"type":46,"value":2552},"\n",{"type":40,"tag":765,"props":2554,"children":2555},{"class":767,"line":877},[2556],{"type":40,"tag":765,"props":2557,"children":2558},{"style":2510},[2559],{"type":46,"value":2560},"# xUnit.net v3 MTP -- using individual filters (AND behavior)\n",{"type":40,"tag":765,"props":2562,"children":2563},{"class":767,"line":1368},[2564,2568,2572,2577,2582,2588,2593,2597,2602,2606,2611],{"type":40,"tag":765,"props":2565,"children":2566},{"style":1330},[2567],{"type":46,"value":8},{"type":40,"tag":765,"props":2569,"children":2570},{"style":1349},[2571],{"type":46,"value":2525},{"type":40,"tag":765,"props":2573,"children":2574},{"style":1349},[2575],{"type":46,"value":2576}," --",{"type":40,"tag":765,"props":2578,"children":2579},{"style":1349},[2580],{"type":46,"value":2581}," --filter-class",{"type":40,"tag":765,"props":2583,"children":2585},{"style":2584},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[2586],{"type":46,"value":2587}," *",{"type":40,"tag":765,"props":2589,"children":2590},{"style":1349},[2591],{"type":46,"value":2592},"IntegrationTests",{"type":40,"tag":765,"props":2594,"children":2595},{"style":2584},[2596],{"type":46,"value":2140},{"type":40,"tag":765,"props":2598,"children":2599},{"style":1349},[2600],{"type":46,"value":2601}," --filter-trait",{"type":40,"tag":765,"props":2603,"children":2604},{"style":1288},[2605],{"type":46,"value":1346},{"type":40,"tag":765,"props":2607,"children":2608},{"style":1349},[2609],{"type":46,"value":2610},"Category=Smoke",{"type":40,"tag":765,"props":2612,"children":2613},{"style":1288},[2614],{"type":46,"value":1357},{"type":40,"tag":765,"props":2616,"children":2617},{"class":767,"line":1392},[2618],{"type":40,"tag":765,"props":2619,"children":2620},{"emptyLinePlaceholder":2549},[2621],{"type":46,"value":2552},{"type":40,"tag":765,"props":2623,"children":2624},{"class":767,"line":1426},[2625],{"type":40,"tag":765,"props":2626,"children":2627},{"style":2510},[2628],{"type":46,"value":2629},"# xUnit.net v3 MTP -- using query language (assembly\u002Fnamespace\u002Fclass\u002Fmethod[trait])\n",{"type":40,"tag":765,"props":2631,"children":2632},{"class":767,"line":1435},[2633,2637,2641,2645,2650,2654,2659],{"type":40,"tag":765,"props":2634,"children":2635},{"style":1330},[2636],{"type":46,"value":8},{"type":40,"tag":765,"props":2638,"children":2639},{"style":1349},[2640],{"type":46,"value":2525},{"type":40,"tag":765,"props":2642,"children":2643},{"style":1349},[2644],{"type":46,"value":2576},{"type":40,"tag":765,"props":2646,"children":2647},{"style":1349},[2648],{"type":46,"value":2649}," --filter-query",{"type":40,"tag":765,"props":2651,"children":2652},{"style":1288},[2653],{"type":46,"value":1346},{"type":40,"tag":765,"props":2655,"children":2656},{"style":1349},[2657],{"type":46,"value":2658},"\u002F*\u002F*\u002F*IntegrationTests*\u002F*[Category=Smoke]",{"type":40,"tag":765,"props":2660,"children":2661},{"style":1288},[2662],{"type":46,"value":1357},{"type":40,"tag":64,"props":2664,"children":2665},{},[2666],{"type":40,"tag":49,"props":2667,"children":2668},{},[2669,2673,2675,2681,2682,2688,2690,2695,2697,2703],{"type":40,"tag":71,"props":2670,"children":2671},{},[2672],{"type":46,"value":629},{"type":46,"value":2674},": When combining ",{"type":40,"tag":55,"props":2676,"children":2678},{"className":2677},[],[2679],{"type":46,"value":2680},"--filter-class",{"type":46,"value":490},{"type":40,"tag":55,"props":2683,"children":2685},{"className":2684},[],[2686],{"type":46,"value":2687},"--filter-trait",{"type":46,"value":2689},", both conditions must match (AND behavior). For complex expressions, use ",{"type":40,"tag":55,"props":2691,"children":2693},{"className":2692},[],[2694],{"type":46,"value":2457},{"type":46,"value":2696}," with the path-segment syntax. See the ",{"type":40,"tag":2483,"props":2698,"children":2700},{"href":2485,"rel":2699},[2487],[2701],{"type":46,"value":2702},"xUnit.net query filter language docs",{"type":46,"value":2704}," for full reference.",{"type":40,"tag":377,"props":2706,"children":2708},{"id":2707},"step-6-install-mtp-extension-packages-if-needed",[2709],{"type":46,"value":2710},"Step 6: Install MTP extension packages (if needed)",{"type":40,"tag":49,"props":2712,"children":2713},{},[2714],{"type":46,"value":2715},"If CI scripts use TRX reporting, crash dumps, or hang dumps, add the corresponding NuGet packages:",{"type":40,"tag":754,"props":2717,"children":2719},{"className":756,"code":2718,"language":758,"meta":759,"style":759},"\u003C!-- TRX report generation (replaces --logger trx) -->\n\u003CPackageReference Include=\"Microsoft.Testing.Extensions.TrxReport\" Version=\"1.6.2\" \u002F>\n\n\u003C!-- Crash dump collection (replaces --blame-crash) -->\n\u003CPackageReference Include=\"Microsoft.Testing.Extensions.CrashDump\" Version=\"1.6.2\" \u002F>\n\n\u003C!-- Hang dump collection (replaces --blame-hang) -->\n\u003CPackageReference Include=\"Microsoft.Testing.Extensions.HangDump\" Version=\"1.6.2\" \u002F>\n\n\u003C!-- Code coverage (replaces --collect \"Code Coverage\") -->\n\u003CPackageReference Include=\"Microsoft.Testing.Extensions.CodeCoverage\" Version=\"17.13.0\" \u002F>\n",[2720],{"type":40,"tag":55,"props":2721,"children":2722},{"__ignoreMap":759},[2723,2731,2739,2746,2754,2762,2769,2777,2785,2793,2802],{"type":40,"tag":765,"props":2724,"children":2725},{"class":767,"line":768},[2726],{"type":40,"tag":765,"props":2727,"children":2728},{},[2729],{"type":46,"value":2730},"\u003C!-- TRX report generation (replaces --logger trx) -->\n",{"type":40,"tag":765,"props":2732,"children":2733},{"class":767,"line":777},[2734],{"type":40,"tag":765,"props":2735,"children":2736},{},[2737],{"type":46,"value":2738},"\u003CPackageReference Include=\"Microsoft.Testing.Extensions.TrxReport\" Version=\"1.6.2\" \u002F>\n",{"type":40,"tag":765,"props":2740,"children":2741},{"class":767,"line":786},[2742],{"type":40,"tag":765,"props":2743,"children":2744},{"emptyLinePlaceholder":2549},[2745],{"type":46,"value":2552},{"type":40,"tag":765,"props":2747,"children":2748},{"class":767,"line":877},[2749],{"type":40,"tag":765,"props":2750,"children":2751},{},[2752],{"type":46,"value":2753},"\u003C!-- Crash dump collection (replaces --blame-crash) -->\n",{"type":40,"tag":765,"props":2755,"children":2756},{"class":767,"line":1368},[2757],{"type":40,"tag":765,"props":2758,"children":2759},{},[2760],{"type":46,"value":2761},"\u003CPackageReference Include=\"Microsoft.Testing.Extensions.CrashDump\" Version=\"1.6.2\" \u002F>\n",{"type":40,"tag":765,"props":2763,"children":2764},{"class":767,"line":1392},[2765],{"type":40,"tag":765,"props":2766,"children":2767},{"emptyLinePlaceholder":2549},[2768],{"type":46,"value":2552},{"type":40,"tag":765,"props":2770,"children":2771},{"class":767,"line":1426},[2772],{"type":40,"tag":765,"props":2773,"children":2774},{},[2775],{"type":46,"value":2776},"\u003C!-- Hang dump collection (replaces --blame-hang) -->\n",{"type":40,"tag":765,"props":2778,"children":2779},{"class":767,"line":1435},[2780],{"type":40,"tag":765,"props":2781,"children":2782},{},[2783],{"type":46,"value":2784},"\u003CPackageReference Include=\"Microsoft.Testing.Extensions.HangDump\" Version=\"1.6.2\" \u002F>\n",{"type":40,"tag":765,"props":2786,"children":2788},{"class":767,"line":2787},9,[2789],{"type":40,"tag":765,"props":2790,"children":2791},{"emptyLinePlaceholder":2549},[2792],{"type":46,"value":2552},{"type":40,"tag":765,"props":2794,"children":2796},{"class":767,"line":2795},10,[2797],{"type":40,"tag":765,"props":2798,"children":2799},{},[2800],{"type":46,"value":2801},"\u003C!-- Code coverage (replaces --collect \"Code Coverage\") -->\n",{"type":40,"tag":765,"props":2803,"children":2805},{"class":767,"line":2804},11,[2806],{"type":40,"tag":765,"props":2807,"children":2808},{},[2809],{"type":46,"value":2810},"\u003CPackageReference Include=\"Microsoft.Testing.Extensions.CodeCoverage\" Version=\"17.13.0\" \u002F>\n",{"type":40,"tag":377,"props":2812,"children":2814},{"id":2813},"step-7-update-cicd-pipelines",[2815],{"type":46,"value":2816},"Step 7: Update CI\u002FCD pipelines",{"type":40,"tag":832,"props":2818,"children":2820},{"id":2819},"azure-devops",[2821],{"type":46,"value":2822},"Azure DevOps",{"type":40,"tag":49,"props":2824,"children":2825},{},[2826,2838,2840,2846],{"type":40,"tag":71,"props":2827,"children":2828},{},[2829,2831,2837],{"type":46,"value":2830},"If using the VSTest task (",{"type":40,"tag":55,"props":2832,"children":2834},{"className":2833},[],[2835],{"type":46,"value":2836},"VSTest@3",{"type":46,"value":2064},{"type":46,"value":2839},": Replace with the .NET Core CLI task (",{"type":40,"tag":55,"props":2841,"children":2843},{"className":2842},[],[2844],{"type":46,"value":2845},"DotNetCoreCLI@2",{"type":46,"value":2847},"):",{"type":40,"tag":754,"props":2849,"children":2853},{"className":2850,"code":2851,"language":2852,"meta":759,"style":759},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Before (VSTest task)\n- task: VSTest@3\n  inputs:\n    testAssemblyVer2: '**\u002F*Tests.dll'\n    runSettingsFile: 'test.runsettings'\n\n# After (.NET Core CLI task)\n- task: DotNetCoreCLI@2\n  displayName: Run tests\n  inputs:\n    command: 'test'\n    arguments: '--no-build --configuration Release'\n","yaml",[2854],{"type":40,"tag":55,"props":2855,"children":2856},{"__ignoreMap":759},[2857,2865,2888,2901,2928,2953,2960,2968,2988,3005,3016,3040],{"type":40,"tag":765,"props":2858,"children":2859},{"class":767,"line":768},[2860],{"type":40,"tag":765,"props":2861,"children":2862},{"style":2510},[2863],{"type":46,"value":2864},"# Before (VSTest task)\n",{"type":40,"tag":765,"props":2866,"children":2867},{"class":767,"line":777},[2868,2873,2879,2883],{"type":40,"tag":765,"props":2869,"children":2870},{"style":1288},[2871],{"type":46,"value":2872},"-",{"type":40,"tag":765,"props":2874,"children":2876},{"style":2875},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[2877],{"type":46,"value":2878}," task",{"type":40,"tag":765,"props":2880,"children":2881},{"style":1288},[2882],{"type":46,"value":752},{"type":40,"tag":765,"props":2884,"children":2885},{"style":1349},[2886],{"type":46,"value":2887}," VSTest@3\n",{"type":40,"tag":765,"props":2889,"children":2890},{"class":767,"line":786},[2891,2896],{"type":40,"tag":765,"props":2892,"children":2893},{"style":2875},[2894],{"type":46,"value":2895},"  inputs",{"type":40,"tag":765,"props":2897,"children":2898},{"style":1288},[2899],{"type":46,"value":2900},":\n",{"type":40,"tag":765,"props":2902,"children":2903},{"class":767,"line":877},[2904,2909,2913,2918,2923],{"type":40,"tag":765,"props":2905,"children":2906},{"style":2875},[2907],{"type":46,"value":2908},"    testAssemblyVer2",{"type":40,"tag":765,"props":2910,"children":2911},{"style":1288},[2912],{"type":46,"value":752},{"type":40,"tag":765,"props":2914,"children":2915},{"style":1288},[2916],{"type":46,"value":2917}," '",{"type":40,"tag":765,"props":2919,"children":2920},{"style":1349},[2921],{"type":46,"value":2922},"**\u002F*Tests.dll",{"type":40,"tag":765,"props":2924,"children":2925},{"style":1288},[2926],{"type":46,"value":2927},"'\n",{"type":40,"tag":765,"props":2929,"children":2930},{"class":767,"line":1368},[2931,2936,2940,2944,2949],{"type":40,"tag":765,"props":2932,"children":2933},{"style":2875},[2934],{"type":46,"value":2935},"    runSettingsFile",{"type":40,"tag":765,"props":2937,"children":2938},{"style":1288},[2939],{"type":46,"value":752},{"type":40,"tag":765,"props":2941,"children":2942},{"style":1288},[2943],{"type":46,"value":2917},{"type":40,"tag":765,"props":2945,"children":2946},{"style":1349},[2947],{"type":46,"value":2948},"test.runsettings",{"type":40,"tag":765,"props":2950,"children":2951},{"style":1288},[2952],{"type":46,"value":2927},{"type":40,"tag":765,"props":2954,"children":2955},{"class":767,"line":1392},[2956],{"type":40,"tag":765,"props":2957,"children":2958},{"emptyLinePlaceholder":2549},[2959],{"type":46,"value":2552},{"type":40,"tag":765,"props":2961,"children":2962},{"class":767,"line":1426},[2963],{"type":40,"tag":765,"props":2964,"children":2965},{"style":2510},[2966],{"type":46,"value":2967},"# After (.NET Core CLI task)\n",{"type":40,"tag":765,"props":2969,"children":2970},{"class":767,"line":1435},[2971,2975,2979,2983],{"type":40,"tag":765,"props":2972,"children":2973},{"style":1288},[2974],{"type":46,"value":2872},{"type":40,"tag":765,"props":2976,"children":2977},{"style":2875},[2978],{"type":46,"value":2878},{"type":40,"tag":765,"props":2980,"children":2981},{"style":1288},[2982],{"type":46,"value":752},{"type":40,"tag":765,"props":2984,"children":2985},{"style":1349},[2986],{"type":46,"value":2987}," DotNetCoreCLI@2\n",{"type":40,"tag":765,"props":2989,"children":2990},{"class":767,"line":2787},[2991,2996,3000],{"type":40,"tag":765,"props":2992,"children":2993},{"style":2875},[2994],{"type":46,"value":2995},"  displayName",{"type":40,"tag":765,"props":2997,"children":2998},{"style":1288},[2999],{"type":46,"value":752},{"type":40,"tag":765,"props":3001,"children":3002},{"style":1349},[3003],{"type":46,"value":3004}," Run tests\n",{"type":40,"tag":765,"props":3006,"children":3007},{"class":767,"line":2795},[3008,3012],{"type":40,"tag":765,"props":3009,"children":3010},{"style":2875},[3011],{"type":46,"value":2895},{"type":40,"tag":765,"props":3013,"children":3014},{"style":1288},[3015],{"type":46,"value":2900},{"type":40,"tag":765,"props":3017,"children":3018},{"class":767,"line":2804},[3019,3024,3028,3032,3036],{"type":40,"tag":765,"props":3020,"children":3021},{"style":2875},[3022],{"type":46,"value":3023},"    command",{"type":40,"tag":765,"props":3025,"children":3026},{"style":1288},[3027],{"type":46,"value":752},{"type":40,"tag":765,"props":3029,"children":3030},{"style":1288},[3031],{"type":46,"value":2917},{"type":40,"tag":765,"props":3033,"children":3034},{"style":1349},[3035],{"type":46,"value":1264},{"type":40,"tag":765,"props":3037,"children":3038},{"style":1288},[3039],{"type":46,"value":2927},{"type":40,"tag":765,"props":3041,"children":3043},{"class":767,"line":3042},12,[3044,3049,3053,3057,3062],{"type":40,"tag":765,"props":3045,"children":3046},{"style":2875},[3047],{"type":46,"value":3048},"    arguments",{"type":40,"tag":765,"props":3050,"children":3051},{"style":1288},[3052],{"type":46,"value":752},{"type":40,"tag":765,"props":3054,"children":3055},{"style":1288},[3056],{"type":46,"value":2917},{"type":40,"tag":765,"props":3058,"children":3059},{"style":1349},[3060],{"type":46,"value":3061},"--no-build --configuration Release",{"type":40,"tag":765,"props":3063,"children":3064},{"style":1288},[3065],{"type":46,"value":2927},{"type":40,"tag":49,"props":3067,"children":3068},{},[3069,3074,3076,3081],{"type":40,"tag":71,"props":3070,"children":3071},{},[3072],{"type":46,"value":3073},"If already using DotNetCoreCLI@2",{"type":46,"value":3075},": Update arguments per Step 5 translations. Remember the ",{"type":40,"tag":55,"props":3077,"children":3079},{"className":3078},[],[3080],{"type":46,"value":1549},{"type":46,"value":3082}," separator on .NET 9 and earlier:",{"type":40,"tag":754,"props":3084,"children":3086},{"className":2850,"code":3085,"language":2852,"meta":759,"style":759},"- task: DotNetCoreCLI@2\n  displayName: Run tests\n  inputs:\n    command: 'test'\n    arguments: '--no-build -- --report-trx --results-directory $(Agent.TempDirectory)'\n",[3087],{"type":40,"tag":55,"props":3088,"children":3089},{"__ignoreMap":759},[3090,3109,3124,3135,3158],{"type":40,"tag":765,"props":3091,"children":3092},{"class":767,"line":768},[3093,3097,3101,3105],{"type":40,"tag":765,"props":3094,"children":3095},{"style":1288},[3096],{"type":46,"value":2872},{"type":40,"tag":765,"props":3098,"children":3099},{"style":2875},[3100],{"type":46,"value":2878},{"type":40,"tag":765,"props":3102,"children":3103},{"style":1288},[3104],{"type":46,"value":752},{"type":40,"tag":765,"props":3106,"children":3107},{"style":1349},[3108],{"type":46,"value":2987},{"type":40,"tag":765,"props":3110,"children":3111},{"class":767,"line":777},[3112,3116,3120],{"type":40,"tag":765,"props":3113,"children":3114},{"style":2875},[3115],{"type":46,"value":2995},{"type":40,"tag":765,"props":3117,"children":3118},{"style":1288},[3119],{"type":46,"value":752},{"type":40,"tag":765,"props":3121,"children":3122},{"style":1349},[3123],{"type":46,"value":3004},{"type":40,"tag":765,"props":3125,"children":3126},{"class":767,"line":786},[3127,3131],{"type":40,"tag":765,"props":3128,"children":3129},{"style":2875},[3130],{"type":46,"value":2895},{"type":40,"tag":765,"props":3132,"children":3133},{"style":1288},[3134],{"type":46,"value":2900},{"type":40,"tag":765,"props":3136,"children":3137},{"class":767,"line":877},[3138,3142,3146,3150,3154],{"type":40,"tag":765,"props":3139,"children":3140},{"style":2875},[3141],{"type":46,"value":3023},{"type":40,"tag":765,"props":3143,"children":3144},{"style":1288},[3145],{"type":46,"value":752},{"type":40,"tag":765,"props":3147,"children":3148},{"style":1288},[3149],{"type":46,"value":2917},{"type":40,"tag":765,"props":3151,"children":3152},{"style":1349},[3153],{"type":46,"value":1264},{"type":40,"tag":765,"props":3155,"children":3156},{"style":1288},[3157],{"type":46,"value":2927},{"type":40,"tag":765,"props":3159,"children":3160},{"class":767,"line":1368},[3161,3165,3169,3173,3178],{"type":40,"tag":765,"props":3162,"children":3163},{"style":2875},[3164],{"type":46,"value":3048},{"type":40,"tag":765,"props":3166,"children":3167},{"style":1288},[3168],{"type":46,"value":752},{"type":40,"tag":765,"props":3170,"children":3171},{"style":1288},[3172],{"type":46,"value":2917},{"type":40,"tag":765,"props":3174,"children":3175},{"style":1349},[3176],{"type":46,"value":3177},"--no-build -- --report-trx --results-directory $(Agent.TempDirectory)",{"type":40,"tag":765,"props":3179,"children":3180},{"style":1288},[3181],{"type":46,"value":2927},{"type":40,"tag":832,"props":3183,"children":3185},{"id":3184},"github-actions",[3186],{"type":46,"value":3187},"GitHub Actions",{"type":40,"tag":49,"props":3189,"children":3190},{},[3191,3192,3197],{"type":46,"value":967},{"type":40,"tag":55,"props":3193,"children":3195},{"className":3194},[],[3196],{"type":46,"value":60},{"type":46,"value":3198}," invocations in workflow files with the same argument translations from Step 5.",{"type":40,"tag":832,"props":3200,"children":3202},{"id":3201},"replace-vstestconsoleexe",[3203],{"type":46,"value":3204},"Replace vstest.console.exe",{"type":40,"tag":49,"props":3206,"children":3207},{},[3208,3210,3215,3217,3222],{"type":46,"value":3209},"If any script invokes ",{"type":40,"tag":55,"props":3211,"children":3213},{"className":3212},[],[3214],{"type":46,"value":131},{"type":46,"value":3216}," directly, replace it with ",{"type":40,"tag":55,"props":3218,"children":3220},{"className":3219},[],[3221],{"type":46,"value":60},{"type":46,"value":3223},". The test projects are now executables and can also be run directly.",{"type":40,"tag":377,"props":3225,"children":3227},{"id":3226},"step-8-handle-behavioral-differences",[3228],{"type":46,"value":3229},"Step 8: Handle behavioral differences",{"type":40,"tag":832,"props":3231,"children":3233},{"id":3232},"zero-tests-exit-code",[3234],{"type":46,"value":3235},"Zero tests exit code",{"type":40,"tag":49,"props":3237,"children":3238},{},[3239,3241,3246],{"type":46,"value":3240},"VSTest silently succeeds when zero tests are discovered. MTP fails with ",{"type":40,"tag":71,"props":3242,"children":3243},{},[3244],{"type":46,"value":3245},"exit code 8",{"type":46,"value":3247},". Options:",{"type":40,"tag":86,"props":3249,"children":3250},{},[3251,3264],{"type":40,"tag":90,"props":3252,"children":3253},{},[3254,3256,3262],{"type":46,"value":3255},"Pass ",{"type":40,"tag":55,"props":3257,"children":3259},{"className":3258},[],[3260],{"type":46,"value":3261},"--ignore-exit-code 8",{"type":46,"value":3263}," when running tests",{"type":40,"tag":90,"props":3265,"children":3266},{},[3267,3269,3274],{"type":46,"value":3268},"Add to ",{"type":40,"tag":55,"props":3270,"children":3272},{"className":3271},[],[3273],{"type":46,"value":526},{"type":46,"value":752},{"type":40,"tag":754,"props":3276,"children":3278},{"className":756,"code":3277,"language":758,"meta":759,"style":759},"\u003CPropertyGroup>\n  \u003CTestingPlatformCommandLineArguments>$(TestingPlatformCommandLineArguments) --ignore-exit-code 8\u003C\u002FTestingPlatformCommandLineArguments>\n\u003C\u002FPropertyGroup>\n",[3279],{"type":40,"tag":55,"props":3280,"children":3281},{"__ignoreMap":759},[3282,3289,3297],{"type":40,"tag":765,"props":3283,"children":3284},{"class":767,"line":768},[3285],{"type":40,"tag":765,"props":3286,"children":3287},{},[3288],{"type":46,"value":859},{"type":40,"tag":765,"props":3290,"children":3291},{"class":767,"line":777},[3292],{"type":40,"tag":765,"props":3293,"children":3294},{},[3295],{"type":46,"value":3296},"  \u003CTestingPlatformCommandLineArguments>$(TestingPlatformCommandLineArguments) --ignore-exit-code 8\u003C\u002FTestingPlatformCommandLineArguments>\n",{"type":40,"tag":765,"props":3298,"children":3299},{"class":767,"line":786},[3300],{"type":40,"tag":765,"props":3301,"children":3302},{},[3303],{"type":46,"value":792},{"type":40,"tag":86,"props":3305,"children":3306},{},[3307],{"type":40,"tag":90,"props":3308,"children":3309},{},[3310,3312],{"type":46,"value":3311},"Use environment variable: ",{"type":40,"tag":55,"props":3313,"children":3315},{"className":3314},[],[3316],{"type":46,"value":3317},"TESTINGPLATFORM_EXITCODE_IGNORE=8",{"type":40,"tag":377,"props":3319,"children":3321},{"id":3320},"step-9-remove-vstest-only-packages-optional",[3322],{"type":46,"value":3323},"Step 9: Remove VSTest-only packages (optional)",{"type":40,"tag":49,"props":3325,"children":3326},{},[3327],{"type":46,"value":3328},"Once migration is complete and verified, remove packages that are only needed for VSTest:",{"type":40,"tag":86,"props":3330,"children":3331},{},[3332,3343,3359],{"type":40,"tag":90,"props":3333,"children":3334},{},[3335,3341],{"type":40,"tag":55,"props":3336,"children":3338},{"className":3337},[],[3339],{"type":46,"value":3340},"Microsoft.NET.Test.Sdk",{"type":46,"value":3342}," -- not needed for MTP (MSTest.Sdk v4 already omits it by default)",{"type":40,"tag":90,"props":3344,"children":3345},{},[3346,3351,3353,3358],{"type":40,"tag":55,"props":3347,"children":3349},{"className":3348},[],[3350],{"type":46,"value":496},{"type":46,"value":3352}," -- only needed for VSTest discovery of xUnit.net (not needed when using ",{"type":40,"tag":55,"props":3354,"children":3356},{"className":3355},[],[3357],{"type":46,"value":668},{"type":46,"value":2064},{"type":40,"tag":90,"props":3360,"children":3361},{},[3362,3367],{"type":40,"tag":55,"props":3363,"children":3365},{"className":3364},[],[3366],{"type":46,"value":473},{"type":46,"value":3368}," VSTest-only features -- the adapter is still needed but only for the MTP runner",{"type":40,"tag":64,"props":3370,"children":3371},{},[3372],{"type":40,"tag":49,"props":3373,"children":3374},{},[3375,3379],{"type":40,"tag":71,"props":3376,"children":3377},{},[3378],{"type":46,"value":629},{"type":46,"value":3380},": If you need to maintain VSTest compatibility during a transition period, keep these packages.",{"type":40,"tag":377,"props":3382,"children":3384},{"id":3383},"step-10-verify",[3385],{"type":46,"value":3386},"Step 10: Verify",{"type":40,"tag":384,"props":3388,"children":3389},{},[3390,3402,3413,3418,3431,3436],{"type":40,"tag":90,"props":3391,"children":3392},{},[3393,3394,3400],{"type":46,"value":591},{"type":40,"tag":55,"props":3395,"children":3397},{"className":3396},[],[3398],{"type":46,"value":3399},"dotnet build",{"type":46,"value":3401}," -- confirm zero errors",{"type":40,"tag":90,"props":3403,"children":3404},{},[3405,3406,3411],{"type":46,"value":591},{"type":40,"tag":55,"props":3407,"children":3409},{"className":3408},[],[3410],{"type":46,"value":60},{"type":46,"value":3412}," -- confirm all tests pass",{"type":40,"tag":90,"props":3414,"children":3415},{},[3416],{"type":46,"value":3417},"Compare test pass\u002Ffail counts to the pre-migration baseline",{"type":40,"tag":90,"props":3419,"children":3420},{},[3421,3423,3429],{"type":46,"value":3422},"Run the test executable directly (e.g., ",{"type":40,"tag":55,"props":3424,"children":3426},{"className":3425},[],[3427],{"type":46,"value":3428},".\u002Fbin\u002FDebug\u002Fnet8.0\u002FMyTests.exe",{"type":46,"value":3430},") -- confirm it works",{"type":40,"tag":90,"props":3432,"children":3433},{},[3434],{"type":46,"value":3435},"Verify CI pipeline produces the expected test result artifacts (TRX files, code coverage, crash dumps)",{"type":40,"tag":90,"props":3437,"children":3438},{},[3439],{"type":46,"value":3440},"Test that Test Explorer in Visual Studio (17.14+) or VS Code discovers and runs tests",{"type":40,"tag":79,"props":3442,"children":3444},{"id":3443},"validation",[3445],{"type":46,"value":3446},"Validation",{"type":40,"tag":86,"props":3448,"children":3451},{"className":3449},[3450],"contains-task-list",[3452,3464,3479,3494,3509,3518,3527,3543],{"type":40,"tag":90,"props":3453,"children":3456},{"className":3454},[3455],"task-list-item",[3457,3462],{"type":40,"tag":3458,"props":3459,"children":3461},"input",{"disabled":2549,"type":3460},"checkbox",[],{"type":46,"value":3463}," All test projects use MTP runner (no VSTest-only configuration remains)",{"type":40,"tag":90,"props":3465,"children":3467},{"className":3466},[3455],[3468,3471,3472,3477],{"type":40,"tag":3458,"props":3469,"children":3470},{"disabled":2549,"type":3460},[],{"type":46,"value":952},{"type":40,"tag":55,"props":3473,"children":3475},{"className":3474},[],[3476],{"type":46,"value":3399},{"type":46,"value":3478}," completes with zero errors",{"type":40,"tag":90,"props":3480,"children":3482},{"className":3481},[3455],[3483,3486,3487,3492],{"type":40,"tag":3458,"props":3484,"children":3485},{"disabled":2549,"type":3460},[],{"type":46,"value":952},{"type":40,"tag":55,"props":3488,"children":3490},{"className":3489},[],[3491],{"type":46,"value":60},{"type":46,"value":3493}," passes all tests and test counts match pre-migration baseline",{"type":40,"tag":90,"props":3495,"children":3497},{"className":3496},[3455],[3498,3501,3503,3508],{"type":40,"tag":3458,"props":3499,"children":3500},{"disabled":2549,"type":3460},[],{"type":46,"value":3502}," Test executable runs directly (e.g., ",{"type":40,"tag":55,"props":3504,"children":3506},{"className":3505},[],[3507],{"type":46,"value":3428},{"type":46,"value":2064},{"type":40,"tag":90,"props":3510,"children":3512},{"className":3511},[3455],[3513,3516],{"type":40,"tag":3458,"props":3514,"children":3515},{"disabled":2549,"type":3460},[],{"type":46,"value":3517}," CI pipeline produces expected test result artifacts (TRX files, code coverage, crash dumps)",{"type":40,"tag":90,"props":3519,"children":3521},{"className":3520},[3455],[3522,3525],{"type":40,"tag":3458,"props":3523,"children":3524},{"disabled":2549,"type":3460},[],{"type":46,"value":3526}," Test Explorer in Visual Studio or VS Code discovers and runs tests",{"type":40,"tag":90,"props":3528,"children":3530},{"className":3529},[3455],[3531,3534,3536,3541],{"type":40,"tag":3458,"props":3532,"children":3533},{"disabled":2549,"type":3460},[],{"type":46,"value":3535}," No ",{"type":40,"tag":55,"props":3537,"children":3539},{"className":3538},[],[3540],{"type":46,"value":131},{"type":46,"value":3542}," invocations remain in CI scripts",{"type":40,"tag":90,"props":3544,"children":3546},{"className":3545},[3455],[3547,3550,3551,3556],{"type":40,"tag":3458,"props":3548,"children":3549},{"disabled":2549,"type":3460},[],{"type":46,"value":952},{"type":40,"tag":55,"props":3552,"children":3554},{"className":3553},[],[3555],{"type":46,"value":637},{"type":46,"value":3557}," is set for all non-MSTest.Sdk test projects",{"type":40,"tag":79,"props":3559,"children":3561},{"id":3560},"common-pitfalls",[3562],{"type":46,"value":3563},"Common Pitfalls",{"type":40,"tag":213,"props":3565,"children":3566},{},[3567,3583],{"type":40,"tag":217,"props":3568,"children":3569},{},[3570],{"type":40,"tag":221,"props":3571,"children":3572},{},[3573,3578],{"type":40,"tag":225,"props":3574,"children":3575},{},[3576],{"type":46,"value":3577},"Pitfall",{"type":40,"tag":225,"props":3579,"children":3580},{},[3581],{"type":46,"value":3582},"Solution",{"type":40,"tag":241,"props":3584,"children":3585},{},[3586,3599,3630,3650,3675,3693],{"type":40,"tag":221,"props":3587,"children":3588},{},[3589,3594],{"type":40,"tag":248,"props":3590,"children":3591},{},[3592],{"type":46,"value":3593},"Mixing VSTest and MTP projects in the same solution",{"type":40,"tag":248,"props":3595,"children":3596},{},[3597],{"type":46,"value":3598},"Migrate all test projects together -- mixed mode is unsupported",{"type":40,"tag":221,"props":3600,"children":3601},{},[3602,3612],{"type":40,"tag":248,"props":3603,"children":3604},{},[3605,3610],{"type":40,"tag":55,"props":3606,"children":3608},{"className":3607},[],[3609],{"type":46,"value":60},{"type":46,"value":3611}," arguments ignored on .NET 9 and earlier",{"type":40,"tag":248,"props":3613,"children":3614},{},[3615,3617,3622,3624],{"type":46,"value":3616},"Use ",{"type":40,"tag":55,"props":3618,"children":3620},{"className":3619},[],[3621],{"type":46,"value":1549},{"type":46,"value":3623}," to separate build args from MTP args: ",{"type":40,"tag":55,"props":3625,"children":3627},{"className":3626},[],[3628],{"type":46,"value":3629},"dotnet test -- --report-trx",{"type":40,"tag":221,"props":3631,"children":3632},{},[3633,3638],{"type":40,"tag":248,"props":3634,"children":3635},{},[3636],{"type":46,"value":3637},"Exit code 8 on CI without failures",{"type":40,"tag":248,"props":3639,"children":3640},{},[3641,3643,3648],{"type":46,"value":3642},"MTP fails when zero tests run; use ",{"type":40,"tag":55,"props":3644,"children":3646},{"className":3645},[],[3647],{"type":46,"value":3261},{"type":46,"value":3649}," or fix test discovery",{"type":40,"tag":221,"props":3651,"children":3652},{},[3653,3658],{"type":40,"tag":248,"props":3654,"children":3655},{},[3656],{"type":46,"value":3657},"MSTest.Sdk v4 + vstest.console no longer works",{"type":40,"tag":248,"props":3659,"children":3660},{},[3661,3663,3668,3670],{"type":46,"value":3662},"MSTest.Sdk v4 no longer adds ",{"type":40,"tag":55,"props":3664,"children":3666},{"className":3665},[],[3667],{"type":46,"value":3340},{"type":46,"value":3669}," -- add it explicitly or switch to ",{"type":40,"tag":55,"props":3671,"children":3673},{"className":3672},[],[3674],{"type":46,"value":60},{"type":40,"tag":221,"props":3676,"children":3677},{},[3678,3688],{"type":40,"tag":248,"props":3679,"children":3680},{},[3681,3683],{"type":46,"value":3682},"Missing ",{"type":40,"tag":55,"props":3684,"children":3686},{"className":3685},[],[3687],{"type":46,"value":637},{"type":40,"tag":248,"props":3689,"children":3690},{},[3691],{"type":46,"value":3692},"Required for all setups except MSTest.Sdk (which sets it automatically)",{"type":40,"tag":221,"props":3694,"children":3695},{},[3696,3713],{"type":40,"tag":248,"props":3697,"children":3698},{},[3699,3701,3706,3708],{"type":46,"value":3700},"Using ",{"type":40,"tag":55,"props":3702,"children":3704},{"className":3703},[],[3705],{"type":46,"value":719},{"type":46,"value":3707}," in ",{"type":40,"tag":55,"props":3709,"children":3711},{"className":3710},[],[3712],{"type":46,"value":526},{"type":40,"tag":248,"props":3714,"children":3715},{},[3716,3721,3723,3728,3730,3736],{"type":40,"tag":55,"props":3717,"children":3719},{"className":3718},[],[3720],{"type":46,"value":727},{"type":46,"value":3722}," is not yet defined when ",{"type":40,"tag":55,"props":3724,"children":3726},{"className":3725},[],[3727],{"type":46,"value":526},{"type":46,"value":3729}," is evaluated -- use ",{"type":40,"tag":55,"props":3731,"children":3733},{"className":3732},[],[3734],{"type":46,"value":3735},"$(MSBuildProjectName.EndsWith('.Tests'))",{"type":46,"value":3737}," (or a similar name-based check) instead",{"type":40,"tag":79,"props":3739,"children":3741},{"id":3740},"next-steps",[3742],{"type":46,"value":3743},"Next Steps",{"type":40,"tag":86,"props":3745,"children":3746},{},[3747,3759],{"type":40,"tag":90,"props":3748,"children":3749},{},[3750,3751,3757],{"type":46,"value":3616},{"type":40,"tag":55,"props":3752,"children":3754},{"className":3753},[],[3755],{"type":46,"value":3756},"run-tests",{"type":46,"value":3758}," for running tests on the new MTP platform",{"type":40,"tag":90,"props":3760,"children":3761},{},[3762,3763,3769],{"type":46,"value":3616},{"type":40,"tag":55,"props":3764,"children":3766},{"className":3765},[],[3767],{"type":46,"value":3768},"mtp-hot-reload",{"type":46,"value":3770}," for iterative test fixing with hot reload on MTP",{"type":40,"tag":79,"props":3772,"children":3774},{"id":3773},"more-info",[3775],{"type":46,"value":3776},"More Info",{"type":40,"tag":86,"props":3778,"children":3779},{},[3780,3790,3800,3810,3820,3830],{"type":40,"tag":90,"props":3781,"children":3782},{},[3783],{"type":40,"tag":2483,"props":3784,"children":3787},{"href":3785,"rel":3786},"https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftesting\u002Ftest-platforms-overview",[2487],[3788],{"type":46,"value":3789},"Test platforms overview",{"type":40,"tag":90,"props":3791,"children":3792},{},[3793],{"type":40,"tag":2483,"props":3794,"children":3797},{"href":3795,"rel":3796},"https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftesting\u002Fmigrating-vstest-microsoft-testing-platform",[2487],[3798],{"type":46,"value":3799},"Migrate from VSTest to Microsoft.Testing.Platform",{"type":40,"tag":90,"props":3801,"children":3802},{},[3803],{"type":40,"tag":2483,"props":3804,"children":3807},{"href":3805,"rel":3806},"https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftesting\u002Fmicrosoft-testing-platform-intro",[2487],[3808],{"type":46,"value":3809},"Microsoft.Testing.Platform overview",{"type":40,"tag":90,"props":3811,"children":3812},{},[3813],{"type":40,"tag":2483,"props":3814,"children":3817},{"href":3815,"rel":3816},"https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftesting\u002Funit-testing-with-dotnet-test",[2487],[3818],{"type":46,"value":3819},"Testing with dotnet test",{"type":40,"tag":90,"props":3821,"children":3822},{},[3823],{"type":40,"tag":2483,"props":3824,"children":3827},{"href":3825,"rel":3826},"https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftesting\u002Fmicrosoft-testing-platform-cli-options",[2487],[3828],{"type":46,"value":3829},"Microsoft.Testing.Platform CLI options",{"type":40,"tag":90,"props":3831,"children":3832},{},[3833],{"type":40,"tag":2483,"props":3834,"children":3837},{"href":3835,"rel":3836},"https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcore\u002Ftesting\u002Funit-testing-platform-extensions",[2487],[3838],{"type":46,"value":3839},"Microsoft.Testing.Platform extensions",{"type":40,"tag":3841,"props":3842,"children":3843},"style",{},[3844],{"type":46,"value":3845},"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":3847,"total":4010},[3848,3864,3879,3894,3912,3924,3944,3954,3966,3976,3989,4000],{"slug":3849,"name":3849,"fn":3850,"description":3851,"org":3852,"tags":3853,"stars":3861,"repoUrl":3862,"updatedAt":3863},"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},[3854,3855,3858],{"name":13,"slug":14,"type":15},{"name":3856,"slug":3857,"type":15},"Engineering","engineering",{"name":3859,"slug":3860,"type":15},"Performance","performance",5535,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmsbuild","2026-07-22T05:37:33.965588",{"slug":3865,"name":3865,"fn":3866,"description":3867,"org":3868,"tags":3869,"stars":22,"repoUrl":23,"updatedAt":3878},"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},[3870,3871,3874,3877],{"name":13,"slug":14,"type":15},{"name":3872,"slug":3873,"type":15},"Code Analysis","code-analysis",{"name":3875,"slug":3876,"type":15},"Debugging","debugging",{"name":3859,"slug":3860,"type":15},"2026-07-12T08:23:25.400375",{"slug":3880,"name":3880,"fn":3881,"description":3882,"org":3883,"tags":3884,"stars":22,"repoUrl":23,"updatedAt":3893},"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},[3885,3886,3889,3890],{"name":13,"slug":14,"type":15},{"name":3887,"slug":3888,"type":15},"Android","android",{"name":3875,"slug":3876,"type":15},{"name":3891,"slug":3892,"type":15},"Microsoft","microsoft","2026-07-12T08:23:21.595572",{"slug":3895,"name":3895,"fn":3896,"description":3897,"org":3898,"tags":3899,"stars":22,"repoUrl":23,"updatedAt":3911},"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},[3900,3901,3902,3905,3908],{"name":13,"slug":14,"type":15},{"name":3875,"slug":3876,"type":15},{"name":3903,"slug":3904,"type":15},"iOS","ios",{"name":3906,"slug":3907,"type":15},"macOS","macos",{"name":3909,"slug":3910,"type":15},"Observability","observability","2026-07-12T08:23:20.369986",{"slug":3913,"name":3913,"fn":3914,"description":3915,"org":3916,"tags":3917,"stars":22,"repoUrl":23,"updatedAt":3923},"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},[3918,3919,3922],{"name":3872,"slug":3873,"type":15},{"name":3920,"slug":3921,"type":15},"QA","qa",{"name":20,"slug":21,"type":15},"2026-07-12T08:23:51.277743",{"slug":3925,"name":3925,"fn":3926,"description":3927,"org":3928,"tags":3929,"stars":22,"repoUrl":23,"updatedAt":3943},"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},[3930,3931,3934,3937,3940],{"name":13,"slug":14,"type":15},{"name":3932,"slug":3933,"type":15},"Blazor","blazor",{"name":3935,"slug":3936,"type":15},"C#","csharp",{"name":3938,"slug":3939,"type":15},"UI Components","ui-components",{"name":3941,"slug":3942,"type":15},"Web Development","web-development","2026-07-15T06:03:29.216359",{"slug":3945,"name":3945,"fn":3946,"description":3947,"org":3948,"tags":3949,"stars":22,"repoUrl":23,"updatedAt":3953},"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},[3950,3951,3952],{"name":3872,"slug":3873,"type":15},{"name":3875,"slug":3876,"type":15},{"name":3891,"slug":3892,"type":15},"2026-07-12T08:21:34.637923",{"slug":3955,"name":3955,"fn":3956,"description":3957,"org":3958,"tags":3959,"stars":22,"repoUrl":23,"updatedAt":3965},"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},[3960,3963,3964],{"name":3961,"slug":3962,"type":15},"Build","build",{"name":3875,"slug":3876,"type":15},{"name":3856,"slug":3857,"type":15},"2026-07-19T05:38:19.340791",{"slug":3967,"name":3967,"fn":3968,"description":3969,"org":3970,"tags":3971,"stars":22,"repoUrl":23,"updatedAt":3975},"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},[3972,3973,3974],{"name":13,"slug":14,"type":15},{"name":3856,"slug":3857,"type":15},{"name":3859,"slug":3860,"type":15},"2026-07-19T05:38:18.364937",{"slug":3977,"name":3977,"fn":3978,"description":3979,"org":3980,"tags":3981,"stars":22,"repoUrl":23,"updatedAt":3988},"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},[3982,3983,3986,3987],{"name":3856,"slug":3857,"type":15},{"name":3984,"slug":3985,"type":15},"Monitoring","monitoring",{"name":3859,"slug":3860,"type":15},{"name":20,"slug":21,"type":15},"2026-07-12T08:21:35.865649",{"slug":3990,"name":3990,"fn":3991,"description":3992,"org":3993,"tags":3994,"stars":22,"repoUrl":23,"updatedAt":3999},"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},[3995,3996,3997,3998],{"name":13,"slug":14,"type":15},{"name":3875,"slug":3876,"type":15},{"name":3856,"slug":3857,"type":15},{"name":3859,"slug":3860,"type":15},"2026-07-12T08:21:40.961722",{"slug":4001,"name":4001,"fn":4002,"description":4003,"org":4004,"tags":4005,"stars":22,"repoUrl":23,"updatedAt":4009},"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},[4006,4007,4008],{"name":3875,"slug":3876,"type":15},{"name":3856,"slug":3857,"type":15},{"name":3920,"slug":3921,"type":15},"2026-07-19T05:38:14.336279",144,{"items":4012,"total":4061},[4013,4020,4027,4035,4041,4049,4055],{"slug":3865,"name":3865,"fn":3866,"description":3867,"org":4014,"tags":4015,"stars":22,"repoUrl":23,"updatedAt":3878},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4016,4017,4018,4019],{"name":13,"slug":14,"type":15},{"name":3872,"slug":3873,"type":15},{"name":3875,"slug":3876,"type":15},{"name":3859,"slug":3860,"type":15},{"slug":3880,"name":3880,"fn":3881,"description":3882,"org":4021,"tags":4022,"stars":22,"repoUrl":23,"updatedAt":3893},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4023,4024,4025,4026],{"name":13,"slug":14,"type":15},{"name":3887,"slug":3888,"type":15},{"name":3875,"slug":3876,"type":15},{"name":3891,"slug":3892,"type":15},{"slug":3895,"name":3895,"fn":3896,"description":3897,"org":4028,"tags":4029,"stars":22,"repoUrl":23,"updatedAt":3911},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4030,4031,4032,4033,4034],{"name":13,"slug":14,"type":15},{"name":3875,"slug":3876,"type":15},{"name":3903,"slug":3904,"type":15},{"name":3906,"slug":3907,"type":15},{"name":3909,"slug":3910,"type":15},{"slug":3913,"name":3913,"fn":3914,"description":3915,"org":4036,"tags":4037,"stars":22,"repoUrl":23,"updatedAt":3923},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4038,4039,4040],{"name":3872,"slug":3873,"type":15},{"name":3920,"slug":3921,"type":15},{"name":20,"slug":21,"type":15},{"slug":3925,"name":3925,"fn":3926,"description":3927,"org":4042,"tags":4043,"stars":22,"repoUrl":23,"updatedAt":3943},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4044,4045,4046,4047,4048],{"name":13,"slug":14,"type":15},{"name":3932,"slug":3933,"type":15},{"name":3935,"slug":3936,"type":15},{"name":3938,"slug":3939,"type":15},{"name":3941,"slug":3942,"type":15},{"slug":3945,"name":3945,"fn":3946,"description":3947,"org":4050,"tags":4051,"stars":22,"repoUrl":23,"updatedAt":3953},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4052,4053,4054],{"name":3872,"slug":3873,"type":15},{"name":3875,"slug":3876,"type":15},{"name":3891,"slug":3892,"type":15},{"slug":3955,"name":3955,"fn":3956,"description":3957,"org":4056,"tags":4057,"stars":22,"repoUrl":23,"updatedAt":3965},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4058,4059,4060],{"name":3961,"slug":3962,"type":15},{"name":3875,"slug":3876,"type":15},{"name":3856,"slug":3857,"type":15},96]