From 6541e74d28dfb3fcfbe13fefd8b6f2a1e845a511 Mon Sep 17 00:00:00 2001 From: electricessence <5899455+electricessence@users.noreply.github.com> Date: Sat, 5 Dec 2026 15:44:55 -0800 Subject: [PATCH 1/9] Move every package version to Directory.Packages.props (central package 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 c00b6943 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 --- ...Open.Database.Extensions.Benchmarks.csproj | 16 ++--- Directory.Packages.props | 62 +++++++++++++++++++ Open.Database.Extensions.slnx | 1 + .../Open.Database.Extensions.Channel.csproj | 4 +- .../Core/Open.Database.Extensions.Core.csproj | 16 ++--- .../Open.Database.Extensions.Dataflow.csproj | 6 +- .../Open.Database.Extensions.Generator.csproj | 4 +- ...pen.Database.Extensions.MSSqlClient.csproj | 8 +-- .../Open.Database.Extensions.SqlClient.csproj | 4 +- ...Open.Database.Extensions.Core.Tests.csproj | 14 ++--- ...Database.Extensions.Generator.Tests.csproj | 16 ++--- ...ase.Extensions.LegacyCompiler.Tests.csproj | 6 +- ...se.Extensions.PackageConsumer.Tests.csproj | 16 ++--- docsite/samples/Samples.csproj | 14 ++--- 14 files changed, 126 insertions(+), 61 deletions(-) create mode 100644 Directory.Packages.props diff --git a/Benchmarks/Open.Database.Extensions.Benchmarks/Open.Database.Extensions.Benchmarks.csproj b/Benchmarks/Open.Database.Extensions.Benchmarks/Open.Database.Extensions.Benchmarks.csproj index ce1048fd..db262562 100644 --- a/Benchmarks/Open.Database.Extensions.Benchmarks/Open.Database.Extensions.Benchmarks.csproj +++ b/Benchmarks/Open.Database.Extensions.Benchmarks/Open.Database.Extensions.Benchmarks.csproj @@ -23,14 +23,14 @@ - - - - - - - - + + + + + + + + diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 00000000..10752b98 --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,62 @@ + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Open.Database.Extensions.slnx b/Open.Database.Extensions.slnx index 73dd25c4..776a1c26 100644 --- a/Open.Database.Extensions.slnx +++ b/Open.Database.Extensions.slnx @@ -1,6 +1,7 @@ + diff --git a/Source/Channel/Open.Database.Extensions.Channel.csproj b/Source/Channel/Open.Database.Extensions.Channel.csproj index 251d1873..d77173ad 100644 --- a/Source/Channel/Open.Database.Extensions.Channel.csproj +++ b/Source/Channel/Open.Database.Extensions.Channel.csproj @@ -6,13 +6,13 @@ - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Source/Core/Open.Database.Extensions.Core.csproj b/Source/Core/Open.Database.Extensions.Core.csproj index 9d837a28..3fac4ffe 100644 --- a/Source/Core/Open.Database.Extensions.Core.csproj +++ b/Source/Core/Open.Database.Extensions.Core.csproj @@ -7,7 +7,7 @@ - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -43,22 +43,22 @@ - + - - + + - + - - + + diff --git a/Source/Dataflow/Open.Database.Extensions.Dataflow.csproj b/Source/Dataflow/Open.Database.Extensions.Dataflow.csproj index 9d645be9..cd418210 100644 --- a/Source/Dataflow/Open.Database.Extensions.Dataflow.csproj +++ b/Source/Dataflow/Open.Database.Extensions.Dataflow.csproj @@ -6,17 +6,17 @@ - + - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Source/Generator/Open.Database.Extensions.Generator.csproj b/Source/Generator/Open.Database.Extensions.Generator.csproj index 16362558..44ee5cdd 100644 --- a/Source/Generator/Open.Database.Extensions.Generator.csproj +++ b/Source/Generator/Open.Database.Extensions.Generator.csproj @@ -22,8 +22,8 @@ - - + + diff --git a/Source/MSSqlClient/Open.Database.Extensions.MSSqlClient.csproj b/Source/MSSqlClient/Open.Database.Extensions.MSSqlClient.csproj index 85e1d3f6..25c35c8a 100644 --- a/Source/MSSqlClient/Open.Database.Extensions.MSSqlClient.csproj +++ b/Source/MSSqlClient/Open.Database.Extensions.MSSqlClient.csproj @@ -7,21 +7,21 @@ - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/Source/SqlClient/Open.Database.Extensions.SqlClient.csproj b/Source/SqlClient/Open.Database.Extensions.SqlClient.csproj index cda1a90e..19c5ac1e 100644 --- a/Source/SqlClient/Open.Database.Extensions.SqlClient.csproj +++ b/Source/SqlClient/Open.Database.Extensions.SqlClient.csproj @@ -8,11 +8,11 @@ - + - + diff --git a/Tests/Open.Database.Extensions.Core.Tests/Open.Database.Extensions.Core.Tests.csproj b/Tests/Open.Database.Extensions.Core.Tests/Open.Database.Extensions.Core.Tests.csproj index 22836992..9c3fb56a 100644 --- a/Tests/Open.Database.Extensions.Core.Tests/Open.Database.Extensions.Core.Tests.csproj +++ b/Tests/Open.Database.Extensions.Core.Tests/Open.Database.Extensions.Core.Tests.csproj @@ -10,16 +10,16 @@ - - - - - - + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj b/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj index ade4f890..7bec7747 100644 --- a/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj +++ b/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj @@ -25,17 +25,17 @@ - + - - - + + + - + - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Tests/Open.Database.Extensions.LegacyCompiler.Tests/Open.Database.Extensions.LegacyCompiler.Tests.csproj b/Tests/Open.Database.Extensions.LegacyCompiler.Tests/Open.Database.Extensions.LegacyCompiler.Tests.csproj index c96f5dfd..af463a13 100644 --- a/Tests/Open.Database.Extensions.LegacyCompiler.Tests/Open.Database.Extensions.LegacyCompiler.Tests.csproj +++ b/Tests/Open.Database.Extensions.LegacyCompiler.Tests/Open.Database.Extensions.LegacyCompiler.Tests.csproj @@ -33,9 +33,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Tests/Open.Database.Extensions.PackageConsumer.Tests/Open.Database.Extensions.PackageConsumer.Tests.csproj b/Tests/Open.Database.Extensions.PackageConsumer.Tests/Open.Database.Extensions.PackageConsumer.Tests.csproj index ae4024a7..a5739d20 100644 --- a/Tests/Open.Database.Extensions.PackageConsumer.Tests/Open.Database.Extensions.PackageConsumer.Tests.csproj +++ b/Tests/Open.Database.Extensions.PackageConsumer.Tests/Open.Database.Extensions.PackageConsumer.Tests.csproj @@ -35,14 +35,16 @@ - - - - + + + + + + - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/docsite/samples/Samples.csproj b/docsite/samples/Samples.csproj index d6e3f1f4..0e83d941 100644 --- a/docsite/samples/Samples.csproj +++ b/docsite/samples/Samples.csproj @@ -17,14 +17,14 @@ - - - - + + + + - - - + + + From 30053752aa381c0a1fec9813ded7e2cd130fbd59 Mon Sep 17 00:00:00 2001 From: electricessence <5899455+electricessence@users.noreply.github.com> Date: Sat, 5 Dec 2026 15:47:25 -0800 Subject: [PATCH 2/9] Update the shipped dependencies: Microsoft.Data.SqlClient 8.0.0, System.* 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 --- Directory.Packages.props | 30 +++++++++++++------ .../Core/Open.Database.Extensions.Core.csproj | 2 +- ...Database.Extensions.Generator.Tests.csproj | 2 +- ...se.Extensions.PackageConsumer.Tests.csproj | 2 +- 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 10752b98..2f200110 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -10,21 +10,33 @@ - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/Source/Core/Open.Database.Extensions.Core.csproj b/Source/Core/Open.Database.Extensions.Core.csproj index 3fac4ffe..f679f786 100644 --- a/Source/Core/Open.Database.Extensions.Core.csproj +++ b/Source/Core/Open.Database.Extensions.Core.csproj @@ -46,7 +46,7 @@ - + diff --git a/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj b/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj index 7bec7747..d41459aa 100644 --- a/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj +++ b/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj @@ -32,7 +32,7 @@ - + diff --git a/Tests/Open.Database.Extensions.PackageConsumer.Tests/Open.Database.Extensions.PackageConsumer.Tests.csproj b/Tests/Open.Database.Extensions.PackageConsumer.Tests/Open.Database.Extensions.PackageConsumer.Tests.csproj index a5739d20..6007777b 100644 --- a/Tests/Open.Database.Extensions.PackageConsumer.Tests/Open.Database.Extensions.PackageConsumer.Tests.csproj +++ b/Tests/Open.Database.Extensions.PackageConsumer.Tests/Open.Database.Extensions.PackageConsumer.Tests.csproj @@ -41,7 +41,7 @@ - + From ed37b68b8c0fc4e666ebbddd755a465fadcd0747 Mon Sep 17 00:00:00 2001 From: electricessence <5899455+electricessence@users.noreply.github.com> Date: Sat, 5 Dec 2026 15:50:39 -0800 Subject: [PATCH 3/9] Update the build, test and sample dependencies to their newest versions 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 --- Directory.Packages.props | 16 +++---- Source/Core/PublicAPI.Shipped.txt | 47 +++++++++++++++++++ ...Open.Database.Extensions.Core.Tests.csproj | 4 +- docsite/samples/Samples.csproj | 2 +- 4 files changed, 58 insertions(+), 11 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 2f200110..b2736cc0 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -38,26 +38,26 @@ - - + + - + - - + + - - + + - + diff --git a/Source/Core/PublicAPI.Shipped.txt b/Source/Core/PublicAPI.Shipped.txt index 77162a50..22515341 100644 --- a/Source/Core/PublicAPI.Shipped.txt +++ b/Source/Core/PublicAPI.Shipped.txt @@ -1020,3 +1020,50 @@ Open.Database.Extensions.MappedQueryWithSkip.CaptureOutputDecimal(out Open.Da Open.Database.Extensions.MappedQueryWithTake.CaptureOutput(out Open.Database.Extensions.DbCapture output, string? name = null) -> Open.Database.Extensions.MappedQueryWithTake Open.Database.Extensions.MappedQueryWithTake.CaptureOutput(out Open.Database.Extensions.DbCapture value, byte precision, byte scale, string? name = null) -> Open.Database.Extensions.MappedQueryWithTake Open.Database.Extensions.MappedQueryWithTake.CaptureOutputDecimal(out Open.Database.Extensions.DbCapture value, byte precision, byte scale, string? name = null) -> Open.Database.Extensions.MappedQueryWithTake +~Open.Database.Extensions.ExpressiveCommandBase.Param.Equals(Open.Database.Extensions.ExpressiveCommandBase.Param other) -> bool +~override Open.Database.Extensions.ColumnOrdinal.Equals(object obj) -> bool +~override Open.Database.Extensions.ExpressiveCommandBase.Param.Equals(object obj) -> bool +~override Open.Database.Extensions.ExpressiveCommandBase.Param.ToString() -> string +~override Open.Database.Extensions.MappedCommand.Equals(object obj) -> bool +~override Open.Database.Extensions.MappedCommand.ToString() -> string +~override Open.Database.Extensions.MappedQuery.Equals(object obj) -> bool +~override Open.Database.Extensions.MappedQuery.ToString() -> string +~override Open.Database.Extensions.MappedQueryWithSkip.Equals(object obj) -> bool +~override Open.Database.Extensions.MappedQueryWithSkip.ToString() -> string +~override Open.Database.Extensions.MappedQueryWithTake.Equals(object obj) -> bool +~override Open.Database.Extensions.MappedQueryWithTake.ToString() -> string +~override Open.Database.Extensions.MappedReader.Equals(object obj) -> bool +~override Open.Database.Extensions.MappedReader.ToString() -> string +~override Open.Database.Extensions.MappedTable.Equals(object obj) -> bool +~override Open.Database.Extensions.MappedTable.ToString() -> string +~static Open.Database.Extensions.ExpressiveCommandBase.Param.operator !=(Open.Database.Extensions.ExpressiveCommandBase.Param left, Open.Database.Extensions.ExpressiveCommandBase.Param right) -> bool +~static Open.Database.Extensions.ExpressiveCommandBase.Param.operator ==(Open.Database.Extensions.ExpressiveCommandBase.Param left, Open.Database.Extensions.ExpressiveCommandBase.Param right) -> bool +Open.Database.Extensions.ColumnOrdinal.Equals(Open.Database.Extensions.ColumnOrdinal other) -> bool +Open.Database.Extensions.MappedCommand.Equals(Open.Database.Extensions.MappedCommand other) -> bool +Open.Database.Extensions.MappedQuery.Equals(Open.Database.Extensions.MappedQuery other) -> bool +Open.Database.Extensions.MappedQueryWithSkip.Equals(Open.Database.Extensions.MappedQueryWithSkip other) -> bool +Open.Database.Extensions.MappedQueryWithTake.Equals(Open.Database.Extensions.MappedQueryWithTake other) -> bool +Open.Database.Extensions.MappedReader.Equals(Open.Database.Extensions.MappedReader other) -> bool +Open.Database.Extensions.MappedTable.Equals(Open.Database.Extensions.MappedTable other) -> bool +override Open.Database.Extensions.ColumnOrdinal.GetHashCode() -> int +override Open.Database.Extensions.ExpressiveCommandBase.Param.GetHashCode() -> int +override Open.Database.Extensions.MappedCommand.GetHashCode() -> int +override Open.Database.Extensions.MappedQuery.GetHashCode() -> int +override Open.Database.Extensions.MappedQueryWithSkip.GetHashCode() -> int +override Open.Database.Extensions.MappedQueryWithTake.GetHashCode() -> int +override Open.Database.Extensions.MappedReader.GetHashCode() -> int +override Open.Database.Extensions.MappedTable.GetHashCode() -> int +static Open.Database.Extensions.ColumnOrdinal.operator !=(Open.Database.Extensions.ColumnOrdinal left, Open.Database.Extensions.ColumnOrdinal right) -> bool +static Open.Database.Extensions.ColumnOrdinal.operator ==(Open.Database.Extensions.ColumnOrdinal left, Open.Database.Extensions.ColumnOrdinal right) -> bool +static Open.Database.Extensions.MappedCommand.operator !=(Open.Database.Extensions.MappedCommand left, Open.Database.Extensions.MappedCommand right) -> bool +static Open.Database.Extensions.MappedCommand.operator ==(Open.Database.Extensions.MappedCommand left, Open.Database.Extensions.MappedCommand right) -> bool +static Open.Database.Extensions.MappedQuery.operator !=(Open.Database.Extensions.MappedQuery left, Open.Database.Extensions.MappedQuery right) -> bool +static Open.Database.Extensions.MappedQuery.operator ==(Open.Database.Extensions.MappedQuery left, Open.Database.Extensions.MappedQuery right) -> bool +static Open.Database.Extensions.MappedQueryWithSkip.operator !=(Open.Database.Extensions.MappedQueryWithSkip left, Open.Database.Extensions.MappedQueryWithSkip right) -> bool +static Open.Database.Extensions.MappedQueryWithSkip.operator ==(Open.Database.Extensions.MappedQueryWithSkip left, Open.Database.Extensions.MappedQueryWithSkip right) -> bool +static Open.Database.Extensions.MappedQueryWithTake.operator !=(Open.Database.Extensions.MappedQueryWithTake left, Open.Database.Extensions.MappedQueryWithTake right) -> bool +static Open.Database.Extensions.MappedQueryWithTake.operator ==(Open.Database.Extensions.MappedQueryWithTake left, Open.Database.Extensions.MappedQueryWithTake right) -> bool +static Open.Database.Extensions.MappedReader.operator !=(Open.Database.Extensions.MappedReader left, Open.Database.Extensions.MappedReader right) -> bool +static Open.Database.Extensions.MappedReader.operator ==(Open.Database.Extensions.MappedReader left, Open.Database.Extensions.MappedReader right) -> bool +static Open.Database.Extensions.MappedTable.operator !=(Open.Database.Extensions.MappedTable left, Open.Database.Extensions.MappedTable right) -> bool +static Open.Database.Extensions.MappedTable.operator ==(Open.Database.Extensions.MappedTable left, Open.Database.Extensions.MappedTable right) -> bool diff --git a/Tests/Open.Database.Extensions.Core.Tests/Open.Database.Extensions.Core.Tests.csproj b/Tests/Open.Database.Extensions.Core.Tests/Open.Database.Extensions.Core.Tests.csproj index 9c3fb56a..735604af 100644 --- a/Tests/Open.Database.Extensions.Core.Tests/Open.Database.Extensions.Core.Tests.csproj +++ b/Tests/Open.Database.Extensions.Core.Tests/Open.Database.Extensions.Core.Tests.csproj @@ -1,4 +1,4 @@ - + net11.0 @@ -11,7 +11,7 @@ - + diff --git a/docsite/samples/Samples.csproj b/docsite/samples/Samples.csproj index 0e83d941..c6dcbb57 100644 --- a/docsite/samples/Samples.csproj +++ b/docsite/samples/Samples.csproj @@ -17,7 +17,7 @@ - + From 41d146fc84c65665567388c1e9317d2faa5d0277 Mon Sep 17 00:00:00 2001 From: electricessence <5899455+electricessence@users.noreply.github.com> Date: Sat, 5 Dec 2026 15:56:05 -0800 Subject: [PATCH 4/9] Update xunit.v3 to 4.0.4, and keep Microsoft.Data.Sqlite on 10.0.15 for 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 --- Directory.Packages.props | 10 ++++++---- .../Open.Database.Extensions.Core.Tests.csproj | 3 ++- .../Harness.cs | 2 +- .../ConsumerTests.cs | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index b2736cc0..e8941c02 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -47,12 +47,14 @@ - + - + + + @@ -67,8 +69,8 @@ - - + + diff --git a/Tests/Open.Database.Extensions.Core.Tests/Open.Database.Extensions.Core.Tests.csproj b/Tests/Open.Database.Extensions.Core.Tests/Open.Database.Extensions.Core.Tests.csproj index 735604af..3361e744 100644 --- a/Tests/Open.Database.Extensions.Core.Tests/Open.Database.Extensions.Core.Tests.csproj +++ b/Tests/Open.Database.Extensions.Core.Tests/Open.Database.Extensions.Core.Tests.csproj @@ -6,7 +6,8 @@ Exe false true - $(NoWarn);IDE0079;CS8632 + + $(NoWarn);IDE0079;CS8632;xUnit1069 diff --git a/Tests/Open.Database.Extensions.Generator.Tests/Harness.cs b/Tests/Open.Database.Extensions.Generator.Tests/Harness.cs index 6b05a7c0..fbbd4ad2 100644 --- a/Tests/Open.Database.Extensions.Generator.Tests/Harness.cs +++ b/Tests/Open.Database.Extensions.Generator.Tests/Harness.cs @@ -5,7 +5,7 @@ using System.Reflection; // The counters are process-wide: one test at a time, so each test's deltas are its own. -[assembly: CollectionBehavior(DisableTestParallelization = true)] +[assembly: Xunit.v3.Parallelization(Mode = Xunit.Sdk.ParallelMode.None)] namespace Open.Database.Extensions.Generator.Tests; diff --git a/Tests/Open.Database.Extensions.PackageConsumer.Tests/ConsumerTests.cs b/Tests/Open.Database.Extensions.PackageConsumer.Tests/ConsumerTests.cs index 2c1ff59d..fa5b9e4a 100644 --- a/Tests/Open.Database.Extensions.PackageConsumer.Tests/ConsumerTests.cs +++ b/Tests/Open.Database.Extensions.PackageConsumer.Tests/ConsumerTests.cs @@ -8,7 +8,7 @@ using Open.Database.Extensions.Generated; #endif -[assembly: CollectionBehavior(DisableTestParallelization = true)] +[assembly: Xunit.v3.Parallelization(Mode = Xunit.Sdk.ParallelMode.None)] namespace Open.Database.Extensions.PackageConsumer.Tests; From 1c1156c18c0ba3bc19219f5e49066d57a695ee3a Mon Sep 17 00:00:00 2001 From: electricessence <5899455+electricessence@users.noreply.github.com> Date: Sat, 5 Dec 2026 16:18:05 -0800 Subject: [PATCH 5/9] Ship the source generator twice: one build for Roslyn 4.14, one for Roslyn 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 --- .github/workflows/tests.yml | 26 ++++++++++------ Directory.Packages.props | 2 +- Open.Database.Extensions.slnx | 1 + .../Core/Open.Database.Extensions.Core.csproj | 7 +++-- ...tabase.Extensions.Generator.Roslyn5.csproj | 31 +++++++++++++++++++ ...Database.Extensions.Generator.Tests.csproj | 8 +++-- 6 files changed, 60 insertions(+), 15 deletions(-) create mode 100644 Source/Generator.Roslyn5/Open.Database.Extensions.Generator.Roslyn5.csproj diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 01fda1f4..b9428e1c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -73,7 +73,7 @@ jobs: - name: Run the tests (${{ matrix.name }}) env: ODX_REQUIRE_SQL: 1 - run: dotnet test Tests/Open.Database.Extensions.Core.Tests -c ${{ matrix.configuration }} -f ${{ matrix.tfm }} --logger "trx;LogFileName=${{ matrix.name }}.trx" --results-directory TestResults/${{ matrix.name }} + run: dotnet test --project Tests/Open.Database.Extensions.Core.Tests -c ${{ matrix.configuration }} -f ${{ matrix.tfm }} --report-xunit-trx --report-xunit-trx-filename ${{ matrix.name }}.trx --results-directory TestResults/${{ matrix.name }} - name: Upload the TRX files if: always() @@ -118,11 +118,11 @@ jobs: $failed = @() $started = Get-Date foreach ($framework in $frameworks) { - dotnet test $project -c Release --no-build -f $framework --logger "trx;LogFilePrefix=legacy-compiler-$framework" --results-directory TestResults/legacy-compiler + dotnet test --project $project -c Release --no-build -f $framework --report-xunit-trx --report-xunit-trx-filename "legacy-compiler-$framework.trx" --results-directory TestResults/legacy-compiler $exitCode = $LASTEXITCODE # `dotnet test --no-build -f` exits 0 without running anything for a target framework that was not built, so a missing TRX file is a failure too, # and so is a TRX file that counts no tests. - $results = @(Get-ChildItem TestResults/legacy-compiler -Filter "legacy-compiler-${framework}_*.trx" -ErrorAction SilentlyContinue | Where-Object LastWriteTime -ge $started) + $results = @(Get-ChildItem TestResults/legacy-compiler -Filter "legacy-compiler-$framework.trx" -ErrorAction SilentlyContinue | Where-Object LastWriteTime -ge $started) $total = 0 foreach ($result in $results) { $total += [int]([xml](Get-Content -Raw $result.FullName)).TestRun.ResultSummary.Counters.total } if ($exitCode -ne 0 -or -not $results -or $total -eq 0) { @@ -173,7 +173,13 @@ jobs: - name: Run the generator tests env: ODX_REQUIRE_SQL: 1 - run: dotnet test Tests/Open.Database.Extensions.Generator.Tests -c Release --logger "trx;LogFilePrefix=generator" --results-directory TestResults/generator + run: dotnet test --project Tests/Open.Database.Extensions.Generator.Tests -c Release --report-xunit-trx --report-xunit-trx-filename generator.trx --results-directory TestResults/generator + + # The same tests against the generator built on Roslyn 5.12 (Source/Generator.Roslyn5); Core packs both builds. + - name: Run the generator tests on the Roslyn 5.12 build + env: + ODX_REQUIRE_SQL: 1 + run: dotnet test --project Tests/Open.Database.Extensions.Generator.Tests -c Release -p:OdxGeneratorRoslyn=5.12 --report-xunit-trx --report-xunit-trx-filename generator-roslyn5.12.trx --results-directory TestResults/generator-roslyn5.12 # What a NuGet user gets: the packages are packed, and a project that references only them is built and run with the generator on, # arriving through MSSqlClient alone, switched off, and with C# 12. It runs on net472 and net11.0, against LocalDB and SQLite. @@ -182,6 +188,8 @@ jobs: ODX_REQUIRE_SQL: 1 run: | $suffix = "ci.${{ github.run_id }}.${{ github.run_attempt }}" + # The version prefix of Source/Directory.Build.props, so a version change there never leaves this step behind. + $prefix = ([xml](Get-Content Source/Directory.Build.props -Raw)).Project.PropertyGroup.VersionPrefix | Where-Object { $_ } | Select-Object -First 1 $feed = Join-Path $env:RUNNER_TEMP 'feed' $siblings = 'MSSqlClient', 'Channel', 'Dataflow', 'Extensions' foreach ($project in @('Core') + $siblings) { @@ -193,12 +201,12 @@ jobs: # The Core package carries the generator and its build targets, and no sibling package holds them back from its consumers. Add-Type -AssemblyName System.IO.Compression.FileSystem function Read-Package($id) { - $path = Join-Path $feed "$id.11.0.0-$suffix.nupkg" + $path = Join-Path $feed "$id.$prefix-$suffix.nupkg" [IO.Compression.ZipFile]::OpenRead($path) } $core = Read-Package 'Open.Database.Extensions.Core' try { - foreach ($entry in 'analyzers/dotnet/roslyn4.14/cs/Open.Database.Extensions.Generator.dll', 'buildTransitive/Open.Database.Extensions.Core.targets') { + foreach ($entry in 'analyzers/dotnet/roslyn4.14/cs/Open.Database.Extensions.Generator.dll', 'analyzers/dotnet/roslyn5.12/cs/Open.Database.Extensions.Generator.dll', 'buildTransitive/Open.Database.Extensions.Core.targets') { if (-not $core.GetEntry($entry)) { throw "The Core package has no $entry" } } } finally { $core.Dispose() } @@ -217,11 +225,11 @@ jobs: $variants = [ordered]@{ core = @(); mssqlclient = @('-p:OdxVia=MSSqlClient'); off = @('-p:OdxGenerateMaps=false'); csharp12 = @('-p:LangVersion=12') } $failed = @() foreach ($variant in $variants.Keys) { - $options = @("-p:OdxFeed=$feed", "-p:OdxPackageVersion=11.0.0-$suffix") + $variants[$variant] + $options = @("-p:OdxFeed=$feed", "-p:OdxPackageVersion=$prefix-$suffix") + $variants[$variant] $consumer = 'Tests/Open.Database.Extensions.PackageConsumer.Tests' dotnet build $consumer -c Release --no-incremental @options if ($LASTEXITCODE -ne 0) { $failed += "$variant (build)"; continue } - dotnet test $consumer -c Release --no-build @options --logger "trx;LogFilePrefix=$variant" --results-directory TestResults/consumer + dotnet test --project $consumer -c Release --no-build @options --report-xunit-trx --report-xunit-trx-filename "$variant.trx" --results-directory TestResults/consumer if ($LASTEXITCODE -ne 0) { $failed += $variant } } if ($failed.Count -gt 0) { throw "Package consumer tests failed: $($failed -join ', ')" } @@ -280,7 +288,7 @@ jobs: $projects = @( 'Source\Core', 'Source\MSSqlClient', 'Source\Channel', 'Source\Dataflow', 'Source\Extensions', 'Tests\Open.Database.Extensions.Core.Tests', 'Tests\Open.Database.Extensions.LegacyCompiler.Tests', 'docsite\samples', 'Benchmarks\Open.Database.Extensions.Benchmarks', - 'Source\Generator', 'Tests\Open.Database.Extensions.Generator.Models', 'Tests\Open.Database.Extensions.Generator.Tests', 'Benchmarks\Open.Database.Extensions.Benchmarks.Generated') + 'Source\Generator', 'Source\Generator.Roslyn5', 'Tests\Open.Database.Extensions.Generator.Models', 'Tests\Open.Database.Extensions.Generator.Tests', 'Benchmarks\Open.Database.Extensions.Benchmarks.Generated') $failures = @() foreach ($project in $projects) { # A full Windows path: with forward slashes the formatter loads nothing and reports a false zero. diff --git a/Directory.Packages.props b/Directory.Packages.props index e8941c02..dcf9ac72 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -42,7 +42,7 @@ - + diff --git a/Open.Database.Extensions.slnx b/Open.Database.Extensions.slnx index 776a1c26..2db87f11 100644 --- a/Open.Database.Extensions.slnx +++ b/Open.Database.Extensions.slnx @@ -16,5 +16,6 @@ + diff --git a/Source/Core/Open.Database.Extensions.Core.csproj b/Source/Core/Open.Database.Extensions.Core.csproj index f679f786..41949327 100644 --- a/Source/Core/Open.Database.Extensions.Core.csproj +++ b/Source/Core/Open.Database.Extensions.Core.csproj @@ -21,11 +21,14 @@ - + + + diff --git a/Source/Generator.Roslyn5/Open.Database.Extensions.Generator.Roslyn5.csproj b/Source/Generator.Roslyn5/Open.Database.Extensions.Generator.Roslyn5.csproj new file mode 100644 index 00000000..9a218536 --- /dev/null +++ b/Source/Generator.Roslyn5/Open.Database.Extensions.Generator.Roslyn5.csproj @@ -0,0 +1,31 @@ + + + + + + netstandard2.0 + false + false + false + false + true + true + Open.Database.Extensions.Generator + Open.Database.Extensions.Generator + $(NoWarn);RSEXPERIMENTAL002;NU5128 + + + + + + + + + + + + diff --git a/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj b/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj index d41459aa..3b5b938e 100644 --- a/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj +++ b/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj @@ -26,8 +26,9 @@ - - + + + @@ -44,7 +45,8 @@ - + + From 5ff0deaead70cd2f897686536124768123871b94 Mon Sep 17 00:00:00 2001 From: electricessence <5899455+electricessence@users.noreply.github.com> Date: Sat, 5 Dec 2026 16:19:40 -0800 Subject: [PATCH 6/9] Version 11.0.1: run the tests through Microsoft.Testing.Platform, docfx 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 --- .config/dotnet-tools.json | 2 +- Source/Directory.Build.props | 2 +- ...se.Extensions.PackageConsumer.Tests.csproj | 2 +- docsite/articles/release-notes.md | 34 ++++++++++++++++++- global.json | 3 ++ 5 files changed, 39 insertions(+), 4 deletions(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 1490bfb3..50e19095 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "docfx": { - "version": "2.81.0", + "version": "2.82.0", "commands": [ "docfx" ], diff --git a/Source/Directory.Build.props b/Source/Directory.Build.props index 48a5f8d7..90691406 100644 --- a/Source/Directory.Build.props +++ b/Source/Directory.Build.props @@ -3,7 +3,7 @@ Open.Database.Extensions - 11.0.0 + 11.0.1 debug + + + + diff --git a/docsite/articles/release-notes.md b/docsite/articles/release-notes.md index 6fec5c04..e1e951ae 100644 --- a/docsite/articles/release-notes.md +++ b/docsite/articles/release-notes.md @@ -4,7 +4,7 @@ Version 11 is `11.0.1`. For moving a 10.x codebase, read [Coming from earlier ve ## Version 11.0.1 -A dependency update. The public API and what Core, Channel and Dataflow do are unchanged; every package dependency is now at the newest version that supports the target framework it is built for. +A dependency update. The public API and what Core, Channel and Dataflow do are unchanged; the dependencies of the shipped packages are at the newest version that supports each target framework they are built for; the one exception, `netstandard2.1`, is explained below. ### Dependencies of the packages @@ -23,17 +23,18 @@ A dependency update. The public API and what Core, Channel and Dataflow do are u **What a consumer sees.** - A .NET Framework project (it takes the `netstandard2.0` build) gets the 11.0.0 `System.*` packages, and `Microsoft.Bcl.AsyncInterfaces` 11.0.0. -- A project that references `MSSqlClient` gets `Microsoft.Data.SqlClient` 8.0.0. Read the SqlClient 8.0.0 release notes before you upgrade; the changes that can reach a program that uses this package are the minimum runtime and the connection defaults below. `net472` still works (SqlClient 8.0.0 ships a `net462` build), and so do `net10.0` and `net11.0`. +- A project that references `MSSqlClient` gets `Microsoft.Data.SqlClient` 8.0.0. Read the SqlClient 8.0.0 release notes before you upgrade; the changes most likely to reach a program that uses this package are the minimum runtime and the connection defaults below. `net472` still works (SqlClient 8.0.0 ships a `net462` build), and so do `net10.0` and `net11.0`. - SqlClient 8.0.0 needs .NET 10 or later on modern .NET. `MSSqlClient` targets `net472`, `net10.0` and `net11.0` (as in 11.0.0), so a .NET 8 or .NET 9 project could not use it before and cannot now. - Connection defaults changed in SqlClient 8.0.0: `MultiSubnetFailover` is on by default, `UseOverallConnectTimeoutForPoolWait` is on by default (a connection that waits for the pool can time out sooner), and `TransparentNetworkIPResolution` is off by default on .NET Framework. Azure attestation moved to the `Microsoft.Data.SqlClient.Extensions.Azure` package, SQL Server 2005 and the Type System Version setting are gone, and `SqlParameterCollection.RemoveAt` throws another exception type for an index out of range. A SqlClient 8.0 build raises the warning `SQLCLIENT001` for a mixed set of SqlClient family package versions. ### The source generator -Core now ships the generator twice, built from the same sources: against Roslyn 4.14 in `analyzers/dotnet/roslyn4.14/cs` and against Roslyn 5.12 in `analyzers/dotnet/roslyn5.12/cs`. NuGet gives a project the highest folder its compiler supports, so the .NET 11 SDK loads the Roslyn 5.12 build, an older SDK or Visual Studio loads the Roslyn 4.14 build, and a compiler older than Roslyn 4.14 loads neither, as before. The generated code is the same. +Core now ships the generator twice, built from the same sources: against Roslyn 4.14 in `analyzers/dotnet/roslyn4.14/cs` and against Roslyn 5.12 in `analyzers/dotnet/roslyn5.12/cs`. NuGet gives a project the highest folder its compiler supports, so a compiler that supports Roslyn 5.12 (the .NET 11 SDK) loads that build, an older SDK or Visual Studio loads the Roslyn 4.14 build, and a compiler older than Roslyn 4.14 loads neither, as before. Both builds come from the same sources, and the generator tests run against both. ### Tools used to build and test -Not shipped. `Microsoft.SourceLink.GitHub` 11.0.100, `Microsoft.CodeAnalysis.PublicApiAnalyzers` 5.6.0, `Microsoft.NET.Test.Sdk` 18.12.0, `xunit.v3` 4.0.4, `xunit.runner.visualstudio` 4.0.2, `coverlet.collector` 10.1.1, `Microsoft.Data.Sqlite` 11.0.0 (10.0.15 in the `net472` consumer test project, because 11.0.0 supports .NET 10 and later only), `Microsoft.CodeAnalysis.CSharp` 5.12.0 in the tests, `CommunityToolkit.Mvvm` 8.4.2, `docfx` 2.82.0. The repository's versions are in one file, `Directory.Packages.props`. With xunit.v3 4.x the tests run through Microsoft.Testing.Platform: `dotnet test --project ` (`global.json` selects the runner). +Not shipped; the main ones. `Microsoft.SourceLink.GitHub` 11.0.100, `Microsoft.CodeAnalysis.PublicApiAnalyzers` 5.6.0, `Microsoft.CodeAnalysis.Analyzers` 5.12.0, `Microsoft.NET.Test.Sdk` 18.12.0, `xunit.v3` 4.0.4, `xunit.runner.visualstudio` 4.0.2, `coverlet.collector` 10.1.1, `Microsoft.Data.Sqlite` 11.0.0 (10.0.15 in the `net472` consumer test project, because 11.0.0 supports .NET 10 and later only), `Microsoft.CodeAnalysis.CSharp` 5.12.0 in `Core.Tests` (`Generator.Tests` uses 4.14.0, and 5.12.0 when it runs against the Roslyn 5.12 generator build), `CommunityToolkit.Mvvm` 8.4.2, `docfx` 2.82.0 (`.config/dotnet-tools.json`). The NuGet package versions of the repository are in `Directory.Packages.props`; a project states a `VersionOverride` where it needs another. With xunit.v3 4.x the tests run through Microsoft.Testing.Platform: `dotnet test --project ` (`global.json` selects the runner). + ## Version 11.0.0 There is no version 11 of the `Open.Database.Extensions.SqlClient` package (`System.Data.SqlClient`): use `Open.Database.Extensions.MSSqlClient` for SQL Server. The last release of the old package, 10.3.0, works with Core 10.x only, not with Core 11. From efb231d928bf301ecff9d1fbf90ae76b62116032 Mon Sep 17 00:00:00 2001 From: electricessence <5899455+electricessence@users.noreply.github.com> Date: Sat, 5 Dec 2026 16:46:03 -0800 Subject: [PATCH 9/9] Say why the Pkcs pin stays now that SqlClient 8.0.0 does not bring a 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 --- Directory.Packages.props | 2 +- .../Open.Database.Extensions.Generator.Tests.csproj | 2 +- .../Open.Database.Extensions.PackageConsumer.Tests.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index dcf9ac72..c1ead25e 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -11,7 +11,7 @@ - + diff --git a/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj b/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj index 427eacad..de9817cf 100644 --- a/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj +++ b/Tests/Open.Database.Extensions.Generator.Tests/Open.Database.Extensions.Generator.Tests.csproj @@ -33,7 +33,7 @@ - + diff --git a/Tests/Open.Database.Extensions.PackageConsumer.Tests/Open.Database.Extensions.PackageConsumer.Tests.csproj b/Tests/Open.Database.Extensions.PackageConsumer.Tests/Open.Database.Extensions.PackageConsumer.Tests.csproj index c75c562e..c2440206 100644 --- a/Tests/Open.Database.Extensions.PackageConsumer.Tests/Open.Database.Extensions.PackageConsumer.Tests.csproj +++ b/Tests/Open.Database.Extensions.PackageConsumer.Tests/Open.Database.Extensions.PackageConsumer.Tests.csproj @@ -41,7 +41,7 @@ - +