Update xunit.v3 to 4.0.0 and enable full parallelization - #1285
Merged
Merged
Conversation
Upgrade xunit.v3 and xunit.runner.visualstudio to 4.0.0 (analyzers 2.0.0
comes in transitively).
xunit.v3 4.0.0 drops the VSTest bridge and defaults to Microsoft Testing
Platform (MTP) v2. On the .NET 10 SDK the old VSTest path for MTP is gone,
so a few adjustments are required to keep `dotnet test` working:
- global.json: opt into the MTP mode of `dotnet test`
("test": { "runner": "Microsoft.Testing.Platform" }).
- Test project: set OutputType=Exe (MTP test projects must be executable)
and UseMicrosoftTestingPlatform=true so Meziantou.NET.Sdk.Test provisions
the MTP extensions instead of Microsoft.NET.Test.Sdk.
Also enable xunit v3 4.0.0 full test parallelization via
[assembly: Parallelization(Mode = ParallelMode.All)].
All 3605 tests pass under `dotnet test`.
Meziantou.NET.Sdk.Test 1.0.143 handles the xunit v3 4.0.0 / MTP setup automatically, so the manual configuration can be removed: - Implicit xunit.v3.mtp-v2 4.0.0 reference when no test framework is referenced -> remove the explicit xunit.v3 / xunit.runner.visualstudio package references. - OutputType=Exe and MTP runner are set by the SDK -> remove OutputType and UseMicrosoftTestingPlatform from the project. - Full parallelization attribute is source-generated by the SDK ([assembly: Xunit.v3.Parallelization(Mode = ParallelMode.All)]) -> remove the manual AssemblyInfo.cs. The global.json "test.runner" MTP opt-in is kept. All 3605 tests pass under `dotnet test`.
The NuGet package icon is now provided automatically by Meziantou.NET.Sdk (it packs its own icon.png as PackageIcon for Meziantou projects). The repository-root icon.png is byte-identical to the SDK's and is not referenced by any project or file, so it is redundant.
This was referenced Aug 15, 2026
IhateTrains
pushed a commit
to ParadoxGameConverters/ImperatorToCK3
that referenced
this pull request
Aug 16, 2026
Updated [Meziantou.Analyzer](https://github.com/meziantou/Meziantou.Analyzer) from 3.0.151 to 3.0.157. <details> <summary>Release notes</summary> _Sourced from [Meziantou.Analyzer's releases](https://github.com/meziantou/Meziantou.Analyzer/releases)._ ## 3.0.157 NuGet package: <https://www.nuget.org/packages/Meziantou.Analyzer/3.0.157> ## What's Changed * Update xunit.v3 to 4.0.0 and enable full parallelization by @meziantou in meziantou/Meziantou.Analyzer#1285 **Full Changelog**: meziantou/Meziantou.Analyzer@3.0.156...3.0.157 ## 3.0.156 NuGet package: <https://www.nuget.org/packages/Meziantou.Analyzer/3.0.156> ## What's Changed * Add MA0214/MA0215 for await vs. return-task style by @meziantou in meziantou/Meziantou.Analyzer#1282 **Full Changelog**: meziantou/Meziantou.Analyzer@3.0.155...3.0.156 ## 3.0.155 NuGet package: <https://www.nuget.org/packages/Meziantou.Analyzer/3.0.155> ## What's Changed * Add MA0002.report_only_non_ordinal option by @meziantou in meziantou/Meziantou.Analyzer#1283 **Full Changelog**: meziantou/Meziantou.Analyzer@3.0.154...3.0.155 ## 3.0.154 NuGet package: <https://www.nuget.org/packages/Meziantou.Analyzer/3.0.154> ## What's Changed * chore(deps): update all dependencies by @renovate[bot] in meziantou/Meziantou.Analyzer#1261 **Full Changelog**: meziantou/Meziantou.Analyzer@3.0.153...3.0.154 ## 3.0.153 NuGet package: <https://www.nuget.org/packages/Meziantou.Analyzer/3.0.153> ## What's Changed * Exclude Meziantou assertions from string comparison analyzers by @meziantou in meziantou/Meziantou.Analyzer#1281 **Full Changelog**: meziantou/Meziantou.Analyzer@3.0.152...3.0.153 ## 3.0.152 NuGet package: <https://www.nuget.org/packages/Meziantou.Analyzer/3.0.152> ## What's Changed * Exclude HRESULT.ThrowOnFailure from MA0060 diagnostics by @meziantou in meziantou/Meziantou.Analyzer#1279 **Full Changelog**: meziantou/Meziantou.Analyzer@3.0.151...3.0.152 Commits viewable in [compare view](meziantou/Meziantou.Analyzer@3.0.151...3.0.157). </details> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This was referenced Aug 16, 2026
Closed
Closed
This was referenced Sep 14, 2026
Bump Meziantou.Analyzer from 3.0.139 to 3.0.257
Analogy-LogViewer/Analogy.LogViewer.NLog.Targets#571
Closed
Closed
Bump Meziantou.Analyzer from 3.0.139 to 3.0.257
Analogy-LogViewer/Analogy.AspNetCore.LogProvider#555
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
xunit.analyzers2.0.0 transitively) and Meziantou.NET.Sdk 1.0.143.How
xunit.v3 4.0.0 drops the VSTest bridge and defaults to Microsoft Testing Platform (MTP) v2. On the .NET 10 SDK the old VSTest path for MTP is gone, so
dotnet test(used by CI) needs the MTP mode.Meziantou.NET.Sdk.Test1.0.143 does the heavy lifting automatically for the test project:xunit.v3.mtp-v24.0.0 reference when no test framework is referenced.OutputType=Exe(MTP test projects must be executable) and the MTP runner.[assembly: Xunit.v3.Parallelization(Mode = Xunit.Sdk.ParallelMode.All)]for full parallelization.As a result the test project needs no xunit package references, no
OutputType, noUseMicrosoftTestingPlatform, and no manual parallelization attribute.The only remaining manual bit is
global.json, which optsdotnet testinto MTP mode on the .NET 10 SDK:Notes for reviewers
global.jsonedit is normally discouraged byAGENTS.md, but thetest.runneropt-in is the only supported way to run these MTP tests viadotnet teston the .NET 10 SDK (and the SDK version bump also lives inglobal.json).dotnet test --filteruses xunit's query filter language (/assembly/namespace/class/method), not the VSTestFullyQualifiedName~syntax. CI runs unfiltered so it is unaffected.Testing
roslyn4.2).dotnet testfull suite: 3605 passed, 0 failed, 0 skipped, with full parallelization enabled.