Repository navigation
build: target net10.0 and net11.0 on SDK 11 - #579
Merged
Merged
Conversation
.NET 11 is GA and both runtimes reach end of support on the same day, so the libraries ship for both rather than moving the floor. A project that sets TargetFramework itself under a props file that sets TargetFrameworks builds only one, so the root property is replaced rather than extended. The AOT smoke harness publishes both TFMs (a multi-targeted Exe needs -f or fails with NETSDK1129). The benchmark harness stays on net10.0 so its numbers remain comparable across history.
The 11.0.0 package's net10.0 group pulls System.Formats.Asn1 11.0.0 into a net10.0 consumer, while its net11.0 group takes no dependency. Keep the net10.0 build on the 10.0.14 pin and give net11.0 the 11.0.0 package.
Both commands now meet a multi-targeted project. dotnet publish of a multi-targeted Exe without -f fails with NETSDK1129, and the fuzz job would otherwise run the same parser inputs twice inside a 180-minute budget. The fuzz job also names the net10.0 runtime explicitly, because the 11.0 SDK that global.json pins does not carry it. Dependabot is told not to propose Pkcs 11 for the net10.0 line, and the docs build says why docfx stays on net10.0.
Each test project now runs once per target framework, so the per-process log name gains the framework (<base>.<tfm>.<pid>). The label comes from AppContext.TargetFrameworkName, the framework the test executable was built for, not Environment.Version, which is the runtime after roll-forward. That lets the CI floor step fail a framework whose runs logged nothing instead of passing on the other framework's files.
The suite now runs on net10.0 and net11.0. The Test step uses --results-directory-layout per-module so every report lands in <project>/<tfm>_<arch>/; coverlet.MTP names reports only by write timestamp, so the flat layout cannot say which run produced a file. The coverage gate walks the expected 7 projects x 2 frameworks and requires exactly one report in each, fails on any report elsewhere (which is also what an ignored layout option looks like), checks each report against the assemblies its project must instrument, then applies the existing name, valid-line and floor checks per framework and on the merge. The oracle floor step loops over both frameworks and counts a framework with no log files as zero. The job timeout is raised to an interim 60 minutes until a CI run measures the Test step, and the net10.0 runtime is requested explicitly.
Update the README, the package READMEs, the docs index, architecture notes and CONTRIBUTING for the 11.0 SDK pin, the second target framework, the .NET 10 runtime the net10.0 tests need, and the per-module coverage command.
With two target frameworks, dotnet pack runs in the outer build, which has no default-item globs, so None Update="README.md" matched nothing and every package failed with NU5039. Remove-then-Include gives the same result in the outer and inner evaluations. Verified by packing all eight projects and listing each nupkg.
Covers the dual target, the Pkcs split, the native CLI binary staying on net10.0, the per-framework CI gates, and the pack fix the second target framework exposed.
LangVersion=latest follows the SDK: on SDK 11.0.100 it compiled both target frameworks as C# 15 where SDK 10.0.404 gave 14.0. A feature that needs no new runtime type would then compile for net10.0 and give net10.0 consumers on SDK 10 a surface built for C# 15. The language version now moves only by an explicit, reviewed change.
Apply the 84% threshold to each target framework as well as the merge, so a drop confined to one framework is not averaged away. Add a Pack-time check that the net10.0 group of the Signing nuspec names Pkcs 10.x, so a tool rewriting both Directory.Packages.props entries cannot put the 11.0 package into a net10.0 consumer unnoticed. Correct comments that overstated or mis-explained the merge, the fuzz budget, Dependabot's behaviour and the log file name.
The Cli package ships under tools/, not lib/. State the support policy and the restore rule precisely, record the C# 14 pin, fold the pack fix into the Changed entry, and drop a process detail from the changelog.
The per-framework coverage threshold now appends to the collected problems and the gate exits once, so a run that drops both frameworks reports both and the merge instead of stopping at the first. The Pkcs check parses the nuspec with ElementTree (namespace-aware), reports a self-closing or missing group by its framework, and judges a NuGet range by its lower bound. Comments that misdescribed the merge, the measured figures and the oracle floors are corrected and the long lines this branch added are wrapped.
The first CI run on both frameworks took 29 minutes, 23 of them in the Test step, so 60 stays. It logged the same oracle counts under net10.0 and net11.0. The qpdf floor of 36 was 63% of the measured 57, so the verapdf and qpdf floors are now 90% of 311 and 57 per the stated rule.
# Conflicts: # CHANGELOG.md
This was referenced Nov 18, 2026
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.
Summary
Moves the repository to the .NET 11 SDK and multi-targets every project for
net10.0andnet11.0.Both runtimes reach end of support on 2028-11-14. This supersedes #573 (the SDK-only bump).
global.jsonpins SDK 11.0.100 (latest patch);Directory.Build.propssetsTargetFrameworkstonet10.0;net11.0and pinsLangVersionto 14 (latestfollows the SDK and compiled bothframeworks as C# 15 on SDK 11.0.100).
VellumPdf.SigningtakesSystem.Security.Cryptography.Pkcs10.0.14 onnet10.0and 11.0.0 onnet11.0. A Pack-time CI check fails if the net10.0 group ever names a non-10.x version.lib/net10.0andlib/net11.0; theVellumPdf.Clitool packagecarries
tools/net10.0/anyandtools/net11.0/any; snupkgs are produced for all eight.--results-directory-layout per-module(14 expected reports, one per project and framework), theoracle floors are checked per framework, and the 84% threshold applies to each framework and to the
merge. The oracle log is named
<base>.<tfm>.<pid>.eng/aot/run-aot-smoke.ps1publishes both frameworks. The benchmark harness stays onnet10.0.dotnet packfailed with NU5039 on a multi-targeted project (theNone Updatefor the READMEmatches nothing in the outer build).
src/Directory.Build.targetsnow removes and re-includes it.The failure existed only on this branch; origin/main packs.
vellum-preflightbinary is published fromnet10.0(release.ymlgets-f net10.0;a multi-targeted Exe without
-ffails with NETSDK1129).release.ymlcannot be exercisedwithout a tag; the same command was run locally for win-x64.
Maintainer decisions needed
net10.0(LTS). Alternative isnet11.0.2028-11-14". That is a commitment, not a measurement; confirm or reword it.
to keep
timeout-minutes: 60.What the figures below are
Every test figure is a local Windows measurement taken on 2026-11-18: Release, SDK 11.0.100,
dotnet test VellumPdf.slnx -c Release --no-build --max-parallel-test-modules 2 --results-directory-layout per-module -- --coverlet, process priority BelowNormal,REQUIRE_ORACLES=1, veraPDF 1.30.2, qpdf12.4.1, poppler from MSYS2. Nothing here was measured on the Linux CI runner.
(12 per framework, all in Reader.Tests' xref-reconstruction damage tests: each skips by its own
logic when a damage mode cannot apply to a fixture, such as a 3-digit startxref too short for M1
or a truncation that leaves an earlier revision intact; none is a missing oracle). Wall time
13m56s.
Barcodes 1051, Conformance 1325, Kernel 1525, Reader 1857 (plus the 12 skipped).
.verifiedsnapshots, including the byte-level PDF goldens, passed onnet11.0with noper-framework snapshot files.
PaginationDepthTestsstack-depth probes fail on both frameworks whenPlaceRenderer'sPartial branch is mutated to recurse (
Actual: 201). That mutation is an approximation of thefix(layout): loop instead of recursing, so deep documents render #461 revert, which no longer applies cleanly.
net10.0andnet11.0on win-x64.vellum-preflightis the onlyassembly whose valid-line count differs by framework (3092 on net10.0, 2640 on net11.0, 4971
merged) because the JSON source generator writes under
obj/Release/<tfm>/; its merged rate(83.0%) falls between the per-framework rates (84.0%, 81.3%).
pdftotext 8, pdfsig 2. The first CI run (ubuntu-24.04) logged the same counts under both
frameworks. The floors are 90% of those, rounded down: 279 / 121 / 123 / 51 / 7 / 1. Only verapdf
(was 273) and qpdf (was 36, 63% of 57) changed.
Not yet measured
91.3% merged; Pack check step success), but only on the unmutated tree. The mutations below ran
locally: the gate
passed on a real coverage directory and failed on each of: a deleted report, an emptied report, a
report truncated to one package, a stray flat report, and one framework with half its hits
zeroed (net11.0 at 66.0%, net10.0 at 91.7%), and both frameworks at 66% (all three errors print in
one run). The mutation that separates the new per-framework threshold from the old gate: net11.0
lines with number % 8 == 0 zeroed gives net11.0 80.3%, which fails the per-framework threshold,
while the merged figure is 90.9% and the previous gate passed. The Pack check passes on the real Signing nuspec
(10.0.14 / 11.0.0) and fails with the net10.0 entry set to 11.0.0.
needs reading against
Directory.Packages.propsbefore merging.Test plan
dotnet format --verify-no-changes, clean-room check-f net10.0dotnet pack, nupkg and snupkg listingsPack check