Skip to content

Version 11.0.1: every package dependency updated, and the source generator built for Roslyn 5.12 too - #328

Merged
electricessence merged 9 commits into
masterfrom
chore/package-updates-11.0.1
Dec 6, 2026
Merged

electricessence merged 9 commits into
masterfrom
chore/package-updates-11.0.1

Conversation

@electricessence

@electricessence electricessence commented Dec 6, 2026 •

Copy link
Copy Markdown
Collaborator

Version 11.0.1 is a dependency update: every package of the repository is at the newest version that supports the target framework it is built for, the versions live in one file (Directory.Packages.props, central package management), and the source generator ships built for Roslyn 5.12 as well as Roslyn 4.14. The public API of Core, Channel, Dataflow and MSSqlClient and what they do are unchanged.

Shipped packages

Package Used by 11.0.0 11.0.1
Microsoft.Data.SqlClient MSSqlClient (net472, net10.0, net11.0) 7.1.1 8.0.0
System.Security.Cryptography.Pkcs MSSqlClient 10.0.14 11.0.0
System.Linq.AsyncEnumerable, System.Threading.Channels, System.Collections.Immutable Core (netstandard2.0, netstandard2.1) 10.0.14 11.0.0 on netstandard2.0, 10.0.15 on netstandard2.1
Microsoft.Bcl.AsyncInterfaces Core (netstandard2.0) 10.0.14 11.0.0
System.Threading.Tasks.Dataflow Dataflow 10.0.14 11.0.0 on every target but netstandard2.1, 10.0.15 on netstandard2.1
System.Memory, System.Threading.Tasks.Extensions Core (netstandard2.0) 4.6.3 4.6.3 (newest)

Per-target splits, and why.

  • netstandard2.1 stays on System. 10.0.15.* .NET 8 and .NET 9 projects take the netstandard2.1 build, and the 11.0.0 System.* packages carry build targets that warn for net8.0/net9.0 projects ("doesn't support net8.0"). 10.0.15 is the newest 10.x. The condition is one Condition="'$(TargetFramework)' == 'netstandard2.1'" pair per package in Directory.Packages.props, with the reason in a comment.
  • Microsoft.Data.Sqlite is 10.0.15 on net472 only (the package consumer test project): 11.0.0 supports .NET 10 and later only. Everything else is 11.0.0.
  • Microsoft.Data.SqlClient 8.0.0 ships net462 + net10.0 (+ a netstandard2.0 reference assembly), so MSSqlClient's net472, net10.0 and net11.0 all resolve it. A .NET 8/9 project could not use MSSqlClient before (its targets are net472, net10.0, net11.0) and cannot now.

SqlClient 8.0.0 changes that can reach MSSqlClient users (all in the release notes section): .NET 10 minimum on modern .NET; MultiSubnetFailover on by default; UseOverallConnectTimeoutForPoolWait on by default (an open that waits for the pool can time out sooner); TransparentNetworkIPResolution off by default on .NET Framework; Azure attestation moved to Microsoft.Data.SqlClient.Extensions.Azure; SQL Server 2005 and Type System Version removed; SqlParameterCollection.RemoveAt exception type; SQLCLIENT001 warning for mixed family versions. Encrypt / TrustServerCertificate defaults are not listed as changed in its release notes.

Source generator

Core packs the generator twice from the same sources: analyzers/dotnet/roslyn4.14/cs (floor, built against Microsoft.CodeAnalysis.CSharp 4.14.0, unchanged) and new analyzers/dotnet/roslyn5.12/cs (new project Source/Generator.Roslyn5, 5.12.0). NuGet gives a compiler the highest folder it supports; on the .NET 11 SDK of global.json the consumer gets the 5.12 build (checked, see CI below). Generator.Tests runs on either build: -p:OdxGeneratorRoslyn=5.12 (any other value is refused). Microsoft.CodeAnalysis.Analyzers goes 3.11.0 → 5.12.0 for both generator projects (build-only, PrivateAssets=all, 0 new diagnostics).

Build and test tools (not shipped)

Microsoft.SourceLink.GitHub 10.0.403 → 11.0.100; Microsoft.CodeAnalysis.PublicApiAnalyzers 3.3.4 → 5.6.0; Microsoft.NET.Test.Sdk 18.11.0 → 18.12.0; xunit.v3 3.2.2 → 4.0.4 (xunit.v3.assert / extensibility.core too); xunit.runner.visualstudio 4.0.1 → 4.0.2; coverlet.collector 10.1.0 → 10.1.1; Microsoft.Data.Sqlite 10.0.14 → 11.0.0 (10.0.15 on net472); Microsoft.CodeAnalysis.CSharp (Core.Tests) 5.3.0 → 5.12.0; CommunityToolkit.Mvvm 8.4.0 → 8.4.2; Dapper 2.1.89 → 2.1.100 (benchmarks; published benchmark pages still name the measured 2.1.89 run, which is history, not re-timed); docfx 2.81.0 → 2.82.0. Already newest: BenchmarkDotNet 0.15.8, Dapper.AOT 1.1.0, FastExpressionCompiler 6.0.0, ZLinq 1.6.1, NSubstitute 6.2.0, EF Core and Mvc.Testing 11.0.0. SDK band 11.0.100 is the newest installed; GitHub Actions majors are checkout v7, setup-dotnet v6, upload-artifact v7 (unchanged; none looked stale).

Things that are not a plain version bump

  • xunit.v3 4.x needs Microsoft.Testing.Platform on the .NET 10+ SDK (the VSTest mode of dotnet test is refused). global.json selects the runner; every dotnet test in tests.yml is now dotnet test --project <path> --report-xunit-trx --report-xunit-trx-filename <name>.trx --results-directory <dir>. The consumer tests run once per target framework (a single run wrote each TRX twice).
  • [assembly: Xunit.v3.Parallelization(Mode = Xunit.Sdk.ParallelMode.None)] in Generator.Tests and PackageConsumer.Tests keeps these two assemblies serial (the generator counters are process-wide, so each test reads its own deltas), as the line above it in each file says.
  • Suppressions: xUnit1069 in Core.Tests (NoWarn, comment beside it); MVVMTK0042 in ParityTests.Partial.cs (the toolkit models use the field form on purpose). Five xUnit2033 findings were fixed in the tests (same checks, return value used).
  • PublicAPI.Shipped.txt: +47 lines, the compiler-synthesized members (Equals, GetHashCode, ToString, ==, !=) of eight record struct types (ColumnOrdinal, ExpressiveCommandBase.Param, MappedQuery<T>, MappedQueryWithSkip<T>, MappedQueryWithTake<T>, MappedReader<T>, MappedCommand<T>, MappedTable<T>) that PublicApiAnalyzers 5.6.0 now tracks (RS0016 without them). The members exist in 11.0.0 already: this PR changes no .cs file under Source/, so no public member is added or removed.
  • Pkcs pin: SqlClient 7.1.1 brought Pkcs 9.0.18 (NU1902/NU1903 advisories), which is why MSSqlClient and the projects that use SqlClient pin System.Security.Cryptography.Pkcs. SqlClient 8.0.0 depends on Pkcs 10.0.15 (net462, net10.0, netstandard2.0), and dotnet list package --vulnerable --include-transitive on a project that references SqlClient 8.0.0 alone reports nothing. The pin no longer fixes a vulnerability; it stays so these projects take the newest Pkcs (11.0.0), and the comment in Directory.Packages.props says so.
  • Not changed on purpose: historical docs and benchmark pages that name SqlClient 7.1.1 (they say what that run measured); Source/SqlClient (out of the build, 4.9.1 stays).

Evidence (tree efb231d9, base c00b6943 = origin/master)

  • Commit 1 (CPM) is output-neutral: the nuspec dependency groups of the four packages packed from it were compared with the 11.0.0 release files entry by entry; identical.
  • Gate (Release and Debug, no incremental): 0 warnings, 0 errors, dotnet format style + analyzers at info on every project 0 findings (after the test fixes above), docfx 0 warnings, samples 267/267, Benchmarks build, Visual Studio MSBuild on the slnx 0 errors, Roslyn scan 0 actionable (28 TFM-specific IDE0370/IDE0390 reports, which cannot be fixed on every target), Roslynator 0, style scan clean, leak check clean on every commit.
  • Tests, SQL Server LocalDB required (ODX_REQUIRE_SQL=1): Core.Tests Release 16279 passed, Debug 16258 passed (same as 11.0.0; xunit 4 lists the Explicit probe tests as skipped, 4 in Release, 20 in Debug, which VSTest did not list; no passing test lost); 289 LocalDB/SQL tests pass in each configuration. LegacyCompiler net472 46, net8.0 46, net10.0 46, net11.0 48, all pass. Generator.Tests 189/189 on the 4.14 build and 189/189 on the 5.12 build.
  • Packed 11.0.1 files (verification pack, SHA-256 recorded, not the publish pack): Core, MSSqlClient, Channel and Dataflow, each with README, logo, SourceLink commit, symbols; Core holds both analyzer folders and the build targets. Consumer tests on those exact files (restored files hashed against the pack): variants core, mssqlclient, off, csharp12, each on net472 and net11.0, 3 tests per framework, 0 warnings, all pass. A Channel + Dataflow consumer on net472 and net11.0: 8/8 pass.
  • dotnet list package --outdated per project and target: nothing direct is older than the newest version for its target; what remains is deliberate (netstandard2.1 System.* 10.0.15, net472 Sqlite 10.0.15, the 4.14 generator's Roslyn floor) or transitive and owned by another package (SqlClient 8.0.0's own 10.0.15 dependencies, test-platform dependencies).
  • Review: five Haiku reviewers (packages and CPM, generator packing, CI and runner, release-notes accuracy, adversarial) and arbitration by me; no blocking finding; all should-fix items applied (listed in the last commit).

Not covered

  • tests.yml has not run on GitHub: the new command forms were exercised locally, the workflow itself runs for the first time on this PR.
  • The roslyn4.14 folder is covered by Generator.Tests and the LegacyCompiler tests, not by a packed consumer on an older SDK.
  • Release notes claims about SqlClient 8.0.0 come from its release notes, not from a run against a database with those settings.

🤖 Generated with Claude Code

electricessence and others added 9 commits December 5, 2026 15:44
…ge management)

The versions of all packages now live in one file; a project names the package and keeps its PrivateAssets / IncludeAssets. No version changes.
Two exceptions stay beside the reference that needs them: Core.Tests builds against Roslyn 5.3.0 (the generator and its tests stay on 4.14.0) and
the documentation samples use Microsoft.Data.Sqlite 11.0.0 (EF Core's Sqlite provider needs it). The package under test in the consumer project
takes its version from the command line, as a PackageVersion item in that project.

No change to what is packed: the four packages (Core, MSSqlClient, Channel, Dataflow) were packed from this tree on top of c00b694 and compared
entry by entry (SHA-256) with the 11.0.0 release files; every dll, targets file, pdb and dependency group is identical. The only difference is
the nuspec's repository branch attribute (this tree is on a branch; the release was packed detached).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…em.* 11.0.0 (10.0.15 on netstandard2.1)

Each target gets the newest version its consumers can use:
- Microsoft.Data.SqlClient 7.1.1 -> 8.0.0 (MSSqlClient: net472 resolves its net462 build, net10.0 and net11.0 its net10.0 build).
- System.Security.Cryptography.Pkcs 10.0.14 -> 11.0.0, Microsoft.Bcl.AsyncInterfaces 10.0.14 -> 11.0.0.
- System.Linq.AsyncEnumerable, System.Threading.Channels, System.Collections.Immutable, System.Threading.Tasks.Dataflow: 10.0.14 -> 11.0.0 on netstandard2.0
  (.NET Framework consumers) and the modern targets, and 10.0.14 -> 10.0.15 on netstandard2.1. The 11.0.0 packages warn at build time on a .NET 8 or .NET 9
  project ("doesn't support net8.0"), and those are the netstandard2.1 build's consumers.
The comment on Core's netstandard references no longer says the floors stay low on purpose.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Microsoft.SourceLink.GitHub 10.0.403 -> 11.0.100; Microsoft.CodeAnalysis.PublicApiAnalyzers 3.3.4 -> 5.6.0; Microsoft.NET.Test.Sdk 18.11.0 -> 18.12.0;
xunit.runner.visualstudio 4.0.1 -> 4.0.2; coverlet.collector 10.1.0 -> 10.1.1; Microsoft.Data.Sqlite 10.0.14 -> 11.0.0 (the samples already used it, so
their override goes); CommunityToolkit.Mvvm 8.4.0 -> 8.4.2; Dapper 2.1.89 -> 2.1.100; the Roslyn the Core tests build against 5.3.0 -> 5.12.0.

PublicApiAnalyzers 5.6.0 reports the members the compiler writes for a record struct (Equals, GetHashCode, ToString, == and !=) as undeclared public
API. They have been part of the public API since 11.0.0, so the 47 of them (ColumnOrdinal, ExpressiveCommandBase.Param, MappedQuery, MappedQueryWithSkip,
MappedQueryWithTake, MappedTable, MappedReader, MappedCommand) go into Core's PublicAPI.Shipped.txt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…or the net472 consumer project

xunit.v3, xunit.v3.assert and xunit.v3.extensibility.core 3.2.2 -> 4.0.4. The two assemblies that switch test parallelization off use the
new attribute (Xunit.v3.Parallelization with Mode = ParallelMode.None), because CollectionBehavior.DisableTestParallelization is obsolete in 4.x.
xUnit1069 (a test with a Timeout that does not reference TestContext.Current.CancellationToken in its own body) is silenced in Core.Tests, which reads
the token through a file-level Ct property the analyzer does not follow, or bounds each wait itself; the reason sits beside the NoWarn.

Microsoft.Data.Sqlite 11.0.0 supports .NET 10 and later only (NU1202 on net472), so the package consumer project, which also builds for net472,
takes 10.0.15 there; every other target takes 11.0.0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…oslyn 5.12

Core packs the generator under analyzers/dotnet/roslyn4.14/cs (older SDKs and Visual Studio, kept as the floor) and now also under
analyzers/dotnet/roslyn5.12/cs. NuGet gives a consumer the highest folder its compiler supports, so SDK 11 loads the Roslyn 5.12 build.
The new Source/Generator.Roslyn5 project compiles the same sources against Microsoft.CodeAnalysis.CSharp 5.12.0.

Generator.Tests runs against either build (-p:OdxGeneratorRoslyn=5.12), the LegacyCompiler tests keep covering the old compilers, and the
generator job of tests.yml runs both builds and checks that the Core package holds both folders. The CI test steps use the
Microsoft.Testing.Platform command line (--project, --report-xunit-trx) that xunit.v3 4.x needs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…fx 2.82.0, release notes

xunit.v3 4.x on the .NET 10 and later SDKs refuses the VSTest mode of dotnet test, so global.json selects the Microsoft.Testing.Platform
runner (dotnet test with --project) next to the 11.0.100 SDK band. The consumer project's usage note follows.
docfx 2.81.0 -> 2.82.0 (the newest). VersionPrefix 11.0.0 -> 11.0.1, and the release notes have a Version 11.0.1 section: the dependency
table with every per-target split and its reason, what a consumer sees (SqlClient 8.0.0), the second generator build, and the tools.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… the tests

xUnit2033: five asserts now use the value Assert.Single and Assert.IsType return instead of reading it again (same checks).
MVVMTK0042: the generator tests' toolkit models keep the field form on purpose; the rule is suppressed there, with the reason beside it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… is the one NuGet selects; release notes say only what the repository shows

CI: the package consumer tests run once per target framework (a single run wrote each variant's TRX twice, the second over the first); the
Roslyn 5.12 generator test results are uploaded; the generator job checks that the analyzer NuGet resolves for the consumer is the roslyn5.12 build.
Generator.Roslyn5 compiles the sources of Source/Generator recursively. Generator.Tests refuses an OdxGeneratorRoslyn value other than 5.12 or empty.
Release notes: a blank line before the 11.0.0 heading, the exception to "newest" stated beside it, the tools list marked as the main ones.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…vulnerable one

SqlClient 8.0.0 depends on System.Security.Cryptography.Pkcs 10.0.15 (net462, net10.0, netstandard2.0), which has no advisory
(`dotnet list package --vulnerable --include-transitive` on a project that references SqlClient 8.0.0 alone: none). The pin therefore no longer
fixes a vulnerability; it stays so that MSSqlClient and the projects that use SqlClient take the newest Pkcs. The three comments say so.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@electricessence
electricessence merged commit 306e040 into master Dec 6, 2026
9 checks passed
@electricessence
electricessence deleted the chore/package-updates-11.0.1 branch December 6, 2026 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant