[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-dotnet-migrate-xunit-to-xunit-v3":3,"mdc--mzp8n0-key":34,"related-repo-dotnet-migrate-xunit-to-xunit-v3":1526,"related-org-dotnet-migrate-xunit-to-xunit-v3":1634},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":22,"repoUrl":23,"updatedAt":24,"license":25,"forks":26,"topics":27,"repo":29,"sourceUrl":32,"mdContent":33},"migrate-xunit-to-xunit-v3","migrate xUnit tests to v3","Migrates .NET test projects from xUnit.net v2 to xUnit.net v3. USE FOR: upgrading xunit to xunit.v3. DO NOT USE FOR: migrating between test frameworks (MSTest\u002FNUnit to xUnit.net), migrating from VSTest to Microsoft.Testing.Platform (use migrate-vstest-to-mtp). For xUnit v3 MTP filter syntax (--filter-class, --filter-trait, --filter-query), also load migrate-vstest-to-mtp.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"dotnet",".NET (Microsoft)","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fdotnet.png",[12,16,19],{"name":13,"slug":14,"type":15},".NET","net","tag",{"name":17,"slug":18,"type":15},"Migration","migration",{"name":20,"slug":21,"type":15},"Testing","testing",4576,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills","2026-07-12T08:24:08.161268","MIT",332,[28],"agent-skills",{"repoUrl":23,"stars":22,"forks":26,"topics":30,"description":31},[28],"Repository for skills to assist AI coding agents with .NET and C#","https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills\u002Ftree\u002FHEAD\u002Fplugins\u002Fdotnet-test-migration\u002Fskills\u002Fmigrate-xunit-to-xunit-v3","---\nname: migrate-xunit-to-xunit-v3\ndescription: >\n  Migrates .NET test projects from xUnit.net v2 to xUnit.net v3.\n  USE FOR: upgrading xunit to xunit.v3.\n  DO NOT USE FOR: migrating between test frameworks (MSTest\u002FNUnit to\n  xUnit.net), migrating from VSTest to Microsoft.Testing.Platform\n  (use migrate-vstest-to-mtp). For xUnit v3 MTP filter syntax\n  (--filter-class, --filter-trait, --filter-query), also load\n  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 | Yes | The .NET project or solution containing xUnit.net v2 test projects |\n\n## Workflow\n\n> **Commit strategy:** Commit after each major step so the migration is reviewable and bisectable. Separate project file changes from code changes.\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### 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. Update all `xunit.v3.*` packages to the latest correct version available on NuGet. Also update `xunit.runner.visualstudio` to the latest version.\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  - Add `\u003CUseMicrosoftTestingPlatformRunner>true\u003C\u002FUseMicrosoftTestingPlatformRunner>` to `Directory.Build.props` under an unconditional `PropertyGroup`.\n- If the project did NOT reference `YTest.MTP.XUnit2` (the common case):\n  - Add `\u003CIsTestingPlatformApplication>false\u003C\u002FIsTestingPlatformApplication>` to `Directory.Build.props` under an unconditional `PropertyGroup`. If `Directory.Build.props` doesn't exist, create it. 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\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\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\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\n### Step 12: Update companion packages (if applicable)\n\n- `Xunit.Combinatorial` 1.x → latest 2.x\n- `Xunit.StaFact` 1.x → latest 3.x\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",{"data":35,"body":36},{"name":4,"description":6,"license":25},{"type":37,"children":38},"root",[39,48,63,70,99,105,136,142,193,199,214,227,234,239,304,333,352,358,483,503,521,561,566,635,641,653,755,769,782,796,838,844,857,896,916,922,942,1002,1007,1084,1090,1118,1227,1231,1333,1339,1360,1374,1386,1391,1470,1476,1501,1507,1520],{"type":40,"tag":41,"props":42,"children":44},"element","h1",{"id":43},"xunitv3-migration",[45],{"type":46,"value":47},"text","xunit.v3 Migration",{"type":40,"tag":49,"props":50,"children":51},"p",{},[52,54,61],{"type":46,"value":53},"Migrate .NET test projects from xUnit.net v2 to xUnit.net v3. The outcome is a solution where all test projects reference ",{"type":40,"tag":55,"props":56,"children":58},"code",{"className":57},[],[59],{"type":46,"value":60},"xunit.v3.*",{"type":46,"value":62}," packages, compiles cleanly, and all tests pass with the same results as before migration.",{"type":40,"tag":64,"props":65,"children":67},"h2",{"id":66},"when-to-use",[68],{"type":46,"value":69},"When to Use",{"type":40,"tag":71,"props":72,"children":73},"ul",{},[74,94],{"type":40,"tag":75,"props":76,"children":77},"li",{},[78,80,86,88],{"type":46,"value":79},"Upgrading test projects from ",{"type":40,"tag":55,"props":81,"children":83},{"className":82},[],[84],{"type":46,"value":85},"xunit",{"type":46,"value":87}," (v2) packages to ",{"type":40,"tag":55,"props":89,"children":91},{"className":90},[],[92],{"type":46,"value":93},"xunit.v3",{"type":40,"tag":75,"props":95,"children":96},{},[97],{"type":46,"value":98},"Resolving compilation errors after updating xunit package references to v3",{"type":40,"tag":64,"props":100,"children":102},{"id":101},"when-not-to-use",[103],{"type":46,"value":104},"When Not to Use",{"type":40,"tag":71,"props":106,"children":107},{},[108,113,124],{"type":40,"tag":75,"props":109,"children":110},{},[111],{"type":46,"value":112},"Migrating between test frameworks (e.g., MSTest or NUnit to xUnit.net) — different effort entirely",{"type":40,"tag":75,"props":114,"children":115},{},[116,118],{"type":46,"value":117},"Migrating from VSTest to Microsoft.Testing.Platform — use ",{"type":40,"tag":55,"props":119,"children":121},{"className":120},[],[122],{"type":46,"value":123},"migrate-vstest-to-mtp",{"type":40,"tag":75,"props":125,"children":126},{},[127,129,134],{"type":46,"value":128},"The projects already reference ",{"type":40,"tag":55,"props":130,"children":132},{"className":131},[],[133],{"type":46,"value":93},{"type":46,"value":135}," — migration is done",{"type":40,"tag":64,"props":137,"children":139},{"id":138},"inputs",[140],{"type":46,"value":141},"Inputs",{"type":40,"tag":143,"props":144,"children":145},"table",{},[146,170],{"type":40,"tag":147,"props":148,"children":149},"thead",{},[150],{"type":40,"tag":151,"props":152,"children":153},"tr",{},[154,160,165],{"type":40,"tag":155,"props":156,"children":157},"th",{},[158],{"type":46,"value":159},"Input",{"type":40,"tag":155,"props":161,"children":162},{},[163],{"type":46,"value":164},"Required",{"type":40,"tag":155,"props":166,"children":167},{},[168],{"type":46,"value":169},"Description",{"type":40,"tag":171,"props":172,"children":173},"tbody",{},[174],{"type":40,"tag":151,"props":175,"children":176},{},[177,183,188],{"type":40,"tag":178,"props":179,"children":180},"td",{},[181],{"type":46,"value":182},"Test project or solution",{"type":40,"tag":178,"props":184,"children":185},{},[186],{"type":46,"value":187},"Yes",{"type":40,"tag":178,"props":189,"children":190},{},[191],{"type":46,"value":192},"The .NET project or solution containing xUnit.net v2 test projects",{"type":40,"tag":64,"props":194,"children":196},{"id":195},"workflow",[197],{"type":46,"value":198},"Workflow",{"type":40,"tag":200,"props":201,"children":202},"blockquote",{},[203],{"type":40,"tag":49,"props":204,"children":205},{},[206,212],{"type":40,"tag":207,"props":208,"children":209},"strong",{},[210],{"type":46,"value":211},"Commit strategy:",{"type":46,"value":213}," Commit after each major step so the migration is reviewable and bisectable. Separate project file changes from code changes.",{"type":40,"tag":200,"props":215,"children":216},{},[217],{"type":40,"tag":49,"props":218,"children":219},{},[220,225],{"type":40,"tag":207,"props":221,"children":222},{},[223],{"type":46,"value":224},"Prioritization:",{"type":46,"value":226}," 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.",{"type":40,"tag":228,"props":229,"children":231},"h3",{"id":230},"step-1-identify-xunitnet-projects-and-verify-compatibility",[232],{"type":46,"value":233},"Step 1: Identify xUnit.net projects and verify compatibility",{"type":40,"tag":49,"props":235,"children":236},{},[237],{"type":46,"value":238},"Search for test projects referencing xUnit.net v2 packages:",{"type":40,"tag":71,"props":240,"children":241},{},[242,250,259,268,277,286,295],{"type":40,"tag":75,"props":243,"children":244},{},[245],{"type":40,"tag":55,"props":246,"children":248},{"className":247},[],[249],{"type":46,"value":85},{"type":40,"tag":75,"props":251,"children":252},{},[253],{"type":40,"tag":55,"props":254,"children":256},{"className":255},[],[257],{"type":46,"value":258},"xunit.abstractions",{"type":40,"tag":75,"props":260,"children":261},{},[262],{"type":40,"tag":55,"props":263,"children":265},{"className":264},[],[266],{"type":46,"value":267},"xunit.assert",{"type":40,"tag":75,"props":269,"children":270},{},[271],{"type":40,"tag":55,"props":272,"children":274},{"className":273},[],[275],{"type":46,"value":276},"xunit.core",{"type":40,"tag":75,"props":278,"children":279},{},[280],{"type":40,"tag":55,"props":281,"children":283},{"className":282},[],[284],{"type":46,"value":285},"xunit.extensibility.core",{"type":40,"tag":75,"props":287,"children":288},{},[289],{"type":40,"tag":55,"props":290,"children":292},{"className":291},[],[293],{"type":46,"value":294},"xunit.extensibility.execution",{"type":40,"tag":75,"props":296,"children":297},{},[298],{"type":40,"tag":55,"props":299,"children":301},{"className":300},[],[302],{"type":46,"value":303},"xunit.runner.visualstudio",{"type":40,"tag":49,"props":305,"children":306},{},[307,309,315,317,323,325,331],{"type":46,"value":308},"Make sure to check the package references in project files, MSBuild props and targets files, like ",{"type":40,"tag":55,"props":310,"children":312},{"className":311},[],[313],{"type":46,"value":314},"Directory.Build.props",{"type":46,"value":316},", ",{"type":40,"tag":55,"props":318,"children":320},{"className":319},[],[321],{"type":46,"value":322},"Directory.Build.targets",{"type":46,"value":324},", and ",{"type":40,"tag":55,"props":326,"children":328},{"className":327},[],[329],{"type":46,"value":330},"Directory.Packages.props",{"type":46,"value":332},".",{"type":40,"tag":49,"props":334,"children":335},{},[336,338,343,345,350],{"type":46,"value":337},"Verify target framework compatibility: xUnit.net v3 requires ",{"type":40,"tag":207,"props":339,"children":340},{},[341],{"type":46,"value":342},".NET 8+",{"type":46,"value":344}," or ",{"type":40,"tag":207,"props":346,"children":347},{},[348],{"type":46,"value":349},".NET Framework 4.7.2+",{"type":46,"value":351},". 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.",{"type":40,"tag":228,"props":353,"children":355},{"id":354},"step-2-update-package-references",[356],{"type":46,"value":357},"Step 2: Update package references",{"type":40,"tag":359,"props":360,"children":361},"ol",{},[362,464],{"type":40,"tag":75,"props":363,"children":364},{},[365,367,373,374,380,382],{"type":46,"value":366},"Update any ",{"type":40,"tag":55,"props":368,"children":370},{"className":369},[],[371],{"type":46,"value":372},"PackageReference",{"type":46,"value":344},{"type":40,"tag":55,"props":375,"children":377},{"className":376},[],[378],{"type":46,"value":379},"PackageVersion",{"type":46,"value":381}," items for the new package names, based on the following mapping:",{"type":40,"tag":71,"props":383,"children":384},{},[385,400,410,425,440],{"type":40,"tag":75,"props":386,"children":387},{},[388,393,395],{"type":40,"tag":55,"props":389,"children":391},{"className":390},[],[392],{"type":46,"value":85},{"type":46,"value":394}," → ",{"type":40,"tag":55,"props":396,"children":398},{"className":397},[],[399],{"type":46,"value":93},{"type":40,"tag":75,"props":401,"children":402},{},[403,408],{"type":40,"tag":55,"props":404,"children":406},{"className":405},[],[407],{"type":46,"value":258},{"type":46,"value":409}," → Remove entirely",{"type":40,"tag":75,"props":411,"children":412},{},[413,418,419],{"type":40,"tag":55,"props":414,"children":416},{"className":415},[],[417],{"type":46,"value":267},{"type":46,"value":394},{"type":40,"tag":55,"props":420,"children":422},{"className":421},[],[423],{"type":46,"value":424},"xunit.v3.assert",{"type":40,"tag":75,"props":426,"children":427},{},[428,433,434],{"type":40,"tag":55,"props":429,"children":431},{"className":430},[],[432],{"type":46,"value":276},{"type":46,"value":394},{"type":40,"tag":55,"props":435,"children":437},{"className":436},[],[438],{"type":46,"value":439},"xunit.v3.core",{"type":40,"tag":75,"props":441,"children":442},{},[443,448,450,455,456,462],{"type":40,"tag":55,"props":444,"children":446},{"className":445},[],[447],{"type":46,"value":285},{"type":46,"value":449}," and ",{"type":40,"tag":55,"props":451,"children":453},{"className":452},[],[454],{"type":46,"value":294},{"type":46,"value":394},{"type":40,"tag":55,"props":457,"children":459},{"className":458},[],[460],{"type":46,"value":461},"xunit.v3.extensibility.core",{"type":46,"value":463}," (if both are referenced in a project consolidate to only a single entry as the two packages are merged)",{"type":40,"tag":75,"props":465,"children":466},{},[467,469,474,476,481],{"type":46,"value":468},"Update all ",{"type":40,"tag":55,"props":470,"children":472},{"className":471},[],[473],{"type":46,"value":60},{"type":46,"value":475}," packages to the latest correct version available on NuGet. Also update ",{"type":40,"tag":55,"props":477,"children":479},{"className":478},[],[480],{"type":46,"value":303},{"type":46,"value":482}," to the latest version.",{"type":40,"tag":228,"props":484,"children":486},{"id":485},"step-3-set-outputtype-to-exe",[487,489,495,497],{"type":46,"value":488},"Step 3: Set ",{"type":40,"tag":55,"props":490,"children":492},{"className":491},[],[493],{"type":46,"value":494},"OutputType",{"type":46,"value":496}," to ",{"type":40,"tag":55,"props":498,"children":500},{"className":499},[],[501],{"type":46,"value":502},"Exe",{"type":40,"tag":49,"props":504,"children":505},{},[506,508,513,514,519],{"type":46,"value":507},"In each test project (excluding test library projects), set ",{"type":40,"tag":55,"props":509,"children":511},{"className":510},[],[512],{"type":46,"value":494},{"type":46,"value":496},{"type":40,"tag":55,"props":515,"children":517},{"className":516},[],[518],{"type":46,"value":502},{"type":46,"value":520}," in the project file:",{"type":40,"tag":522,"props":523,"children":528},"pre",{"className":524,"code":525,"language":526,"meta":527,"style":527},"language-xml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003CPropertyGroup>\n  \u003COutputType>Exe\u003C\u002FOutputType>\n\u003C\u002FPropertyGroup>\n","xml","",[529],{"type":40,"tag":55,"props":530,"children":531},{"__ignoreMap":527},[532,543,552],{"type":40,"tag":533,"props":534,"children":537},"span",{"class":535,"line":536},"line",1,[538],{"type":40,"tag":533,"props":539,"children":540},{},[541],{"type":46,"value":542},"\u003CPropertyGroup>\n",{"type":40,"tag":533,"props":544,"children":546},{"class":535,"line":545},2,[547],{"type":40,"tag":533,"props":548,"children":549},{},[550],{"type":46,"value":551},"  \u003COutputType>Exe\u003C\u002FOutputType>\n",{"type":40,"tag":533,"props":553,"children":555},{"class":535,"line":554},3,[556],{"type":40,"tag":533,"props":557,"children":558},{},[559],{"type":46,"value":560},"\u003C\u002FPropertyGroup>\n",{"type":40,"tag":49,"props":562,"children":563},{},[564],{"type":46,"value":565},"Depending on the solution in hand, there might be a centralized place where this can be added. For example:",{"type":40,"tag":71,"props":567,"children":568},{},[569,595,623],{"type":40,"tag":75,"props":570,"children":571},{},[572,574,579,581,587,589,594],{"type":46,"value":573},"If all test projects share (or can share) a common ",{"type":40,"tag":55,"props":575,"children":577},{"className":576},[],[578],{"type":46,"value":314},{"type":46,"value":580},", add the ",{"type":40,"tag":55,"props":582,"children":584},{"className":583},[],[585],{"type":46,"value":586},"\u003COutputType>Exe\u003C\u002FOutputType>",{"type":46,"value":588}," property there. Note that the OutputType should not be added to ",{"type":40,"tag":55,"props":590,"children":592},{"className":591},[],[593],{"type":46,"value":322},{"type":46,"value":332},{"type":40,"tag":75,"props":596,"children":597},{},[598,600,606,608,613,615,621],{"type":46,"value":599},"If all test projects share a name pattern (e.g., ",{"type":40,"tag":55,"props":601,"children":603},{"className":602},[],[604],{"type":46,"value":605},"*.Tests.csproj",{"type":46,"value":607},"), add a conditional property group in ",{"type":40,"tag":55,"props":609,"children":611},{"className":610},[],[612],{"type":46,"value":314},{"type":46,"value":614}," that applies only to those projects, like ",{"type":40,"tag":55,"props":616,"children":618},{"className":617},[],[619],{"type":46,"value":620},"\u003COutputType Condition=\"$(MSBuildProjectName.EndsWith('.Tests'))\">Exe\u003C\u002FOutputType>",{"type":46,"value":622},". Adjust the condition as needed to target only test projects.",{"type":40,"tag":75,"props":624,"children":625},{},[626,628,633],{"type":46,"value":627},"Otherwise, add the ",{"type":40,"tag":55,"props":629,"children":631},{"className":630},[],[632],{"type":46,"value":586},{"type":46,"value":634}," property to each test project file individually.",{"type":40,"tag":228,"props":636,"children":638},{"id":637},"step-4-configure-test-platform",[639],{"type":46,"value":640},"Step 4: Configure test platform",{"type":40,"tag":49,"props":642,"children":643},{},[644,646,652],{"type":46,"value":645},"Preserve the same test platform that was used with xUnit.net v2. xUnit.net v2 always uses VSTest except if the project used ",{"type":40,"tag":55,"props":647,"children":649},{"className":648},[],[650],{"type":46,"value":651},"YTest.MTP.XUnit2",{"type":46,"value":332},{"type":40,"tag":71,"props":654,"children":655},{},[656,709],{"type":40,"tag":75,"props":657,"children":658},{},[659,661,666,668],{"type":46,"value":660},"If the project had a reference to ",{"type":40,"tag":55,"props":662,"children":664},{"className":663},[],[665],{"type":46,"value":651},{"type":46,"value":667},":\n",{"type":40,"tag":71,"props":669,"children":670},{},[671,683],{"type":40,"tag":75,"props":672,"children":673},{},[674,676,681],{"type":46,"value":675},"Remove the reference to ",{"type":40,"tag":55,"props":677,"children":679},{"className":678},[],[680],{"type":46,"value":651},{"type":46,"value":682}," completely.",{"type":40,"tag":75,"props":684,"children":685},{},[686,688,694,695,700,702,708],{"type":46,"value":687},"Add ",{"type":40,"tag":55,"props":689,"children":691},{"className":690},[],[692],{"type":46,"value":693},"\u003CUseMicrosoftTestingPlatformRunner>true\u003C\u002FUseMicrosoftTestingPlatformRunner>",{"type":46,"value":496},{"type":40,"tag":55,"props":696,"children":698},{"className":697},[],[699],{"type":46,"value":314},{"type":46,"value":701}," under an unconditional ",{"type":40,"tag":55,"props":703,"children":705},{"className":704},[],[706],{"type":46,"value":707},"PropertyGroup",{"type":46,"value":332},{"type":40,"tag":75,"props":710,"children":711},{},[712,714,719,721],{"type":46,"value":713},"If the project did NOT reference ",{"type":40,"tag":55,"props":715,"children":717},{"className":716},[],[718],{"type":46,"value":651},{"type":46,"value":720}," (the common case):\n",{"type":40,"tag":71,"props":722,"children":723},{},[724],{"type":40,"tag":75,"props":725,"children":726},{},[727,728,734,735,740,741,746,748,753],{"type":46,"value":687},{"type":40,"tag":55,"props":729,"children":731},{"className":730},[],[732],{"type":46,"value":733},"\u003CIsTestingPlatformApplication>false\u003C\u002FIsTestingPlatformApplication>",{"type":46,"value":496},{"type":40,"tag":55,"props":736,"children":738},{"className":737},[],[739],{"type":46,"value":314},{"type":46,"value":701},{"type":40,"tag":55,"props":742,"children":744},{"className":743},[],[745],{"type":46,"value":707},{"type":46,"value":747},". If ",{"type":40,"tag":55,"props":749,"children":751},{"className":750},[],[752],{"type":46,"value":314},{"type":46,"value":754}," doesn't exist, create it. This keeps the project on VSTest.",{"type":40,"tag":228,"props":756,"children":758},{"id":757},"step-5-remove-xunitabstractions-usings",[759,761,767],{"type":46,"value":760},"Step 5: Remove ",{"type":40,"tag":55,"props":762,"children":764},{"className":763},[],[765],{"type":46,"value":766},"Xunit.Abstractions",{"type":46,"value":768}," usings",{"type":40,"tag":49,"props":770,"children":771},{},[772,774,780],{"type":46,"value":773},"Find any ",{"type":40,"tag":55,"props":775,"children":777},{"className":776},[],[778],{"type":46,"value":779},"using Xunit.Abstractions;",{"type":46,"value":781}," directives in C# files and remove them completely.",{"type":40,"tag":228,"props":783,"children":785},{"id":784},"step-6-address-async-void-breaking-change-if-applicable",[786,788,794],{"type":46,"value":787},"Step 6: Address ",{"type":40,"tag":55,"props":789,"children":791},{"className":790},[],[792],{"type":46,"value":793},"async void",{"type":46,"value":795}," breaking change (if applicable)",{"type":40,"tag":49,"props":797,"children":798},{},[799,801,806,808,813,815,821,823,829,830,836],{"type":46,"value":800},"In xUnit.net v3, ",{"type":40,"tag":55,"props":802,"children":804},{"className":803},[],[805],{"type":46,"value":793},{"type":46,"value":807}," test methods are no longer supported and will fail to compile. Search for any test methods declared with ",{"type":40,"tag":55,"props":809,"children":811},{"className":810},[],[812],{"type":46,"value":793},{"type":46,"value":814}," and change them to ",{"type":40,"tag":55,"props":816,"children":818},{"className":817},[],[819],{"type":46,"value":820},"async Task",{"type":46,"value":822},". Test methods can be identified via the ",{"type":40,"tag":55,"props":824,"children":826},{"className":825},[],[827],{"type":46,"value":828},"[Fact]",{"type":46,"value":344},{"type":40,"tag":55,"props":831,"children":833},{"className":832},[],[834],{"type":46,"value":835},"[Theory]",{"type":46,"value":837}," attributes or other test attributes.",{"type":40,"tag":228,"props":839,"children":841},{"id":840},"step-7-address-breaking-change-of-attributes-if-applicable",[842],{"type":46,"value":843},"Step 7: Address breaking change of attributes (if applicable)",{"type":40,"tag":49,"props":845,"children":846},{},[847,849,855],{"type":46,"value":848},"In xUnit.net v3, some attributes were updated so that they accept a ",{"type":40,"tag":55,"props":850,"children":852},{"className":851},[],[853],{"type":46,"value":854},"System.Type",{"type":46,"value":856}," instead of two strings (fully qualified type name and assembly name). These attributes are:",{"type":40,"tag":71,"props":858,"children":859},{},[860,869,878,887],{"type":40,"tag":75,"props":861,"children":862},{},[863],{"type":40,"tag":55,"props":864,"children":866},{"className":865},[],[867],{"type":46,"value":868},"CollectionBehaviorAttribute",{"type":40,"tag":75,"props":870,"children":871},{},[872],{"type":40,"tag":55,"props":873,"children":875},{"className":874},[],[876],{"type":46,"value":877},"TestCaseOrdererAttribute",{"type":40,"tag":75,"props":879,"children":880},{},[881],{"type":40,"tag":55,"props":882,"children":884},{"className":883},[],[885],{"type":46,"value":886},"TestCollectionOrdererAttribute",{"type":40,"tag":75,"props":888,"children":889},{},[890],{"type":40,"tag":55,"props":891,"children":893},{"className":892},[],[894],{"type":46,"value":895},"TestFrameworkAttribute",{"type":40,"tag":49,"props":897,"children":898},{},[899,901,907,909,915],{"type":46,"value":900},"For example, ",{"type":40,"tag":55,"props":902,"children":904},{"className":903},[],[905],{"type":46,"value":906},"[assembly: CollectionBehavior(\"MyNamespace.MyCollectionFactory\", \"MyAssembly\")]",{"type":46,"value":908}," must be converted to ",{"type":40,"tag":55,"props":910,"children":912},{"className":911},[],[913],{"type":46,"value":914},"[assembly: CollectionBehavior(typeof(MyNamespace.MyCollectionFactory))]",{"type":46,"value":332},{"type":40,"tag":228,"props":917,"children":919},{"id":918},"step-8-inheriting-from-factattribute-or-theoryattribute-if-applicable",[920],{"type":46,"value":921},"Step 8: Inheriting from FactAttribute or TheoryAttribute (if applicable)",{"type":40,"tag":49,"props":923,"children":924},{},[925,927,933,934,940],{"type":46,"value":926},"Identify if there are any custom attributes that inherit from ",{"type":40,"tag":55,"props":928,"children":930},{"className":929},[],[931],{"type":46,"value":932},"FactAttribute",{"type":46,"value":344},{"type":40,"tag":55,"props":935,"children":937},{"className":936},[],[938],{"type":46,"value":939},"TheoryAttribute",{"type":46,"value":941},". These custom user-defined attributes must now provide source information. For example, if the attribute looked like this:",{"type":40,"tag":522,"props":943,"children":947},{"className":944,"code":945,"language":946,"meta":527,"style":527},"language-csharp shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","internal sealed class MyFactAttribute : FactAttribute\n{\n    public MyFactAttribute()\n    {\n    }\n}\n","csharp",[948],{"type":40,"tag":55,"props":949,"children":950},{"__ignoreMap":527},[951,959,967,975,984,993],{"type":40,"tag":533,"props":952,"children":953},{"class":535,"line":536},[954],{"type":40,"tag":533,"props":955,"children":956},{},[957],{"type":46,"value":958},"internal sealed class MyFactAttribute : FactAttribute\n",{"type":40,"tag":533,"props":960,"children":961},{"class":535,"line":545},[962],{"type":40,"tag":533,"props":963,"children":964},{},[965],{"type":46,"value":966},"{\n",{"type":40,"tag":533,"props":968,"children":969},{"class":535,"line":554},[970],{"type":40,"tag":533,"props":971,"children":972},{},[973],{"type":46,"value":974},"    public MyFactAttribute()\n",{"type":40,"tag":533,"props":976,"children":978},{"class":535,"line":977},4,[979],{"type":40,"tag":533,"props":980,"children":981},{},[982],{"type":46,"value":983},"    {\n",{"type":40,"tag":533,"props":985,"children":987},{"class":535,"line":986},5,[988],{"type":40,"tag":533,"props":989,"children":990},{},[991],{"type":46,"value":992},"    }\n",{"type":40,"tag":533,"props":994,"children":996},{"class":535,"line":995},6,[997],{"type":40,"tag":533,"props":998,"children":999},{},[1000],{"type":46,"value":1001},"}\n",{"type":40,"tag":49,"props":1003,"children":1004},{},[1005],{"type":46,"value":1006},"it must be changed to this:",{"type":40,"tag":522,"props":1008,"children":1010},{"className":944,"code":1009,"language":946,"meta":527,"style":527},"internal 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",[1011],{"type":40,"tag":55,"props":1012,"children":1013},{"__ignoreMap":527},[1014,1021,1028,1036,1044,1052,1060,1068,1076],{"type":40,"tag":533,"props":1015,"children":1016},{"class":535,"line":536},[1017],{"type":40,"tag":533,"props":1018,"children":1019},{},[1020],{"type":46,"value":958},{"type":40,"tag":533,"props":1022,"children":1023},{"class":535,"line":545},[1024],{"type":40,"tag":533,"props":1025,"children":1026},{},[1027],{"type":46,"value":966},{"type":40,"tag":533,"props":1029,"children":1030},{"class":535,"line":554},[1031],{"type":40,"tag":533,"props":1032,"children":1033},{},[1034],{"type":46,"value":1035},"    public MyFactAttribute(\n",{"type":40,"tag":533,"props":1037,"children":1038},{"class":535,"line":977},[1039],{"type":40,"tag":533,"props":1040,"children":1041},{},[1042],{"type":46,"value":1043},"        [CallerFilePath] string? sourceFilePath = null,\n",{"type":40,"tag":533,"props":1045,"children":1046},{"class":535,"line":986},[1047],{"type":40,"tag":533,"props":1048,"children":1049},{},[1050],{"type":46,"value":1051},"        [CallerLineNumber] int sourceLineNumber = -1\n",{"type":40,"tag":533,"props":1053,"children":1054},{"class":535,"line":995},[1055],{"type":40,"tag":533,"props":1056,"children":1057},{},[1058],{"type":46,"value":1059},"    ) : base(sourceFilePath, sourceLineNumber)\n",{"type":40,"tag":533,"props":1061,"children":1063},{"class":535,"line":1062},7,[1064],{"type":40,"tag":533,"props":1065,"children":1066},{},[1067],{"type":46,"value":983},{"type":40,"tag":533,"props":1069,"children":1071},{"class":535,"line":1070},8,[1072],{"type":40,"tag":533,"props":1073,"children":1074},{},[1075],{"type":46,"value":992},{"type":40,"tag":533,"props":1077,"children":1079},{"class":535,"line":1078},9,[1080],{"type":40,"tag":533,"props":1081,"children":1082},{},[1083],{"type":46,"value":1001},{"type":40,"tag":228,"props":1085,"children":1087},{"id":1086},"step-9-inheriting-from-beforeaftertestattribute-if-applicable",[1088],{"type":46,"value":1089},"Step 9: Inheriting from BeforeAfterTestAttribute (if applicable)",{"type":40,"tag":49,"props":1091,"children":1092},{},[1093,1094,1100,1102,1108,1110,1116],{"type":46,"value":926},{"type":40,"tag":55,"props":1095,"children":1097},{"className":1096},[],[1098],{"type":46,"value":1099},"BeforeAfterTestAttribute",{"type":46,"value":1101},". These custom user-defined attributes must update their method signatures. Previously, they would have ",{"type":40,"tag":55,"props":1103,"children":1105},{"className":1104},[],[1106],{"type":46,"value":1107},"Before",{"type":46,"value":1109},"\u002F",{"type":40,"tag":55,"props":1111,"children":1113},{"className":1112},[],[1114],{"type":46,"value":1115},"After",{"type":46,"value":1117}," overrides that look like this:",{"type":40,"tag":522,"props":1119,"children":1121},{"className":944,"code":1120,"language":946,"meta":527,"style":527},"    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",[1122],{"type":40,"tag":55,"props":1123,"children":1124},{"__ignoreMap":527},[1125,1133,1140,1148,1156,1163,1170,1179,1187,1194,1202,1211,1219],{"type":40,"tag":533,"props":1126,"children":1127},{"class":535,"line":536},[1128],{"type":40,"tag":533,"props":1129,"children":1130},{},[1131],{"type":46,"value":1132},"    public override void Before(MethodInfo methodUnderTest)\n",{"type":40,"tag":533,"props":1134,"children":1135},{"class":535,"line":545},[1136],{"type":40,"tag":533,"props":1137,"children":1138},{},[1139],{"type":46,"value":983},{"type":40,"tag":533,"props":1141,"children":1142},{"class":535,"line":554},[1143],{"type":40,"tag":533,"props":1144,"children":1145},{},[1146],{"type":46,"value":1147},"        \u002F\u002F Possibly some custom logic here\n",{"type":40,"tag":533,"props":1149,"children":1150},{"class":535,"line":977},[1151],{"type":40,"tag":533,"props":1152,"children":1153},{},[1154],{"type":46,"value":1155},"        base.Before(methodUnderTest);\n",{"type":40,"tag":533,"props":1157,"children":1158},{"class":535,"line":986},[1159],{"type":40,"tag":533,"props":1160,"children":1161},{},[1162],{"type":46,"value":1147},{"type":40,"tag":533,"props":1164,"children":1165},{"class":535,"line":995},[1166],{"type":40,"tag":533,"props":1167,"children":1168},{},[1169],{"type":46,"value":992},{"type":40,"tag":533,"props":1171,"children":1172},{"class":535,"line":1062},[1173],{"type":40,"tag":533,"props":1174,"children":1176},{"emptyLinePlaceholder":1175},true,[1177],{"type":46,"value":1178},"\n",{"type":40,"tag":533,"props":1180,"children":1181},{"class":535,"line":1070},[1182],{"type":40,"tag":533,"props":1183,"children":1184},{},[1185],{"type":46,"value":1186},"    public override void After(MethodInfo methodUnderTest)\n",{"type":40,"tag":533,"props":1188,"children":1189},{"class":535,"line":1078},[1190],{"type":40,"tag":533,"props":1191,"children":1192},{},[1193],{"type":46,"value":983},{"type":40,"tag":533,"props":1195,"children":1197},{"class":535,"line":1196},10,[1198],{"type":40,"tag":533,"props":1199,"children":1200},{},[1201],{"type":46,"value":1147},{"type":40,"tag":533,"props":1203,"children":1205},{"class":535,"line":1204},11,[1206],{"type":40,"tag":533,"props":1207,"children":1208},{},[1209],{"type":46,"value":1210},"        base.After(methodUnderTest);\n",{"type":40,"tag":533,"props":1212,"children":1214},{"class":535,"line":1213},12,[1215],{"type":40,"tag":533,"props":1216,"children":1217},{},[1218],{"type":46,"value":1147},{"type":40,"tag":533,"props":1220,"children":1222},{"class":535,"line":1221},13,[1223],{"type":40,"tag":533,"props":1224,"children":1225},{},[1226],{"type":46,"value":992},{"type":40,"tag":49,"props":1228,"children":1229},{},[1230],{"type":46,"value":1006},{"type":40,"tag":522,"props":1232,"children":1234},{"className":944,"code":1233,"language":946,"meta":527,"style":527},"    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",[1235],{"type":40,"tag":55,"props":1236,"children":1237},{"__ignoreMap":527},[1238,1246,1253,1260,1268,1275,1282,1289,1297,1304,1311,1319,1326],{"type":40,"tag":533,"props":1239,"children":1240},{"class":535,"line":536},[1241],{"type":40,"tag":533,"props":1242,"children":1243},{},[1244],{"type":46,"value":1245},"    public override void Before(MethodInfo methodUnderTest, IXunitTest test)\n",{"type":40,"tag":533,"props":1247,"children":1248},{"class":535,"line":545},[1249],{"type":40,"tag":533,"props":1250,"children":1251},{},[1252],{"type":46,"value":983},{"type":40,"tag":533,"props":1254,"children":1255},{"class":535,"line":554},[1256],{"type":40,"tag":533,"props":1257,"children":1258},{},[1259],{"type":46,"value":1147},{"type":40,"tag":533,"props":1261,"children":1262},{"class":535,"line":977},[1263],{"type":40,"tag":533,"props":1264,"children":1265},{},[1266],{"type":46,"value":1267},"        base.Before(methodUnderTest, test);\n",{"type":40,"tag":533,"props":1269,"children":1270},{"class":535,"line":986},[1271],{"type":40,"tag":533,"props":1272,"children":1273},{},[1274],{"type":46,"value":1147},{"type":40,"tag":533,"props":1276,"children":1277},{"class":535,"line":995},[1278],{"type":40,"tag":533,"props":1279,"children":1280},{},[1281],{"type":46,"value":992},{"type":40,"tag":533,"props":1283,"children":1284},{"class":535,"line":1062},[1285],{"type":40,"tag":533,"props":1286,"children":1287},{"emptyLinePlaceholder":1175},[1288],{"type":46,"value":1178},{"type":40,"tag":533,"props":1290,"children":1291},{"class":535,"line":1070},[1292],{"type":40,"tag":533,"props":1293,"children":1294},{},[1295],{"type":46,"value":1296},"    public override void After(MethodInfo methodUnderTest, IXunitTest test)\n",{"type":40,"tag":533,"props":1298,"children":1299},{"class":535,"line":1078},[1300],{"type":40,"tag":533,"props":1301,"children":1302},{},[1303],{"type":46,"value":983},{"type":40,"tag":533,"props":1305,"children":1306},{"class":535,"line":1196},[1307],{"type":40,"tag":533,"props":1308,"children":1309},{},[1310],{"type":46,"value":1147},{"type":40,"tag":533,"props":1312,"children":1313},{"class":535,"line":1204},[1314],{"type":40,"tag":533,"props":1315,"children":1316},{},[1317],{"type":46,"value":1318},"        base.After(methodUnderTest, test);\n",{"type":40,"tag":533,"props":1320,"children":1321},{"class":535,"line":1213},[1322],{"type":40,"tag":533,"props":1323,"children":1324},{},[1325],{"type":46,"value":1147},{"type":40,"tag":533,"props":1327,"children":1328},{"class":535,"line":1221},[1329],{"type":40,"tag":533,"props":1330,"children":1331},{},[1332],{"type":46,"value":992},{"type":40,"tag":228,"props":1334,"children":1336},{"id":1335},"step-10-address-new-xunit-analyzer-warnings-if-applicable",[1337],{"type":46,"value":1338},"Step 10: Address new xUnit analyzer warnings (if applicable)",{"type":40,"tag":49,"props":1340,"children":1341},{},[1342,1344,1350,1352,1358],{"type":46,"value":1343},"xunit.v3 introduced new analyzer warnings. The most notable is xUnit1051 (use ",{"type":40,"tag":55,"props":1345,"children":1347},{"className":1346},[],[1348],{"type":46,"value":1349},"TestContext.Current.CancellationToken",{"type":46,"value":1351}," for methods accepting ",{"type":40,"tag":55,"props":1353,"children":1355},{"className":1354},[],[1356],{"type":46,"value":1357},"CancellationToken",{"type":46,"value":1359},"). Address these if present.",{"type":40,"tag":228,"props":1361,"children":1363},{"id":1362},"step-11-migrate-xunitskippablefact-if-applicable",[1364,1366,1372],{"type":46,"value":1365},"Step 11: Migrate ",{"type":40,"tag":55,"props":1367,"children":1369},{"className":1368},[],[1370],{"type":46,"value":1371},"Xunit.SkippableFact",{"type":46,"value":1373}," (if applicable)",{"type":40,"tag":49,"props":1375,"children":1376},{},[1377,1379,1384],{"type":46,"value":1378},"If there are any package references to ",{"type":40,"tag":55,"props":1380,"children":1382},{"className":1381},[],[1383],{"type":46,"value":1371},{"type":46,"value":1385},", remove all these package references entirely.",{"type":40,"tag":49,"props":1387,"children":1388},{},[1389],{"type":46,"value":1390},"Then, follow these steps to eliminate usages of APIs coming from the removed package reference:",{"type":40,"tag":71,"props":1392,"children":1393},{},[1394,1414,1432,1452],{"type":40,"tag":75,"props":1395,"children":1396},{},[1397,1398,1404,1406,1412],{"type":46,"value":366},{"type":40,"tag":55,"props":1399,"children":1401},{"className":1400},[],[1402],{"type":46,"value":1403},"SkippableFact",{"type":46,"value":1405}," attribute to the regular ",{"type":40,"tag":55,"props":1407,"children":1409},{"className":1408},[],[1410],{"type":46,"value":1411},"Fact",{"type":46,"value":1413}," attribute.",{"type":40,"tag":75,"props":1415,"children":1416},{},[1417,1418,1424,1425,1431],{"type":46,"value":366},{"type":40,"tag":55,"props":1419,"children":1421},{"className":1420},[],[1422],{"type":46,"value":1423},"SkippableTheory",{"type":46,"value":1405},{"type":40,"tag":55,"props":1426,"children":1428},{"className":1427},[],[1429],{"type":46,"value":1430},"Theory",{"type":46,"value":1413},{"type":40,"tag":75,"props":1433,"children":1434},{},[1435,1437,1443,1445,1451],{"type":46,"value":1436},"Change ",{"type":40,"tag":55,"props":1438,"children":1440},{"className":1439},[],[1441],{"type":46,"value":1442},"Skip.If",{"type":46,"value":1444}," method calls to ",{"type":40,"tag":55,"props":1446,"children":1448},{"className":1447},[],[1449],{"type":46,"value":1450},"Assert.SkipWhen",{"type":46,"value":332},{"type":40,"tag":75,"props":1453,"children":1454},{},[1455,1456,1462,1463,1469],{"type":46,"value":1436},{"type":40,"tag":55,"props":1457,"children":1459},{"className":1458},[],[1460],{"type":46,"value":1461},"Skip.IfNot",{"type":46,"value":1444},{"type":40,"tag":55,"props":1464,"children":1466},{"className":1465},[],[1467],{"type":46,"value":1468},"Assert.SkipUnless",{"type":46,"value":332},{"type":40,"tag":228,"props":1471,"children":1473},{"id":1472},"step-12-update-companion-packages-if-applicable",[1474],{"type":46,"value":1475},"Step 12: Update companion packages (if applicable)",{"type":40,"tag":71,"props":1477,"children":1478},{},[1479,1490],{"type":40,"tag":75,"props":1480,"children":1481},{},[1482,1488],{"type":40,"tag":55,"props":1483,"children":1485},{"className":1484},[],[1486],{"type":46,"value":1487},"Xunit.Combinatorial",{"type":46,"value":1489}," 1.x → latest 2.x",{"type":40,"tag":75,"props":1491,"children":1492},{},[1493,1499],{"type":40,"tag":55,"props":1494,"children":1496},{"className":1495},[],[1497],{"type":46,"value":1498},"Xunit.StaFact",{"type":46,"value":1500}," 1.x → latest 3.x",{"type":40,"tag":228,"props":1502,"children":1504},{"id":1503},"step-13-build-and-verify",[1505],{"type":46,"value":1506},"Step 13: Build and verify",{"type":40,"tag":49,"props":1508,"children":1509},{},[1510,1512,1518],{"type":46,"value":1511},"Build the solution and fix any remaining compilation errors. Run ",{"type":40,"tag":55,"props":1513,"children":1515},{"className":1514},[],[1516],{"type":46,"value":1517},"dotnet test",{"type":46,"value":1519}," to verify all tests pass with the same results as before migration.",{"type":40,"tag":1521,"props":1522,"children":1523},"style",{},[1524],{"type":46,"value":1525},"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":1527,"total":1633},[1528,1545,1560,1578,1590,1609,1619],{"slug":1529,"name":1529,"fn":1530,"description":1531,"org":1532,"tags":1533,"stars":22,"repoUrl":23,"updatedAt":1544},"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},[1534,1535,1538,1541],{"name":13,"slug":14,"type":15},{"name":1536,"slug":1537,"type":15},"Code Analysis","code-analysis",{"name":1539,"slug":1540,"type":15},"Debugging","debugging",{"name":1542,"slug":1543,"type":15},"Performance","performance","2026-07-12T08:23:25.400375",{"slug":1546,"name":1546,"fn":1547,"description":1548,"org":1549,"tags":1550,"stars":22,"repoUrl":23,"updatedAt":1559},"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},[1551,1552,1555,1556],{"name":13,"slug":14,"type":15},{"name":1553,"slug":1554,"type":15},"Android","android",{"name":1539,"slug":1540,"type":15},{"name":1557,"slug":1558,"type":15},"Microsoft","microsoft","2026-07-12T08:23:21.595572",{"slug":1561,"name":1561,"fn":1562,"description":1563,"org":1564,"tags":1565,"stars":22,"repoUrl":23,"updatedAt":1577},"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},[1566,1567,1568,1571,1574],{"name":13,"slug":14,"type":15},{"name":1539,"slug":1540,"type":15},{"name":1569,"slug":1570,"type":15},"iOS","ios",{"name":1572,"slug":1573,"type":15},"macOS","macos",{"name":1575,"slug":1576,"type":15},"Observability","observability","2026-07-12T08:23:20.369986",{"slug":1579,"name":1579,"fn":1580,"description":1581,"org":1582,"tags":1583,"stars":22,"repoUrl":23,"updatedAt":1589},"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},[1584,1585,1588],{"name":1536,"slug":1537,"type":15},{"name":1586,"slug":1587,"type":15},"QA","qa",{"name":20,"slug":21,"type":15},"2026-07-12T08:23:51.277743",{"slug":1591,"name":1591,"fn":1592,"description":1593,"org":1594,"tags":1595,"stars":22,"repoUrl":23,"updatedAt":1608},"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},[1596,1597,1600,1602,1605],{"name":13,"slug":14,"type":15},{"name":1598,"slug":1599,"type":15},"Blazor","blazor",{"name":1601,"slug":946,"type":15},"C#",{"name":1603,"slug":1604,"type":15},"UI Components","ui-components",{"name":1606,"slug":1607,"type":15},"Web Development","web-development","2026-07-15T06:03:29.216359",{"slug":1610,"name":1610,"fn":1611,"description":1612,"org":1613,"tags":1614,"stars":22,"repoUrl":23,"updatedAt":1618},"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},[1615,1616,1617],{"name":1536,"slug":1537,"type":15},{"name":1539,"slug":1540,"type":15},{"name":1557,"slug":1558,"type":15},"2026-07-12T08:21:34.637923",{"slug":1620,"name":1620,"fn":1621,"description":1622,"org":1623,"tags":1624,"stars":22,"repoUrl":23,"updatedAt":1632},"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},[1625,1628,1629],{"name":1626,"slug":1627,"type":15},"Build","build",{"name":1539,"slug":1540,"type":15},{"name":1630,"slug":1631,"type":15},"Engineering","engineering","2026-07-19T05:38:19.340791",96,{"items":1635,"total":1740},[1636,1648,1655,1662,1670,1676,1684,1690,1696,1706,1719,1730],{"slug":1637,"name":1637,"fn":1638,"description":1639,"org":1640,"tags":1641,"stars":1645,"repoUrl":1646,"updatedAt":1647},"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},[1642,1643,1644],{"name":13,"slug":14,"type":15},{"name":1630,"slug":1631,"type":15},{"name":1542,"slug":1543,"type":15},5535,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmsbuild","2026-07-22T05:37:33.965588",{"slug":1529,"name":1529,"fn":1530,"description":1531,"org":1649,"tags":1650,"stars":22,"repoUrl":23,"updatedAt":1544},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1651,1652,1653,1654],{"name":13,"slug":14,"type":15},{"name":1536,"slug":1537,"type":15},{"name":1539,"slug":1540,"type":15},{"name":1542,"slug":1543,"type":15},{"slug":1546,"name":1546,"fn":1547,"description":1548,"org":1656,"tags":1657,"stars":22,"repoUrl":23,"updatedAt":1559},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1658,1659,1660,1661],{"name":13,"slug":14,"type":15},{"name":1553,"slug":1554,"type":15},{"name":1539,"slug":1540,"type":15},{"name":1557,"slug":1558,"type":15},{"slug":1561,"name":1561,"fn":1562,"description":1563,"org":1663,"tags":1664,"stars":22,"repoUrl":23,"updatedAt":1577},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1665,1666,1667,1668,1669],{"name":13,"slug":14,"type":15},{"name":1539,"slug":1540,"type":15},{"name":1569,"slug":1570,"type":15},{"name":1572,"slug":1573,"type":15},{"name":1575,"slug":1576,"type":15},{"slug":1579,"name":1579,"fn":1580,"description":1581,"org":1671,"tags":1672,"stars":22,"repoUrl":23,"updatedAt":1589},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1673,1674,1675],{"name":1536,"slug":1537,"type":15},{"name":1586,"slug":1587,"type":15},{"name":20,"slug":21,"type":15},{"slug":1591,"name":1591,"fn":1592,"description":1593,"org":1677,"tags":1678,"stars":22,"repoUrl":23,"updatedAt":1608},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1679,1680,1681,1682,1683],{"name":13,"slug":14,"type":15},{"name":1598,"slug":1599,"type":15},{"name":1601,"slug":946,"type":15},{"name":1603,"slug":1604,"type":15},{"name":1606,"slug":1607,"type":15},{"slug":1610,"name":1610,"fn":1611,"description":1612,"org":1685,"tags":1686,"stars":22,"repoUrl":23,"updatedAt":1618},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1687,1688,1689],{"name":1536,"slug":1537,"type":15},{"name":1539,"slug":1540,"type":15},{"name":1557,"slug":1558,"type":15},{"slug":1620,"name":1620,"fn":1621,"description":1622,"org":1691,"tags":1692,"stars":22,"repoUrl":23,"updatedAt":1632},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1693,1694,1695],{"name":1626,"slug":1627,"type":15},{"name":1539,"slug":1540,"type":15},{"name":1630,"slug":1631,"type":15},{"slug":1697,"name":1697,"fn":1698,"description":1699,"org":1700,"tags":1701,"stars":22,"repoUrl":23,"updatedAt":1705},"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},[1702,1703,1704],{"name":13,"slug":14,"type":15},{"name":1630,"slug":1631,"type":15},{"name":1542,"slug":1543,"type":15},"2026-07-19T05:38:18.364937",{"slug":1707,"name":1707,"fn":1708,"description":1709,"org":1710,"tags":1711,"stars":22,"repoUrl":23,"updatedAt":1718},"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},[1712,1713,1716,1717],{"name":1630,"slug":1631,"type":15},{"name":1714,"slug":1715,"type":15},"Monitoring","monitoring",{"name":1542,"slug":1543,"type":15},{"name":20,"slug":21,"type":15},"2026-07-12T08:21:35.865649",{"slug":1720,"name":1720,"fn":1721,"description":1722,"org":1723,"tags":1724,"stars":22,"repoUrl":23,"updatedAt":1729},"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},[1725,1726,1727,1728],{"name":13,"slug":14,"type":15},{"name":1539,"slug":1540,"type":15},{"name":1630,"slug":1631,"type":15},{"name":1542,"slug":1543,"type":15},"2026-07-12T08:21:40.961722",{"slug":1731,"name":1731,"fn":1732,"description":1733,"org":1734,"tags":1735,"stars":22,"repoUrl":23,"updatedAt":1739},"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},[1736,1737,1738],{"name":1539,"slug":1540,"type":15},{"name":1630,"slug":1631,"type":15},{"name":1586,"slug":1587,"type":15},"2026-07-19T05:38:14.336279",144]