GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — dotnet 10 build cleanup by FreeAndNil · Pull Request #305 · apache/logging-log4net Conversation
Contributor
WhyThe sources already use C# 14 (the This PR makes the required toolchain explicit and cleans up the surrounding build, which turned up The shipped surface is unchanged. Changes
Mono is no longer needed to build net4x
net462 tests are now Windows-onlyVSTest hosts net4x tests through This also fixes the Run CI on the latest runner imagesmacos-14 and ubuntu-22.04 are superseded by macos-latest (macOS 26) and ubuntu-latest (Ubuntu 24.04). Release scripts continued after failed steps
This was not theoretical: TelnetAppender test noise
VerificationOn Linux (Ubuntu-based, .NET SDK 10.0.110, self-built Mono present but unused by the build):
For reviewers to weighNothing tests on the .NET 8 runtime any more. The MCR image reference is fully qualified, so it needs no registry configuration and no login.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
FreeAndNil
added a commit
that referenced
this pull request
macos-14 and ubuntu-22.04 are superseded by macos-latest (macOS 26) and ubuntu-latest (Ubuntu 24.04). Neither new image ships Mono, so net4x tests cannot run there - which is why log4net.Tests restricts net462 to Windows. Correct the reason given in BUILDING.md and the changelog.
FreeAndNil
added a commit
that referenced
this pull request
- Utils.IsMono and Utils.InconclusiveOnMono are gone, along with all 15 call sites. The net462 tests run only on Windows now and the net10.0 tests run on .NET 10, so the guard could never fire. - SystemInfo.IsMono in the library is deliberately untouched: it detects the runtime executing log4net, which can still be Mono.
FreeAndNil
force-pushed
the
Feature/305-dotnet-10-build-cleanup
branch
from
87bb3d2 to
68b9a4d
Compare
FreeAndNil
added a commit
that referenced
this pull request
Utils.IsMono and Utils.InconclusiveOnMono are gone, along with all 15 call sites. The net462 tests run only on Windows now and the net10.0 tests run on .NET 10, so the guard could never fire. SystemInfo.IsMono in the library is deliberately untouched: it detects the runtime executing log4net, which can still be Mono.
FreeAndNil
force-pushed
the
Feature/305-dotnet-10-build-cleanup
branch
from
68b9a4d to
6dee635
Compare
The sources use C# 14, so a .NET 10 SDK is now required. Test and integration-test projects move from net8.0 to net10.0; the shipped log4net assembly keeps net462;netstandard2.0. Remove MonoForFramework.targets and its FrameworkPathOverride handling. The net462/net472 targets compile against the Microsoft.NETFramework.ReferenceAssemblies packages that the .NET SDK already references implicitly, so Mono is only needed to run .NET Framework assemblies - not to build them (and mono is now deprecated by Microsoft). Replace ubuntu:20.04 + dotnet-install.sh with mcr.microsoft.com/dotnet/sdk:10.0-noble - Ubuntu 24.04 with the SDK preinstalled. Drops the Mono packages, the apt-key/stable-focal repo, wget, tree and the DOTNET_ROOT/PATH handling, leaving no apt layer at all. Ubuntu 20.04 left standard support in April 2025. $ErrorActionPreference does not apply to native commands, so a failing dotnet, git, zip, gpg or mvnw was ignored and the artifacts were packaged, signed and tagged anyway. Both scripts now set $PSNativeCommandUseErrorActionPreference (PowerShell 7.3+). Also fix build-preview.ps1 outside Windows, where the artifact paths handed to gpg used backslashes. PackageReadmeFile requires the readme at the package root, so packing README.md without a PackagePath failed with NU5039. Matches the pattern already used in log4net.csproj. Dispose disposed the TcpClient while the reader was blocked in stream.Read, so teardown always aborted the socket and dumped an IOException with a stack trace, even on a passing run. Shut the socket down first, so the read returns 0 and the loop ends normally, and only report exceptions that arrive before disposal. Progress chatter removed; the test now prints nothing unless it fails. Two things this fixes beyond the noise: - The cancellation token never actually stopped the loop. The check ran only after a successful read, so the reader could only be broken by disposing the socket under it. Now Shutdown(SocketShutdown.Both) ends the stream and the loop exits through its normal condition. - Diagnostics are preserved for real failures. log is still wired to TestContext.Out.WriteLine, gated on !_disposing - so a genuine client error still surfaces, and Assert.Fail on timeout still reports what was received. macos-14 and ubuntu-22.04 are superseded by macos-latest (macOS 26) and ubuntu-latest (Ubuntu 24.04). Neither new image ships Mono, so net4x tests cannot run there - which is why log4net.Tests restricts net462 to Windows. Correct the reason given in BUILDING.md and the changelog. Utils.IsMono and Utils.InconclusiveOnMono are gone, along with all 15 call sites. The net462 tests run only on Windows now and the net10.0 tests run on .NET 10, so the guard could never fire. SystemInfo.IsMono in the library is deliberately untouched: it detects the runtime executing log4net, which can still be Mono.
FreeAndNil
force-pushed
the
Feature/305-dotnet-10-build-cleanup
branch
from
6dee635 to
98742f2
Compare
fluffynuts
reviewed
Uh oh!
There was an error while loading. Please reload this page.
fluffynuts
approved these changes
Uh oh!
There was an error while loading. Please reload this page.
This was referenced
This was referenced
Merged
This was referenced
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | ||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |