Repository navigation
[15.x] Run unit tests on .NET Framework in CI - #4678
Merged
Merged
Conversation
(cherry picked from commit a06fbb8)
(cherry picked from commit 3667a2b)
Adapted from 005a706 on main. The UnitTests net471 target only builds when IsWindows is defined, which the previous commits add. The AutoMapper net462 target is removed: it never built, doesn't compile, and 15.x packages on Ubuntu, so .NET Framework users get the netstandard2.0 build, which is what the net471 tests now run against. IntegrationTests drops .NET Framework, as on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 3c46449)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 6, 2026
This was referenced Nov 13, 2026
This was referenced Nov 24, 2026
Open
This was referenced Dec 1, 2026
Merged
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.
The UnitTests project adds a .NET Framework target only when
IsWindowsis true, but 15.x never definedIsWindows. Windows CI has silently tested only net9.0, and the net462 targets never built. They also didn't compile.Backports main's .NET Framework test setup:
IsWindows/IsMacinDirectory.Build.props. Only that part is taken; itsci.ymlartifact step is left out.Different from main: the AutoMapper project gets no .NET Framework target. Its old net462 target is removed; it never built and doesn't compile. 15.x packs on Ubuntu, so .NET Framework users get the netstandard2.0 build, and the net471 tests now run against exactly that build. The package contents don't change.
Verified on Windows 11 with CI's own steps (
dotnet build -c Release, thendotnet test --no-buildon UnitTests and DI.Tests):The two net471-only gaps are
IReadOnlySettests that don't exist on .NET Framework. The branch still builds on macOS.🤖 Generated with Claude Code