From 75f1247adb9303f9d8a997fa097bcb19a9d7e83c Mon Sep 17 00:00:00 2001 From: Mark Lauter <10211200+marklauter@users.noreply.github.com> Date: Sat, 5 Sep 2026 13:51:30 -0400 Subject: [PATCH] Bump xunit.v3 and runner to 4.0.0 alongside Xunit.DependencyInjection 12.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Xunit.DependencyInjection 12.0.1 targets xunit.v3 4.x, so bumping it alone resolved xunit.v3.extensibility.core 4.0.0 against the pinned 3.2.2 packages and failed restore with NU1608 (dependabot PR #42). Bump xunit.v3 and xunit.runner.visualstudio to 4.0.0 with it. xunit.v3 4.x makes the Microsoft.Testing.Platform runner the default entry point, which drops the VSTest target coverlet.msbuild hooks — `dotnet test` then errors out and no cobertura report is written, taking the coverage ratchet and the CI coverage artifact with it. Set IsTestingPlatformApplication=false for test projects to keep the VSTest entry point via xunit.runner.visualstudio 4.0.0. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_018oQ2H2BWF3GVGTR9udJTRG --- Directory.Build.props | 2 ++ Directory.Packages.props | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 0134e7a..a586422 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -26,6 +26,8 @@ CA1515 - xUnit requires public test classes, so "make public types internal" does not apply. CA1812 - internal test fixture types (PoolItem, PoolClient) are activated reflectively by the DI container, so the analyzer cannot see construction. --> $(NoWarn);CA1707;IDE1006;IDE0079;CA1515;CA1812 + + false true cobertura diff --git a/Directory.Packages.props b/Directory.Packages.props index cd79dcc..64a8120 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -18,9 +18,9 @@ - - - + + +