[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MX7VZT3HETX62JS2ERRBS":3,"skill-same:01M75MX7VZT3HETX62JS2ERRBS":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M75MX7VZT3HETX62JS2ERRBS","migrate-xunit-to-xunit-v3",null,"Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package\u002FCPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact\u002FTheory\u002FBeforeAfterTest attributes, Xunit.SkippableFact, xunit.abstractions\u002Fextensibility consolidation, and Xunit.Combinatorial\u002FStaFact compatibility. Do not use for framework conversion or a runner-only migration. For xUnit v3 MTP filter syntax, also use migrate-vstest-to-mtp.","stanfish06\u002Fskillquarium","stanfish06","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93099613?v=4","01M75F1CK4ZW109ZK3T26VN52F","Zhiyuan","01M75F1CM53VH6F79DZ8GXKKES",12,"MIT","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmigrate-xunit-to-xunit-v3\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: migrate-xunit-to-xunit-v3\ndescription: >\n  Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks.\n  Use for package\u002FCPM conversion, OutputType=Exe, preserving the VSTest or MTP\n  runner (including projects currently using YTest.MTP.XUnit2), incompatible\n  TFMs, async void tests,\n  string-to-Type attributes, custom Fact\u002FTheory\u002FBeforeAfterTest attributes,\n  Xunit.SkippableFact, xunit.abstractions\u002Fextensibility consolidation, and\n  Xunit.Combinatorial\u002FStaFact compatibility. Do not use for framework\n  conversion or a runner-only migration. For xUnit v3 MTP filter syntax, also\n  use migrate-vstest-to-mtp.\nlicense: MIT\n---\n\n# xunit.v3 Migration\n\nMigrate .NET test projects from xUnit.net v2 to xUnit.net v3. The outcome is a solution where all test projects reference `xunit.v3.*` packages, compiles cleanly, and all tests pass with the same results as before migration.\n\n## When to Use\n\n- Upgrading test projects from `xunit` (v2) packages to `xunit.v3`\n- Resolving compilation errors after updating xunit package references to v3\n\n## When Not to Use\n\n- Migrating between test frameworks (e.g., MSTest or NUnit to xUnit.net) — different effort entirely\n- Migrating from VSTest to Microsoft.Testing.Platform — use `migrate-vstest-to-mtp`\n- The projects already reference `xunit.v3` — migration is done\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Test project or solution | No | Discover `.csproj`, `.sln`, `.slnx`, central props, and source in the current working directory; ask only if none are found or the target is ambiguous |\n\n## Workspace and Completion Contract\n\n- Skill activation is not completion. For migrate\u002Ffix\u002Fupdate requests, inspect\n  the staged files, edit them, and run tests in the same task.\n- The skill base directory contains only guidance. Search the current working\n  directory and open paths exactly as returned.\n- If a tool rejects a searched path, classify the rejection before retrying.\n  Only a positively confirmed reader\u002Fpath-normalization limitation with\n  authorized access permits retrying through another permitted reader\u002Feditor.\n- On a permission, policy, or content-exclusion denial, stop that path and\n  report the blocker. Never bypass the denial through other tools, shell\n  commands, aliases, or agents, or infer or reconstruct the restricted content.\n- If the rejection reason is unclear, treat the path as unavailable, not\n  missing. Continue only independently permitted work and explicitly disclose\n  the incomplete migration.\n- Do not ask the user to provide a path while workspace discovery can find it.\n- Inventory project\u002Fcentral package files and all affected source in one pass.\n  A package-only migration is incomplete when v2-only APIs remain.\n- End with the detected source version and runner, exact package compatibility\n  set, files changed, discovered\u002Fpassed\u002Ffailed\u002Fskipped counts, and any\n  platform-specific result. A build without test discovery is not success.\n- Package validity is empirical: record the configured feed query or resolved\n  package graph and a successful restore. In the final result, say how the\n  selected exact versions were proven available; do not merely name a version\n  and leave a judge or user to infer whether it exists.\n\n## Workflow\n\n> **Commit strategy:** Do not create commits unless the user asks. Keep project\n> configuration and source edits logically separable in the diff, but finish\n> and verify the whole requested migration.\n\n> **Prioritization:** Steps 1-5 are required for every migration. Steps 6-12 are conditional — only apply the ones relevant to the project's code patterns. Skip steps that don't apply.\n\n### Decisions that change the result\n\nRun this preflight before editing:\n\n| Detected state | Required action |\n|---|---|\n| Project references `xunit.v3`, has the required executable\u002Frunner configuration, contains no remaining v2 packages or v2-only API patterns, and its existing test command passes | Stop: migration is already complete. Do not update versions, create props files, or modify source. Report the verified no-op result. If any required v3 adaptation remains, make only that repair instead of treating the package reference alone as completion. |\n| xUnit v2 uses `YTest.MTP.XUnit2` | Preserve MTP: remove that shim, set `UseMicrosoftTestingPlatformRunner=true`, and do not add `xunit.runner.visualstudio` or `IsTestingPlatformApplication=false`. |\n| xUnit v2 does not use the MTP shim | Preserve VSTest: keep\u002Fupdate `xunit.runner.visualstudio` and set `IsTestingPlatformApplication=false`. |\n| A custom type derives from `BeforeAfterTestAttribute` | Preserve that inheritance and its behavior. Add the `IXunitTest` parameter to both overrides and pass it to `base.Before`\u002F`base.After`; do not replace the subclass with a direct interface implementation. |\n| A Type-based collection\u002Forderer attribute points to a custom type | Migrate both the attribute syntax and the referenced type's v3 contract. For a collection factory, implement the required xUnit v3 `IXunitTestCollectionFactory` behavior; compiling the attribute while leaving an empty factory is not a complete migration. |\n| Companion packages are present | Resolve `xunit.v3`, Xunit.Combinatorial, and Xunit.StaFact as one compatible set from configured feeds. If the newest xunit.v3 major has no compatible stable companion on those feeds, select the newest compatible xunit.v3 major and explain the pin. Validate discovery, not just compilation. |\n| `OutputType=Exe` makes a `net*-windows` project fail on a non-Windows host | Add `EnableWindowsTargeting=true` when cross-building is intended, then rerun. Do not dismiss this migration-induced failure as pre-existing. |\n\nResolve package versions from the configured package source. Do not guess a\nversion from the product's \"v3\" name or update unrelated packages. Change only\nfiles that contain a package, property, or source construct required by the\napplicable rule.\n\nAfter editing a Central Package Management project, read back both\n`Directory.Packages.props` and the project file. Confirm that `PackageVersion`\nowns the version, the renamed `PackageReference` is versionless, and\n`OutputType=Exe` is effective.\n\n### Step 1: Identify xUnit.net projects and verify compatibility\n\nSearch for test projects referencing xUnit.net v2 packages:\n\n- `xunit`\n- `xunit.abstractions`\n- `xunit.assert`\n- `xunit.core`\n- `xunit.extensibility.core`\n- `xunit.extensibility.execution`\n- `xunit.runner.visualstudio`\n\nMake sure to check the package references in project files, MSBuild props and targets files, like `Directory.Build.props`, `Directory.Build.targets`, and `Directory.Packages.props`.\n\nVerify target framework compatibility: xUnit.net v3 requires **.NET 8+** or **.NET Framework 4.7.2+**. For test library projects, .NET Standard 2.0 is also supported. If any test projects have non-compatible target frameworks, STOP here — tell the user to upgrade the target framework first. Also verify the project uses SDK-style format.\n\n### Step 2: Update package references\n\n1. Update any `PackageReference` or `PackageVersion` items for the new package names, based on the following mapping:\n\n    - `xunit` → `xunit.v3`\n    - `xunit.abstractions` → Remove entirely\n    - `xunit.assert` → `xunit.v3.assert`\n    - `xunit.core` → `xunit.v3.core`\n    - `xunit.extensibility.core` and `xunit.extensibility.execution` → `xunit.v3.extensibility.core` (if both are referenced in a project consolidate to only a single entry as the two packages are merged)\n\n2. Query the configured package source and pin the latest stable versions that actually exist. Also update `xunit.runner.visualstudio` only for VSTest projects; do not add it to MTP projects.\n\n### Step 3: Set `OutputType` to `Exe`\n\nIn each test project (excluding test library projects), set `OutputType` to `Exe` in the project file:\n\n```xml\n\u003CPropertyGroup>\n  \u003COutputType>Exe\u003C\u002FOutputType>\n\u003C\u002FPropertyGroup>\n```\n\nDepending on the solution in hand, there might be a centralized place where this can be added. For example:\n\n- If all test projects share (or can share) a common `Directory.Build.props`, add the `\u003COutputType>Exe\u003C\u002FOutputType>` property there. Note that the OutputType should not be added to `Directory.Build.targets`.\n- If all test projects share a name pattern (e.g., `*.Tests.csproj`), add a conditional property group in `Directory.Build.props` that applies only to those projects, like `\u003COutputType Condition=\"$(MSBuildProjectName.EndsWith('.Tests'))\">Exe\u003C\u002FOutputType>`. Adjust the condition as needed to target only test projects.\n- Otherwise, add the `\u003COutputType>Exe\u003C\u002FOutputType>` property to each test project file individually.\n\n### Step 4: Configure test platform\n\nPreserve the same test platform that was used with xUnit.net v2. xUnit.net v2 always uses VSTest except if the project used `YTest.MTP.XUnit2`.\n\n- If the project had a reference to `YTest.MTP.XUnit2`:\n  - Remove the reference to `YTest.MTP.XUnit2` completely.\n  - Set `\u003CUseMicrosoftTestingPlatformRunner>true\u003C\u002FUseMicrosoftTestingPlatformRunner>` in an existing shared `Directory.Build.props`, or in the test project when no shared props file exists.\n  - Do not add `xunit.runner.visualstudio`; it is a VSTest runner and weakens platform preservation.\n- If the project did NOT reference `YTest.MTP.XUnit2` (the common case):\n  - Set `\u003CIsTestingPlatformApplication>false\u003C\u002FIsTestingPlatformApplication>` in an existing shared `Directory.Build.props`, or directly in the test project when no shared props file exists. Do not create a repository-wide props file solely for one project. This keeps the project on VSTest.\n\n### Step 5: Remove `Xunit.Abstractions` usings\n\nFind any `using Xunit.Abstractions;` directives in C# files and remove them completely.\n\n### Step 6: Address `async void` breaking change (if applicable)\n\nIn xUnit.net v3, `async void` test methods are no longer supported and will fail to compile. Search for any test methods declared with `async void` and change them to `async Task`. Test methods can be identified via the `[Fact]` or `[Theory]` attributes or other test attributes.\n\nIn the final result, state why the source changed: xUnit.net v3 rejects\n`async void` tests, so each affected method now returns `Task`. Do not report\nonly the mechanical replacement. Also state how the exact package versions were\nresolved from the configured feed.\n\n### Step 7: Address breaking change of attributes (if applicable)\n\nIn xUnit.net v3, some attributes were updated so that they accept a `System.Type` instead of two strings (fully qualified type name and assembly name). These attributes are:\n\n- `CollectionBehaviorAttribute`\n- `TestCaseOrdererAttribute`\n- `TestCollectionOrdererAttribute`\n- `TestFrameworkAttribute`\n\nFor example, `[assembly: CollectionBehavior(\"MyNamespace.MyCollectionFactory\", \"MyAssembly\")]` must be converted to `[assembly: CollectionBehavior(typeof(MyNamespace.MyCollectionFactory))]`.\n\n### Step 8: Inheriting from FactAttribute or TheoryAttribute (if applicable)\n\nIdentify if there are any custom attributes that inherit from `FactAttribute` or `TheoryAttribute`. These custom user-defined attributes must now provide source information. For example, if the attribute looked like this:\n\n```csharp\ninternal sealed class MyFactAttribute : FactAttribute\n{\n    public MyFactAttribute()\n    {\n    }\n}\n```\n\nit must be changed to this:\n\n```csharp\ninternal sealed class MyFactAttribute : FactAttribute\n{\n    public MyFactAttribute(\n        [CallerFilePath] string? sourceFilePath = null,\n        [CallerLineNumber] int sourceLineNumber = -1\n    ) : base(sourceFilePath, sourceLineNumber)\n    {\n    }\n}\n```\n\nBefore reporting completion, read back every affected `FactAttribute`- and\n`TheoryAttribute`-derived constructor. Name each type and confirm that both\ncaller-info parameters and the corresponding `base(sourceFilePath,\nsourceLineNumber)` forwarding are present. A passing test run alone does not\nprove source information was propagated.\n\n### Step 9: Inheriting from BeforeAfterTestAttribute (if applicable)\n\nIdentify if there are any custom attributes that inherit from `BeforeAfterTestAttribute`. These custom user-defined attributes must update their method signatures. Previously, they would have `Before`\u002F`After` overrides that look like this:\n\n```csharp\n    public override void Before(MethodInfo methodUnderTest)\n    {\n        \u002F\u002F Possibly some custom logic here\n        base.Before(methodUnderTest);\n        \u002F\u002F Possibly some custom logic here\n    }\n\n    public override void After(MethodInfo methodUnderTest)\n    {\n        \u002F\u002F Possibly some custom logic here\n        base.After(methodUnderTest);\n        \u002F\u002F Possibly some custom logic here\n    }\n```\n\nit must be changed to this:\n\n```csharp\n    public override void Before(MethodInfo methodUnderTest, IXunitTest test)\n    {\n        \u002F\u002F Possibly some custom logic here\n        base.Before(methodUnderTest, test);\n        \u002F\u002F Possibly some custom logic here\n    }\n\n    public override void After(MethodInfo methodUnderTest, IXunitTest test)\n    {\n        \u002F\u002F Possibly some custom logic here\n        base.After(methodUnderTest, test);\n        \u002F\u002F Possibly some custom logic here\n    }\n```\n\nKeep the `BeforeAfterTestAttribute` base class, retain the override modifiers, and preserve the\nexisting base calls and their ordering relative to custom logic. Implementing\n`IBeforeAfterTestAttribute` directly may compile, but it is not the mechanical v2-to-v3 migration\nand can discard base-class behavior.\n\nBefore reporting completion, read the resulting attribute file and quote the\nactual `Before(MethodInfo, IXunitTest)` and `After(MethodInfo, IXunitTest)`\nsignatures. Explicitly confirm that both `base.Before` and `base.After` receive\nthe same `IXunitTest` argument; a generic claim that the overrides were updated\nis insufficient evidence.\n\n### Step 10: Address new xUnit analyzer warnings (if applicable)\n\nxunit.v3 introduced new analyzer warnings. The most notable is xUnit1051 (use `TestContext.Current.CancellationToken` for methods accepting `CancellationToken`). Address these if present.\n\n### Step 11: Migrate `Xunit.SkippableFact` (if applicable)\n\nIf there are any package references to `Xunit.SkippableFact`, remove all these package references entirely.\n\nThen, follow these steps to eliminate usages of APIs coming from the removed package reference:\n\n- Update any `SkippableFact` attribute to the regular `Fact` attribute.\n- Update any `SkippableTheory` attribute to the regular `Theory` attribute.\n- Change `Skip.If` method calls to `Assert.SkipWhen`.\n- Change `Skip.IfNot` method calls to `Assert.SkipUnless`.\n\nVerify both branches when the fixture makes that practical: the default\ncondition should report the intended skip reason, and the enabled condition\nshould execute and pass. A grep plus a generic passing run does not prove the\nruntime skip semantics were preserved.\n\nLimit this conversion to the existing project\u002Fcentral-package file and the source files containing\nthese APIs. Do not create a new `Directory.Build.props` merely to perform this companion-package\nmigration; any required runner property belongs in the existing test project when no shared props\nfile already exists.\n\n### Step 12: Update companion packages (if applicable)\n\n- Query the configured feeds for a mutually compatible set instead of resolving\n  each package independently. `Xunit.Combinatorial` 1.x moves to 2.x or later,\n  and `Xunit.StaFact` 1.x moves to a line compatible with the selected\n  `xunit.v3` major.\n- Do not infer companion compatibility from the product name or matching major\n  numbers. Use package dependency constraints and the versions available on the\n  configured feeds, then prove the selected set through test discovery.\n- On `net*-windows` projects built from Linux\u002FmacOS after switching to\n  executable output, set `EnableWindowsTargeting=true` if cross-targeting is\n  intended.\n- Run tests and confirm expected platform skips (such as STA tests on Linux)\n  separately from failures.\n\n### Step 13: Build and verify\n\nBuild the solution and fix any remaining compilation errors. Run `dotnet test` to verify all tests pass with the same results as before migration.\n","# xunit.v3 Migration\n\nMigrate .NET test projects from xUnit.net v2 to xUnit.net v3. The outcome is a solution where all test projects reference `xunit.v3.*` packages, compiles cleanly, and all tests pass with the same results as before migration.\n\n## When to Use\n\n- Upgrading test projects from `xunit` (v2) packages to `xunit.v3`\n- Resolving compilation errors after updating xunit package references to v3\n\n## When Not to Use\n\n- Migrating between test frameworks (e.g., MSTest or NUnit to xUnit.net) — different effort entirely\n- Migrating from VSTest to Microsoft.Testing.Platform — use `migrate-vstest-to-mtp`\n- The projects already reference `xunit.v3` — migration is done\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Test project or solution | No | Discover `.csproj`, `.sln`, `.slnx`, central props, and source in the current working directory; ask only if none are found or the target is ambiguous |\n\n## Workspace and Completion Contract\n\n- Skill activation is not completion. For migrate\u002Ffix\u002Fupdate requests, inspect\n  the staged files, edit them, and run tests in the same task.\n- The skill base directory contains only guidance. Search the current working\n  directory and open paths exactly as returned.\n- If a tool rejects a searched path, classify the rejection before retrying.\n  Only a positively confirmed reader\u002Fpath-normalization limitation with\n  authorized access permits retrying through another permitted reader\u002Feditor.\n- On a permission, policy, or content-exclusion denial, stop that path and\n  report the blocker. Never bypass the denial through other tools, shell\n  commands, aliases, or agents, or infer or reconstruct the restricted content.\n- If the rejection reason is unclear, treat the path as unavailable, not\n  missing. Continue only independently permitted work and explicitly disclose\n  the incomplete migration.\n- Do not ask the user to provide a path while workspace discovery can find it.\n- Inventory project\u002Fcentral package files and all affected source in one pass.\n  A package-only migration is incomplete when v2-only APIs remain.\n- End with the detected source version and runner, exact package compatibility\n  set, files changed, discovered\u002Fpassed\u002Ffailed\u002Fskipped counts, and any\n  platform-specific result. A build without test discovery is not success.\n- Package validity is empirical: record the configured feed query or resolved\n  package graph and a successful restore. In the final result, say how the\n  selected exact versions were proven available; do not merely name a version\n  and leave a judge or user to infer whether it exists.\n\n## Workflow\n\n> **Commit strategy:** Do not create commits unless the user asks. Keep project\n> configuration and source edits logically separable in the diff, but finish\n> and verify the whole requested migration.\n\n> **Prioritization:** Steps 1-5 are required for every migration. Steps 6-12 are conditional — only apply the ones relevant to the project's code patterns. Skip steps that don't apply.\n\n### Decisions that change the result\n\nRun this preflight before editing:\n\n| Detected state | Required action |\n|---|---|\n| Project references `xunit.v3`, has the required executable\u002Frunner configuration, contains no remaining v2 packages or v2-only API patterns, and its existing test command passes | Stop: migration is already complete. Do not update versions, create props files, or modify source. Report the verified no-op result. If any required v3 adaptation remains, make only that repair instead of treating the package reference alone as completion. |\n| xUnit v2 uses `YTest.MTP.XUnit2` | Preserve MTP: remove that shim, set `UseMicrosoftTestingPlatformRunner=true`, and do not add `xunit.runner.visualstudio` or `IsTestingPlatformApplication=false`. |\n| xUnit v2 does not use the MTP shim | Preserve VSTest: keep\u002Fupdate `xunit.runner.visualstudio` and set `IsTestingPlatformApplication=false`. |\n| A custom type derives from `BeforeAfterTestAttribute` | Preserve that inheritance and its behavior. Add the `IXunitTest` parameter to both overrides and pass it to `base.Before`\u002F`base.After`; do not replace the subclass with a direct interface implementation. |\n| A Type-based collection\u002Forderer attribute points to a custom type | Migrate both the attribute syntax and the referenced type's v3 contract. For a collection factory, implement the required xUnit v3 `IXunitTestCollectionFactory` behavior; compiling the attribute while leaving an empty factory is not a complete migration. |\n| Companion packages are present | Resolve `xunit.v3`, Xunit.Combinatorial, and Xunit.StaFact as one compatible set from configured feeds. If the newest xunit.v3 major has no compatible stable companion on those feeds, select the newest compatible xunit.v3 major and explain the pin. Validate discovery, not just compilation. |\n| `OutputType=Exe` makes a `net*-windows` project fail on a non-Windows host | Add `EnableWindowsTargeting=true` when cross-building is intended, then rerun. Do not dismiss this migration-induced failure as pre-existing. |\n\nResolve package versions from the configured package source. Do not guess a\nversion from the product's \"v3\" name or update unrelated packages. Change only\nfiles that contain a package, property, or source construct required by the\napplicable rule.\n\nAfter editing a Central Package Management project, read back both\n`Directory.Packages.props` and the project file. Confirm that `PackageVersion`\nowns the version, the renamed `PackageReference` is versionless, and\n`OutputType=Exe` is effective.\n\n### Step 1: Identify xUnit.net projects and verify compatibility\n\nSearch for test projects referencing xUnit.net v2 packages:\n\n- `xunit`\n- `xunit.abstractions`\n- `xunit.assert`\n- `xunit.core`\n- `xunit.extensibility.core`\n- `xunit.extensibility.execution`\n- `xunit.runner.visualstudio`\n\nMake sure to check the package references in project files, MSBuild props and targets files, like `Directory.Build.props`, `Directory.Build.targets`, and `Directory.Packages.props`.\n\nVerify target framework compatibility: xUnit.net v3 requires **.NET 8+** or **.NET Framework 4.7.2+**. For test library projects, .NET Standard 2.0 is also supported. If any test projects have non-compatible target frameworks, STOP here — tell the user to upgrade the target framework first. Also verify the project uses SDK-style format.\n\n### Step 2: Update package references\n\n1. Update any `PackageReference` or `PackageVersion` items for the new package names, based on the following mapping:\n\n    - `xunit` → `xunit.v3`\n    - `xunit.abstractions` → Remove entirely\n    - `xunit.assert` → `xunit.v3.assert`\n    - `xunit.core` → `xunit.v3.core`\n    - `xunit.extensibility.core` and `xunit.extensibility.execution` → `xunit.v3.extensibility.core` (if both are referenced in a project consolidate to only a single entry as the two packages are merged)\n\n2. Query the configured package source and pin the latest stable versions that actually exist. Also update `xunit.runner.visualstudio` only for VSTest projects; do not add it to MTP projects.\n\n### Step 3: Set `OutputType` to `Exe`\n\nIn each test project (excluding test library projects), set `OutputType` to `Exe` in the project file:\n\n```xml\n\u003CPropertyGroup>\n  \u003COutputType>Exe\u003C\u002FOutputType>\n\u003C\u002FPropertyGroup>\n```\n\nDepending on the solution in hand, there might be a centralized place where this can be added. For example:\n\n- If all test projects share (or can share) a common `Directory.Build.props`, add the `\u003COutputType>Exe\u003C\u002FOutputType>` property there. Note that the OutputType should not be added to `Directory.Build.targets`.\n- If all test projects share a name pattern (e.g., `*.Tests.csproj`), add a conditional property group in `Directory.Build.props` that applies only to those projects, like `\u003COutputType Condition=\"$(MSBuildProjectName.EndsWith('.Tests'))\">Exe\u003C\u002FOutputType>`. Adjust the condition as needed to target only test projects.\n- Otherwise, add the `\u003COutputType>Exe\u003C\u002FOutputType>` property to each test project file individually.\n\n### Step 4: Configure test platform\n\nPreserve the same test platform that was used with xUnit.net v2. xUnit.net v2 always uses VSTest except if the project used `YTest.MTP.XUnit2`.\n\n- If the project had a reference to `YTest.MTP.XUnit2`:\n  - Remove the reference to `YTest.MTP.XUnit2` completely.\n  - Set `\u003CUseMicrosoftTestingPlatformRunner>true\u003C\u002FUseMicrosoftTestingPlatformRunner>` in an existing shared `Directory.Build.props`, or in the test project when no shared props file exists.\n  - Do not add `xunit.runner.visualstudio`; it is a VSTest runner and weakens platform preservation.\n- If the project did NOT reference `YTest.MTP.XUnit2` (the common case):\n  - Set `\u003CIsTestingPlatformApplication>false\u003C\u002FIsTestingPlatformApplication>` in an existing shared `Directory.Build.props`, or directly in the test project when no shared props file exists. Do not create a repository-wide props file solely for one project. This keeps the project on VSTest.\n\n### Step 5: Remove `Xunit.Abstractions` usings\n\nFind any `using Xunit.Abstractions;` directives in C# files and remove them completely.\n\n### Step 6: Address `async void` breaking change (if applicable)\n\nIn xUnit.net v3, `async void` test methods are no longer supported and will fail to compile. Search for any test methods declared with `async void` and change them to `async Task`. Test methods can be identified via the `[Fact]` or `[Theory]` attributes or other test attributes.\n\nIn the final result, state why the source changed: xUnit.net v3 rejects\n`async void` tests, so each affected method now returns `Task`. Do not report\nonly the mechanical replacement. Also state how the exact package versions were\nresolved from the configured feed.\n\n### Step 7: Address breaking change of attributes (if applicable)\n\nIn xUnit.net v3, some attributes were updated so that they accept a `System.Type` instead of two strings (fully qualified type name and assembly name). These attributes are:\n\n- `CollectionBehaviorAttribute`\n- `TestCaseOrdererAttribute`\n- `TestCollectionOrdererAttribute`\n- `TestFrameworkAttribute`\n\nFor example, `[assembly: CollectionBehavior(\"MyNamespace.MyCollectionFactory\", \"MyAssembly\")]` must be converted to `[assembly: CollectionBehavior(typeof(MyNamespace.MyCollectionFactory))]`.\n\n### Step 8: Inheriting from FactAttribute or TheoryAttribute (if applicable)\n\nIdentify if there are any custom attributes that inherit from `FactAttribute` or `TheoryAttribute`. These custom user-defined attributes must now provide source information. For example, if the attribute looked like this:\n\n```csharp\ninternal sealed class MyFactAttribute : FactAttribute\n{\n    public MyFactAttribute()\n    {\n    }\n}\n```\n\nit must be changed to this:\n\n```csharp\ninternal sealed class MyFactAttribute : FactAttribute\n{\n    public MyFactAttribute(\n        [CallerFilePath] string? sourceFilePath = null,\n        [CallerLineNumber] int sourceLineNumber = -1\n    ) : base(sourceFilePath, sourceLineNumber)\n    {\n    }\n}\n```\n\nBefore reporting completion, read back every affected `FactAttribute`- and\n`TheoryAttribute`-derived constructor. Name each type and confirm that both\ncaller-info parameters and the corresponding `base(sourceFilePath,\nsourceLineNumber)` forwarding are present. A passing test run alone does not\nprove source information was propagated.\n\n### Step 9: Inheriting from BeforeAfterTestAttribute (if applicable)\n\nIdentify if there are any custom attributes that inherit from `BeforeAfterTestAttribute`. These custom user-defined attributes must update their method signatures. Previously, they would have `Before`\u002F`After` overrides that look like this:\n\n```csharp\n    public override void Before(MethodInfo methodUnderTest)\n    {\n        \u002F\u002F Possibly some custom logic here\n        base.Before(methodUnderTest);\n        \u002F\u002F Possibly some custom logic here\n    }\n\n    public override void After(MethodInfo methodUnderTest)\n    {\n        \u002F\u002F Possibly some custom logic here\n        base.After(methodUnderTest);\n        \u002F\u002F Possibly some custom logic here\n    }\n```\n\nit must be changed to this:\n\n```csharp\n    public override void Before(MethodInfo methodUnderTest, IXunitTest test)\n    {\n        \u002F\u002F Possibly some custom logic here\n        base.Before(methodUnderTest, test);\n        \u002F\u002F Possibly some custom logic here\n    }\n\n    public override void After(MethodInfo methodUnderTest, IXunitTest test)\n    {\n        \u002F\u002F Possibly some custom logic here\n        base.After(methodUnderTest, test);\n        \u002F\u002F Possibly some custom logic here\n    }\n```\n\nKeep the `BeforeAfterTestAttribute` base class, retain the override modifiers, and preserve the\nexisting base calls and their ordering relative to custom logic. Implementing\n`IBeforeAfterTestAttribute` directly may compile, but it is not the mechanical v2-to-v3 migration\nand can discard base-class behavior.\n\nBefore reporting completion, read the resulting attribute file and quote the\nactual `Before(MethodInfo, IXunitTest)` and `After(MethodInfo, IXunitTest)`\nsignatures. Explicitly confirm that both `base.Before` and `base.After` receive\nthe same `IXunitTest` argument; a generic claim that the overrides were updated\nis insufficient evidence.\n\n### Step 10: Address new xUnit analyzer warnings (if applicable)\n\nxunit.v3 introduced new analyzer warnings. The most notable is xUnit1051 (use `TestContext.Current.CancellationToken` for methods accepting `CancellationToken`). Address these if present.\n\n### Step 11: Migrate `Xunit.SkippableFact` (if applicable)\n\nIf there are any package references to `Xunit.SkippableFact`, remove all these package references entirely.\n\nThen, follow these steps to eliminate usages of APIs coming from the removed package reference:\n\n- Update any `SkippableFact` attribute to the regular `Fact` attribute.\n- Update any `SkippableTheory` attribute to the regular `Theory` attribute.\n- Change `Skip.If` method calls to `Assert.SkipWhen`.\n- Change `Skip.IfNot` method calls to `Assert.SkipUnless`.\n\nVerify both branches when the fixture makes that practical: the default\ncondition should report the intended skip reason, and the enabled condition\nshould execute and pass. A grep plus a generic passing run does not prove the\nruntime skip semantics were preserved.\n\nLimit this conversion to the existing project\u002Fcentral-package file and the source files containing\nthese APIs. Do not create a new `Directory.Build.props` merely to perform this companion-package\nmigration; any required runner property belongs in the existing test project when no shared props\nfile already exists.\n\n### Step 12: Update companion packages (if applicable)\n\n- Query the configured feeds for a mutually compatible set instead of resolving\n  each package independently. `Xunit.Combinatorial` 1.x moves to 2.x or later,\n  and `Xunit.StaFact` 1.x moves to a line compatible with the selected\n  `xunit.v3` major.\n- Do not infer companion compatibility from the product name or matching major\n  numbers. Use package dependency constraints and the versions available on the\n  configured feeds, then prove the selected set through test discovery.\n- On `net*-windows` projects built from Linux\u002FmacOS after switching to\n  executable output, set `EnableWindowsTargeting=true` if cross-targeting is\n  intended.\n- Run tests and confirm expected platform skips (such as STA tests on Linux)\n  separately from failures.\n\n### Step 13: Build and verify\n\nBuild the solution and fix any remaining compilation errors. Run `dotnet test` to verify all tests pass with the same results as before migration.\n",{"name":5,"license":15,"description":24},"Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package\u002FCPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact\u002FTheory\u002FBeforeAfterTest attributes, Xunit.SkippableFact, xunit.abstractions\u002Fextensibility consolidation, and Xunit.Combinatorial\u002FStaFact compatibility. Do not use for framework conversion or a runner-only migration. For xUnit v3 MTP filter syntax, also use migrate-vstest-to-mtp.\n","master","49e49abf2f670d429e0b7e2c0349739c3fdd5cbe","skills\u002Fmigrate-xunit-to-xunit-v3",5,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium","https:\u002F\u002Fgithub.com\u002Fstanfish06","https:\u002F\u002Fwww.stanfish.dev\u002F","2026-11-14 21:31:37",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add stanfish06\u002Fskillquarium --skill migrate-xunit-to-xunit-v3",{"tool":39,"command":40},"bunx","bunx skills add stanfish06\u002Fskillquarium --skill migrate-xunit-to-xunit-v3",{"tool":42,"command":43},"pnpm","pnpm dlx skills add stanfish06\u002Fskillquarium --skill migrate-xunit-to-xunit-v3","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmigrate-xunit-to-xunit-v3\u002FSKILL.md",true,[],[48,55,64,71,78,85],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M76ZJTRVA456GD7K8Y3EP82H","zarr-python","Stores and queries chunked N-D scientific arrays with Zarr-Python 3, including codecs, sharding, S3\u002FGCS storage, and NumPy\u002FDask\u002FXarray integration. Use for array layout, bounded I\u002FO, format migration, or scientific metadata preservation.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":60,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M76ZJQZ15Q1HKC5V85NHE325","yeet","Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M76ZJ8ASZ4QYQ70Y6SBA4Z4S","xarray","N-dimensional labeled arrays and datasets in Python. Built on top of NumPy and Dask. It introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, making data analysis in physical sciences more intuitive and less error-prone. Use for working with multi-dimensional scientific data, NetCDF\u002FGRIB\u002FZarr files, climate\u002Fweather\u002Foceanographic datasets, remote sensing, geospatial imaging, large out-of-memory datasets with Dask, and labeled array operations.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fxarray\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M76ZHFBXD6VXPQ02VCEG202B","writing-mstest-tests","Use when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M76ZDFDF4N88RH6HSYGS7GP2","wgs-prs","End-to-end WGS to polygenic risk score pipeline. Takes paired-end FASTQ files (or a pre-existing VCF) through nf-core\u002Fsarek for variant calling, applies VCF QC (normalisation, hard filtering, Ti\u002FTv and Het\u002FHom checks), then computes polygenic risk scores via the PGS Catalog. Fills the FASTQ to VCF gap upstream of the gwas-prs skill.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwgs-prs\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M76ZCC1SC68J42QK4MDC8RCG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[]]