Repository navigation
Ship net10.0 FSharp.Core with the SDK tools - #20555
Merged
Merged
Conversation
Reuse resolved assembly paths during implicit loading so FSI retains SDK reference assemblies while importing the net-targeted Core. Co-authored-by: Copilot App <[email protected]> Copilot-Session: e72d5474-3759-4367-a0b6-ce25da9831c8
Contributor
❗ Release notes requiredYou can open this PR in browser to add release notes: open in github.dev
|
Co-authored-by: Copilot App <[email protected]> Copilot-Session: e72d5474-3759-4367-a0b6-ce25da9831c8
17 tasks
abonie
approved these changes
Sep 18, 2026
This was referenced Sep 18, 2026
bartelink
pushed a commit
to bartelink/fsharp
that referenced
this pull request
Oct 7, 2026
* Ship net10.0 FSharp.Core with the SDK tools Reuse resolved assembly paths during implicit loading so FSI retains SDK reference assemblies while importing the net-targeted Core. Co-authored-by: Copilot App <[email protected]> Copilot-Session: e72d5474-3759-4367-a0b6-ce25da9831c8 * Link SDK FSharp.Core release note to its PR Co-authored-by: Copilot App <[email protected]> Copilot-Session: e72d5474-3759-4367-a0b6-ce25da9831c8 --------- Co-authored-by: perf-bundle <perf@local> Co-authored-by: Copilot App <[email protected]> Copilot-Session: e72d5474-3759-4367-a0b6-ce25da9831c8
MaceWindu
added a commit
to linq2db/linq2db
that referenced
this pull request
Oct 15, 2026
linq2db.FSharp referenced FSharp.Core on net462 only. Under central package management the SDK adds no implicit FSharp.Core, so every other target compiled against the FSharp.Core bundled with the SDK and the package declared no dependency for it: 6.5.0's netstandard2.0/net8.0/net9.0/net10.0 assemblies reference FSharp.Core 10.1.0.0 that nothing in the nuspec asks for. The .NET 11 RC2 SDK bundles the net10.0 build of FSharp.Core (dotnet/fsharp#20555), so that fallback no longer compiles for netstandard2.0 (FS0193) and lifts net10.0+ to FSharp.Core 11.0.0.0. The floor follows the in-box package rule: per .NET band, the FSharp.Core its first SDK shipped; net462/netstandard2.0 take the lowest band's. That is 10.0.100 for net10.0/net462/netstandard2.0 and 11.0.101-rc2.26504.105 for net11.0 until RTM. Packed and verified: each target declares that version and its assembly references the matching FSharp.Core (10.0.0.0 / 11.0.0.0). The tests' central FSharp.Core gets a net11.0 row, since a direct 10.1.401 there would be a downgrade against linq2db.FSharp's net11 floor.
MaceWindu
added a commit
to linq2db/agents
that referenced
this pull request
Oct 15, 2026
…reak Diff the artifact between toolchain versions and trace it to the upstream PR before proposing a fix (#5942: dotnet/fsharp#20555 broke netstandard2.0 F# compiles on .NET 11 RC2).
Kielek
added a commit
to Kielek/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Oct 23, 2026
The continuous-profiler test application's F# dependency fails to compile for netstandard2.0 with .NET 11 RC2. FSC reports FS0193: System.IO in System.Runtime does not contain Stream. The net10.0 and net11.0 targets still build, so the failure appears only on Windows, where netstandard2.0 is added for the net462 consumer through the VB test dependency. Central package management disables the SDK's implicit FSharp.Core package reference. The F# project had no explicit reference, leaving the compiler to fall back to FSharp.Core.dll from its own tool directory. The copy bundled with SDK 10 targeted netstandard2.0. Upstream deliberately changed the SDK tool payload to the net10.0 assembly to support IAsyncDisposable in F# Interactive task expressions. Resolving that tool assembly against netstandard2.0 references produces the misleading Stream error even though our F# source does not use Stream. Add an explicit FSharp.Core PackageReference and centrally pin 11.0.101-rc2.26504.105, matching the RC2 SDK's FSCorePackageVersion. NuGet now selects lib/netstandard2.0 for the framework-compatible build and lib/net10.0 for the net10.0 and net11.0 builds. This follows the F# maintainers' guidance for projects using central package management. Upstream context: - Intentional SDK payload change, dotnet/fsharp#20555: dotnet/fsharp#20555 - Introducing commit: dotnet/fsharp@a17252b - Explanation of implicit-reference behavior with CPM: dotnet/fsharp#14823 (comment) - Maintainer recommendation to reference FSharp.Core explicitly and start with the SDK's FSCorePackageVersion: dotnet/fsharp#18690 (comment) Validation on Windows x64 with .NET SDK 11.0.100-rc.2.26504.105: - Reproduced FS0193 in the original netstandard2.0 build. - Release builds of the F# library passed for netstandard2.0, net10.0, and net11.0. - After building the native test dependency, Release builds of the full continuous-profiler application passed for net462, net10.0, and net11.0, including the C# -> VB -> F# project-reference chain. - Successful builds reported zero warnings and zero errors. Assisted-by: GPT-6
Kielek
added a commit
to Kielek/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Oct 28, 2026
The continuous-profiler test application's F# dependency fails to compile for netstandard2.0 with .NET 11 RC2. FSC reports FS0193: System.IO in System.Runtime does not contain Stream. The net10.0 and net11.0 targets still build, so the failure appears only on Windows, where netstandard2.0 is added for the net462 consumer through the VB test dependency. Central package management disables the SDK's implicit FSharp.Core package reference. The F# project had no explicit reference, leaving the compiler to fall back to FSharp.Core.dll from its own tool directory. The copy bundled with SDK 10 targeted netstandard2.0. Upstream deliberately changed the SDK tool payload to the net10.0 assembly to support IAsyncDisposable in F# Interactive task expressions. Resolving that tool assembly against netstandard2.0 references produces the misleading Stream error even though our F# source does not use Stream. Add an explicit FSharp.Core PackageReference and centrally pin 11.0.101-rc2.26504.105, matching the RC2 SDK's FSCorePackageVersion. NuGet now selects lib/netstandard2.0 for the framework-compatible build and lib/net10.0 for the net10.0 and net11.0 builds. This follows the F# maintainers' guidance for projects using central package management. Upstream context: - Intentional SDK payload change, dotnet/fsharp#20555: dotnet/fsharp#20555 - Introducing commit: dotnet/fsharp@a17252b - Explanation of implicit-reference behavior with CPM: dotnet/fsharp#14823 (comment) - Maintainer recommendation to reference FSharp.Core explicitly and start with the SDK's FSCorePackageVersion: dotnet/fsharp#18690 (comment) Validation on Windows x64 with .NET SDK 11.0.100-rc.2.26504.105: - Reproduced FS0193 in the original netstandard2.0 build. - Release builds of the F# library passed for netstandard2.0, net10.0, and net11.0. - After building the native test dependency, Release builds of the full continuous-profiler application passed for net462, net10.0, and net11.0, including the C# -> VB -> F# project-reference chain. - Successful builds reported zero warnings and zero errors. Assisted-by: GPT-6
Kielek
added a commit
to Kielek/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Nov 2, 2026
The continuous-profiler test application's F# dependency fails to compile for netstandard2.0 with .NET 11 RC2. FSC reports FS0193: System.IO in System.Runtime does not contain Stream. The net10.0 and net11.0 targets still build, so the failure appears only on Windows, where netstandard2.0 is added for the net462 consumer through the VB test dependency. Central package management disables the SDK's implicit FSharp.Core package reference. The F# project had no explicit reference, leaving the compiler to fall back to FSharp.Core.dll from its own tool directory. The copy bundled with SDK 10 targeted netstandard2.0. Upstream deliberately changed the SDK tool payload to the net10.0 assembly to support IAsyncDisposable in F# Interactive task expressions. Resolving that tool assembly against netstandard2.0 references produces the misleading Stream error even though our F# source does not use Stream. Add an explicit FSharp.Core PackageReference and centrally pin 11.0.101-rc2.26504.105, matching the RC2 SDK's FSCorePackageVersion. NuGet now selects lib/netstandard2.0 for the framework-compatible build and lib/net10.0 for the net10.0 and net11.0 builds. This follows the F# maintainers' guidance for projects using central package management. Upstream context: - Intentional SDK payload change, dotnet/fsharp#20555: dotnet/fsharp#20555 - Introducing commit: dotnet/fsharp@a17252b - Explanation of implicit-reference behavior with CPM: dotnet/fsharp#14823 (comment) - Maintainer recommendation to reference FSharp.Core explicitly and start with the SDK's FSCorePackageVersion: dotnet/fsharp#18690 (comment) Validation on Windows x64 with .NET SDK 11.0.100-rc.2.26504.105: - Reproduced FS0193 in the original netstandard2.0 build. - Release builds of the F# library passed for netstandard2.0, net10.0, and net11.0. - After building the native test dependency, Release builds of the full continuous-profiler application passed for net462, net10.0, and net11.0, including the C# -> VB -> F# project-reference chain. - Successful builds reported zero warnings and zero errors. Assisted-by: GPT-6
Kielek
added a commit
to Kielek/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Nov 9, 2026
The continuous-profiler test application's F# dependency fails to compile for netstandard2.0 with .NET 11 RC2. FSC reports FS0193: System.IO in System.Runtime does not contain Stream. The net10.0 and net11.0 targets still build, so the failure appears only on Windows, where netstandard2.0 is added for the net462 consumer through the VB test dependency. Central package management disables the SDK's implicit FSharp.Core package reference. The F# project had no explicit reference, leaving the compiler to fall back to FSharp.Core.dll from its own tool directory. The copy bundled with SDK 10 targeted netstandard2.0. Upstream deliberately changed the SDK tool payload to the net10.0 assembly to support IAsyncDisposable in F# Interactive task expressions. Resolving that tool assembly against netstandard2.0 references produces the misleading Stream error even though our F# source does not use Stream. Add an explicit FSharp.Core PackageReference and centrally pin 11.0.101-rc2.26504.105, matching the RC2 SDK's FSCorePackageVersion. NuGet now selects lib/netstandard2.0 for the framework-compatible build and lib/net10.0 for the net10.0 and net11.0 builds. This follows the F# maintainers' guidance for projects using central package management. Upstream context: - Intentional SDK payload change, dotnet/fsharp#20555: dotnet/fsharp#20555 - Introducing commit: dotnet/fsharp@a17252b - Explanation of implicit-reference behavior with CPM: dotnet/fsharp#14823 (comment) - Maintainer recommendation to reference FSharp.Core explicitly and start with the SDK's FSCorePackageVersion: dotnet/fsharp#18690 (comment) Validation on Windows x64 with .NET SDK 11.0.100-rc.2.26504.105: - Reproduced FS0193 in the original netstandard2.0 build. - Release builds of the F# library passed for netstandard2.0, net10.0, and net11.0. - After building the native test dependency, Release builds of the full continuous-profiler application passed for net462, net10.0, and net11.0, including the C# -> VB -> F# project-reference chain. - Successful builds reported zero warnings and zero errors. Assisted-by: GPT-6
Kielek
added a commit
to Kielek/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Nov 9, 2026
The continuous-profiler test application's F# dependency fails to compile for netstandard2.0 with .NET 11 RC2. FSC reports FS0193: System.IO in System.Runtime does not contain Stream. The net10.0 and net11.0 targets still build, so the failure appears only on Windows, where netstandard2.0 is added for the net462 consumer through the VB test dependency. Central package management disables the SDK's implicit FSharp.Core package reference. The F# project had no explicit reference, leaving the compiler to fall back to FSharp.Core.dll from its own tool directory. The copy bundled with SDK 10 targeted netstandard2.0. Upstream deliberately changed the SDK tool payload to the net10.0 assembly to support IAsyncDisposable in F# Interactive task expressions. Resolving that tool assembly against netstandard2.0 references produces the misleading Stream error even though our F# source does not use Stream. Add an explicit FSharp.Core PackageReference and centrally pin 11.0.101-rc2.26504.105, matching the RC2 SDK's FSCorePackageVersion. NuGet now selects lib/netstandard2.0 for the framework-compatible build and lib/net10.0 for the net10.0 and net11.0 builds. This follows the F# maintainers' guidance for projects using central package management. Upstream context: - Intentional SDK payload change, dotnet/fsharp#20555: dotnet/fsharp#20555 - Introducing commit: dotnet/fsharp@a17252b - Explanation of implicit-reference behavior with CPM: dotnet/fsharp#14823 (comment) - Maintainer recommendation to reference FSharp.Core explicitly and start with the SDK's FSCorePackageVersion: dotnet/fsharp#18690 (comment) Validation on Windows x64 with .NET SDK 11.0.100-rc.2.26504.105: - Reproduced FS0193 in the original netstandard2.0 build. - Release builds of the F# library passed for netstandard2.0, net10.0, and net11.0. - After building the native test dependency, Release builds of the full continuous-profiler application passed for net462, net10.0, and net11.0, including the C# -> VB -> F# project-reference chain. - Successful builds reported zero warnings and zero errors. Assisted-by: GPT-6
Kielek
added a commit
to Kielek/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Nov 9, 2026
The continuous-profiler test application's F# dependency fails to compile for netstandard2.0 with .NET 11 RC2. FSC reports FS0193: System.IO in System.Runtime does not contain Stream. The net10.0 and net11.0 targets still build, so the failure appears only on Windows, where netstandard2.0 is added for the net462 consumer through the VB test dependency. Central package management disables the SDK's implicit FSharp.Core package reference. The F# project had no explicit reference, leaving the compiler to fall back to FSharp.Core.dll from its own tool directory. The copy bundled with SDK 10 targeted netstandard2.0. Upstream deliberately changed the SDK tool payload to the net10.0 assembly to support IAsyncDisposable in F# Interactive task expressions. Resolving that tool assembly against netstandard2.0 references produces the misleading Stream error even though our F# source does not use Stream. Add an explicit FSharp.Core PackageReference and centrally pin 11.0.101-rc2.26504.105, matching the RC2 SDK's FSCorePackageVersion. NuGet now selects lib/netstandard2.0 for the framework-compatible build and lib/net10.0 for the net10.0 and net11.0 builds. This follows the F# maintainers' guidance for projects using central package management. Upstream context: - Intentional SDK payload change, dotnet/fsharp#20555: dotnet/fsharp#20555 - Introducing commit: dotnet/fsharp@a17252b - Explanation of implicit-reference behavior with CPM: dotnet/fsharp#14823 (comment) - Maintainer recommendation to reference FSharp.Core explicitly and start with the SDK's FSCorePackageVersion: dotnet/fsharp#18690 (comment) Validation on Windows x64 with .NET SDK 11.0.100-rc.2.26504.105: - Reproduced FS0193 in the original netstandard2.0 build. - Release builds of the F# library passed for netstandard2.0, net10.0, and net11.0. - After building the native test dependency, Release builds of the full continuous-profiler application passed for net462, net10.0, and net11.0, including the C# -> VB -> F# project-reference chain. - Successful builds reported zero warnings and zero errors. Assisted-by: GPT-6
Kielek
added a commit
to Kielek/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Nov 9, 2026
The continuous-profiler test application's F# dependency fails to compile for netstandard2.0 with .NET 11 RC2. FSC reports FS0193: System.IO in System.Runtime does not contain Stream. The net10.0 and net11.0 targets still build, so the failure appears only on Windows, where netstandard2.0 is added for the net462 consumer through the VB test dependency. Central package management disables the SDK's implicit FSharp.Core package reference. The F# project had no explicit reference, leaving the compiler to fall back to FSharp.Core.dll from its own tool directory. The copy bundled with SDK 10 targeted netstandard2.0. Upstream deliberately changed the SDK tool payload to the net10.0 assembly to support IAsyncDisposable in F# Interactive task expressions. Resolving that tool assembly against netstandard2.0 references produces the misleading Stream error even though our F# source does not use Stream. Add an explicit FSharp.Core PackageReference and centrally pin 11.0.101-rc2.26504.105, matching the RC2 SDK's FSCorePackageVersion. NuGet now selects lib/netstandard2.0 for the framework-compatible build and lib/net10.0 for the net10.0 and net11.0 builds. This follows the F# maintainers' guidance for projects using central package management. Upstream context: - Intentional SDK payload change, dotnet/fsharp#20555: dotnet/fsharp#20555 - Introducing commit: dotnet/fsharp@a17252b - Explanation of implicit-reference behavior with CPM: dotnet/fsharp#14823 (comment) - Maintainer recommendation to reference FSharp.Core explicitly and start with the SDK's FSCorePackageVersion: dotnet/fsharp#18690 (comment) Validation on Windows x64 with .NET SDK 11.0.100-rc.2.26504.105: - Reproduced FS0193 in the original netstandard2.0 build. - Release builds of the F# library passed for netstandard2.0, net10.0, and net11.0. - After building the native test dependency, Release builds of the full continuous-profiler application passed for net462, net10.0, and net11.0, including the C# -> VB -> F# project-reference chain. - Successful builds reported zero warnings and zero errors. Assisted-by: GPT-6
Kielek
added a commit
to Kielek/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Nov 9, 2026
The continuous-profiler test application's F# dependency fails to compile for netstandard2.0 with .NET 11 RC2. FSC reports FS0193: System.IO in System.Runtime does not contain Stream. The net10.0 and net11.0 targets still build, so the failure appears only on Windows, where netstandard2.0 is added for the net462 consumer through the VB test dependency. Central package management disables the SDK's implicit FSharp.Core package reference. The F# project had no explicit reference, leaving the compiler to fall back to FSharp.Core.dll from its own tool directory. The copy bundled with SDK 10 targeted netstandard2.0. Upstream deliberately changed the SDK tool payload to the net10.0 assembly to support IAsyncDisposable in F# Interactive task expressions. Resolving that tool assembly against netstandard2.0 references produces the misleading Stream error even though our F# source does not use Stream. Add an explicit FSharp.Core PackageReference and centrally pin 11.0.101-rc2.26504.105, matching the RC2 SDK's FSCorePackageVersion. NuGet now selects lib/netstandard2.0 for the framework-compatible build and lib/net10.0 for the net10.0 and net11.0 builds. This follows the F# maintainers' guidance for projects using central package management. Upstream context: - Intentional SDK payload change, dotnet/fsharp#20555: dotnet/fsharp#20555 - Introducing commit: dotnet/fsharp@a17252b - Explanation of implicit-reference behavior with CPM: dotnet/fsharp#14823 (comment) - Maintainer recommendation to reference FSharp.Core explicitly and start with the SDK's FSCorePackageVersion: dotnet/fsharp#18690 (comment) Validation on Windows x64 with .NET SDK 11.0.100-rc.2.26504.105: - Reproduced FS0193 in the original netstandard2.0 build. - Release builds of the F# library passed for netstandard2.0, net10.0, and net11.0. - After building the native test dependency, Release builds of the full continuous-profiler application passed for net462, net10.0, and net11.0, including the C# -> VB -> F# project-reference chain. - Successful builds reported zero warnings and zero errors. Assisted-by: GPT-6
Kielek
added a commit
to Kielek/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Nov 9, 2026
The continuous-profiler test application's F# dependency fails to compile for netstandard2.0 with .NET 11 RC2. FSC reports FS0193: System.IO in System.Runtime does not contain Stream. The net10.0 and net11.0 targets still build, so the failure appears only on Windows, where netstandard2.0 is added for the net462 consumer through the VB test dependency. Central package management disables the SDK's implicit FSharp.Core package reference. The F# project had no explicit reference, leaving the compiler to fall back to FSharp.Core.dll from its own tool directory. The copy bundled with SDK 10 targeted netstandard2.0. Upstream deliberately changed the SDK tool payload to the net10.0 assembly to support IAsyncDisposable in F# Interactive task expressions. Resolving that tool assembly against netstandard2.0 references produces the misleading Stream error even though our F# source does not use Stream. Add an explicit FSharp.Core PackageReference and centrally pin 11.0.101-rc2.26504.105, matching the RC2 SDK's FSCorePackageVersion. NuGet now selects lib/netstandard2.0 for the framework-compatible build and lib/net10.0 for the net10.0 and net11.0 builds. This follows the F# maintainers' guidance for projects using central package management. Upstream context: - Intentional SDK payload change, dotnet/fsharp#20555: dotnet/fsharp#20555 - Introducing commit: dotnet/fsharp@a17252b - Explanation of implicit-reference behavior with CPM: dotnet/fsharp#14823 (comment) - Maintainer recommendation to reference FSharp.Core explicitly and start with the SDK's FSCorePackageVersion: dotnet/fsharp#18690 (comment) Validation on Windows x64 with .NET SDK 11.0.100-rc.2.26504.105: - Reproduced FS0193 in the original netstandard2.0 build. - Release builds of the F# library passed for netstandard2.0, net10.0, and net11.0. - After building the native test dependency, Release builds of the full continuous-profiler application passed for net462, net10.0, and net11.0, including the C# -> VB -> F# project-reference chain. - Successful builds reported zero warnings and zero errors. Assisted-by: GPT-6
Kielek
added a commit
to Kielek/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Nov 9, 2026
The continuous-profiler test application's F# dependency fails to compile for netstandard2.0 with .NET 11 RC2. FSC reports FS0193: System.IO in System.Runtime does not contain Stream. The net10.0 and net11.0 targets still build, so the failure appears only on Windows, where netstandard2.0 is added for the net462 consumer through the VB test dependency. Central package management disables the SDK's implicit FSharp.Core package reference. The F# project had no explicit reference, leaving the compiler to fall back to FSharp.Core.dll from its own tool directory. The copy bundled with SDK 10 targeted netstandard2.0. Upstream deliberately changed the SDK tool payload to the net10.0 assembly to support IAsyncDisposable in F# Interactive task expressions. Resolving that tool assembly against netstandard2.0 references produces the misleading Stream error even though our F# source does not use Stream. Add an explicit FSharp.Core PackageReference and centrally pin 11.0.101-rc2.26504.105, matching the RC2 SDK's FSCorePackageVersion. NuGet now selects lib/netstandard2.0 for the framework-compatible build and lib/net10.0 for the net10.0 and net11.0 builds. This follows the F# maintainers' guidance for projects using central package management. Upstream context: - Intentional SDK payload change, dotnet/fsharp#20555: dotnet/fsharp#20555 - Introducing commit: dotnet/fsharp@a17252b - Explanation of implicit-reference behavior with CPM: dotnet/fsharp#14823 (comment) - Maintainer recommendation to reference FSharp.Core explicitly and start with the SDK's FSCorePackageVersion: dotnet/fsharp#18690 (comment) Validation on Windows x64 with .NET SDK 11.0.100-rc.2.26504.105: - Reproduced FS0193 in the original netstandard2.0 build. - Release builds of the F# library passed for netstandard2.0, net10.0, and net11.0. - After building the native test dependency, Release builds of the full continuous-profiler application passed for net462, net10.0, and net11.0, including the C# -> VB -> F# project-reference chain. - Successful builds reported zero warnings and zero errors. Assisted-by: GPT-6
Kielek
added a commit
to Kielek/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Nov 9, 2026
The continuous-profiler test application's F# dependency fails to compile for netstandard2.0 with .NET 11 RC2. FSC reports FS0193: System.IO in System.Runtime does not contain Stream. The net10.0 and net11.0 targets still build, so the failure appears only on Windows, where netstandard2.0 is added for the net462 consumer through the VB test dependency. Central package management disables the SDK's implicit FSharp.Core package reference. The F# project had no explicit reference, leaving the compiler to fall back to FSharp.Core.dll from its own tool directory. The copy bundled with SDK 10 targeted netstandard2.0. Upstream deliberately changed the SDK tool payload to the net10.0 assembly to support IAsyncDisposable in F# Interactive task expressions. Resolving that tool assembly against netstandard2.0 references produces the misleading Stream error even though our F# source does not use Stream. Add an explicit FSharp.Core PackageReference and centrally pin 11.0.101-rc2.26504.105, matching the RC2 SDK's FSCorePackageVersion. NuGet now selects lib/netstandard2.0 for the framework-compatible build and lib/net10.0 for the net10.0 and net11.0 builds. This follows the F# maintainers' guidance for projects using central package management. Upstream context: - Intentional SDK payload change, dotnet/fsharp#20555: dotnet/fsharp#20555 - Introducing commit: dotnet/fsharp@a17252b - Explanation of implicit-reference behavior with CPM: dotnet/fsharp#14823 (comment) - Maintainer recommendation to reference FSharp.Core explicitly and start with the SDK's FSCorePackageVersion: dotnet/fsharp#18690 (comment) Validation on Windows x64 with .NET SDK 11.0.100-rc.2.26504.105: - Reproduced FS0193 in the original netstandard2.0 build. - Release builds of the F# library passed for netstandard2.0, net10.0, and net11.0. - After building the native test dependency, Release builds of the full continuous-profiler application passed for net462, net10.0, and net11.0, including the C# -> VB -> F# project-reference chain. - Successful builds reported zero warnings and zero errors. Assisted-by: GPT-6
Kielek
added a commit
to Kielek/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Nov 9, 2026
The continuous-profiler test application's F# dependency fails to compile for netstandard2.0 with .NET 11 RC2. FSC reports FS0193: System.IO in System.Runtime does not contain Stream. The net10.0 and net11.0 targets still build, so the failure appears only on Windows, where netstandard2.0 is added for the net462 consumer through the VB test dependency. Central package management disables the SDK's implicit FSharp.Core package reference. The F# project had no explicit reference, leaving the compiler to fall back to FSharp.Core.dll from its own tool directory. The copy bundled with SDK 10 targeted netstandard2.0. Upstream deliberately changed the SDK tool payload to the net10.0 assembly to support IAsyncDisposable in F# Interactive task expressions. Resolving that tool assembly against netstandard2.0 references produces the misleading Stream error even though our F# source does not use Stream. Add an explicit FSharp.Core PackageReference and centrally pin 11.0.101-rc2.26504.105, matching the RC2 SDK's FSCorePackageVersion. NuGet now selects lib/netstandard2.0 for the framework-compatible build and lib/net10.0 for the net10.0 and net11.0 builds. This follows the F# maintainers' guidance for projects using central package management. Upstream context: - Intentional SDK payload change, dotnet/fsharp#20555: dotnet/fsharp#20555 - Introducing commit: dotnet/fsharp@a17252b - Explanation of implicit-reference behavior with CPM: dotnet/fsharp#14823 (comment) - Maintainer recommendation to reference FSharp.Core explicitly and start with the SDK's FSCorePackageVersion: dotnet/fsharp#18690 (comment) Validation on Windows x64 with .NET SDK 11.0.100-rc.2.26504.105: - Reproduced FS0193 in the original netstandard2.0 build. - Release builds of the F# library passed for netstandard2.0, net10.0, and net11.0. - After building the native test dependency, Release builds of the full continuous-profiler application passed for net462, net10.0, and net11.0, including the C# -> VB -> F# project-reference chain. - Successful builds reported zero warnings and zero errors. Assisted-by: GPT-6
Kielek
added a commit
to Kielek/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Nov 12, 2026
The continuous-profiler test application's F# dependency fails to compile for netstandard2.0 with .NET 11 RC2. FSC reports FS0193: System.IO in System.Runtime does not contain Stream. The net10.0 and net11.0 targets still build, so the failure appears only on Windows, where netstandard2.0 is added for the net462 consumer through the VB test dependency. Central package management disables the SDK's implicit FSharp.Core package reference. The F# project had no explicit reference, leaving the compiler to fall back to FSharp.Core.dll from its own tool directory. The copy bundled with SDK 10 targeted netstandard2.0. Upstream deliberately changed the SDK tool payload to the net10.0 assembly to support IAsyncDisposable in F# Interactive task expressions. Resolving that tool assembly against netstandard2.0 references produces the misleading Stream error even though our F# source does not use Stream. Add an explicit FSharp.Core PackageReference and centrally pin 11.0.101-rc2.26504.105, matching the RC2 SDK's FSCorePackageVersion. NuGet now selects lib/netstandard2.0 for the framework-compatible build and lib/net10.0 for the net10.0 and net11.0 builds. This follows the F# maintainers' guidance for projects using central package management. Upstream context: - Intentional SDK payload change, dotnet/fsharp#20555: dotnet/fsharp#20555 - Introducing commit: dotnet/fsharp@a17252b - Explanation of implicit-reference behavior with CPM: dotnet/fsharp#14823 (comment) - Maintainer recommendation to reference FSharp.Core explicitly and start with the SDK's FSCorePackageVersion: dotnet/fsharp#18690 (comment) Validation on Windows x64 with .NET SDK 11.0.100-rc.2.26504.105: - Reproduced FS0193 in the original netstandard2.0 build. - Release builds of the F# library passed for netstandard2.0, net10.0, and net11.0. - After building the native test dependency, Release builds of the full continuous-profiler application passed for net462, net10.0, and net11.0, including the C# -> VB -> F# project-reference chain. - Successful builds reported zero warnings and zero errors. Assisted-by: GPT-6
MaceWindu
added a commit
to linq2db/linq2db
that referenced
this pull request
Nov 12, 2026
* Target .NET 11 and drop .NET 8 and 9 .NET 11's release coincides with .NET 8 and 9 going end of life, so the supported set becomes net462, netstandard2.0, net10.0 and net11.0. Adding or dropping a .NET version used to mean editing a TFM list in roughly ten project and props files. Build/TargetFrameworks.props is now the single source: ModernTargetFrameworks, LatestTargetFramework, LowestSupportedTargetFramework and the Library/Test/Tool lists derive from it, and every consumer reads a property. Directory.Packages.props collapses the same way. A package whose major follows the runtime carried one row per TFM, so a new TFM restored with no version at all. Those rows now read $(BandLatest) or $(BandLatestForNuget), leaving two rows per package instead of one per TFM - roughly 66 rows down to 24. Adding a runtime is two lines. Notes on the version policy: - $(LegacyNetPackageVersion) is the in-box package floor for net462 and netstandard2.0, and tracks the lowest supported runtime per issue 3953, so it moves to 10.0.0. $(LegacyNetPackageLatest) is the same band's newest patch, for pins that must avoid a known-vulnerable build - Microsoft.Bcl.Memory 10.0.0 is the build GHSA-73j8-2gch-69rq names. - Microsoft.CodeAnalysis.CSharp.Workspaces targets the Roslyn bundled with the lowest supported SDK's first feature band. That was .NET 8 giving Roslyn 4.8, and becomes .NET 10 giving 5.0. Tests.Analyzers follows it off net8.0, which also retires the .NET 8 runtime provisioning steps in CI. - Net.IBM.Data.Db2 has no .NET 11 build, so its net10.0 conditions widen to IsTargetFrameworkCompatible rather than an equality test. global.json pins the exact 11.0.100-rc.1 build. Asking for 11.0.100 does not resolve it, because a prerelease sorts below the release it precedes. Two analyzer rules are suppressed scoped to net11.0, with the reasoning in place at each site. .NET 11 added StringComparison overloads for the char string searches and a CancellationToken overload for TextWriter.WriteLineAsync, so MA0001 and CA2016 report real findings there - but the argument is a compile error on every other TFM we target and Meziantou.Polyfill does not carry the overloads yet. * EF Core: replace the EF8 and EF9 integrations with EF11 EF8 and EF9 both target net8.0 and reference linq2db, so dropping that TFM takes them with it. EF Core 11 replaces them, leaving EF3 for netfx plus EF10 and EF11. Two gaps in the EF Core 11 ecosystem shape the test project: - Neither Pomelo nor the Microting fork has an EF Core 11 line, so the MySQL provider calls sit behind EF_MYSQL, declared by the EF3 and EF10 test projects. The ADO driver has no such gap, so MySqlConnector is referenced directly and the connection-string code needs no guard. - Npgsql's 11.0.0-rc.1 hard-pins Microsoft.EntityFrameworkCore 11.0.0-rc.1.26431.118, a build that was never published - see npgsql/efcore.pg issue 3913. NuGet treats a direct reference to the published build as a downgrade rather than a conflict, so two pins plus a scoped NoWarn make PostgreSQL restore. Remove all three once Npgsql ships a release pinning a published build. Version-specific ifdefs become capability symbols so a future EF version is a token in one project file rather than an edit to every guard. EF10_OR_GREATER replaces "if EF10", and the two "not EF31 and not EF8" sites become "not EF31". FSharpTests.cs was dead in a way worth recording: it sat behind "if EF8", but the EF8 test project defined no constants at all, so EF8 existed only in the source project and the file compiled into no assembly. That project was also the only consumer of the F# model project, which its removal would have orphaned. Both are repaired together - the F# project is wired into the EF10 tests, which declare EF_FSHARP, and the guard now names that. The ActiveIssue gate stays, so a failure reports rather than breaks. EF Core 11 obsoletes FromSqlInterpolated. The two tests named for it keep calling it behind a scoped pragma, since covering what users call is the point of those tests. * CI: drop the no-information TFM flags and wire net11 Every one of the 25 test-matrix entries set enable_fw_net80, enable_fw_net90 and enable_fw_net100 to true. The flags carried no information while costing 25 edits per .NET version, so they are gone. Only enable_fw_netfx varies and remains - 14 true against 11 false. The modern set now lives in the tfms tables the CI templates already use, and a future TFM costs zero matrix edits. The windows legs still need the "run a non-netfx TFM only where linux cannot cover" rule, so test-jobs.yml passes a single modern_tfms gate in place of three flags, and the workflow rows gained a gate field to read it. Equivalence was checked rather than assumed: running the old selection rules over the old matrix and the new rules over the new one gives identical leg names, configs and per-leg TFM enablement across all 18 surfaces. The rest is net11 wiring. Build/Azure/net110 replaces net80 and net90, the SDK installs pick up 11.x with prerelease enabled, artifact names and per-TFM steps follow, and the .NET 8 runtime provisioning goes away with Tests.Analyzers moving off net8.0. Both workflows carry the exact prerelease SDK build in one env var rather than repeating the version at each setup-dotnet. Worth knowing when reading a red run on this branch: the comment-triggered path always executes the default branch's copy of tests.yml, which knows nothing about net110. Use gh workflow run tests.yml --ref to exercise this branch's matrix. * Fix the analyzer findings the .NET 11 SDK surfaces Two rules fire on code the older SDK accepted, and both are worth fixing rather than suppressing. IDE0303 wants collection expressions where the code called ImmutableArray.Create. Four sites in the code-fix providers. CA2026 is new in the .NET 11 SDK and names a real defect: JsonDocument owns a pooled buffer, so reading RootElement off an undisposed one leaks it. JsonElement.Parse is the one-liner the rule suggests, but it is .NET 11 only and this fixture also builds for net462 and net10.0, so a small using helper does the same job portably. The expected values are already normalised constants, but the helper keeps the re-parse rather than comparing against them directly - that would be a quiet change to what the test asserts. * Match the analyzer tests' reference pack to the project's target framework Tests.Analyzers moved from net8.0 to $(LowestSupportedTargetFramework), but both verifiers still compiled their snippets against ReferenceAssemblies.Net.Net80 while the harness loads a net10.0 linq2db.dll - CS1705 on every test that references linq2db. The pack now comes from one place, so the next target-framework move is a single line. It stays a literal rather than deriving from the TFM because the testing SDK (1.1.4) has no Net110 entry, which is also why the project itself cannot move past net10.0 yet. * Stop building the LINQPad driver twice at once LinqToDB.LINQPad.Pack.csproj passed GenerateLpxArtifacts=false as a global property on its ProjectReference. The property is inert there - its only consumer, the PostBuild2 target, is conditioned on net472 while the reference pins net8.0-windows7.0 - but a global property the solution build does not also set makes that a second MSBuild instance of the same project and target framework, and the two race to write the same output. CI hit it as MSB4018: GenerateDepsFile failed - the process cannot access .build/bin/LinqToDB.LINQPad/Release/net8.0-windows7.0/linq2db.LINQPad.deps.json The race is latent on master; this branch's shallower dependency graph is what exposed it. * One test config per CI job instead of one per job and target framework Build/Azure carried a directory per target framework - netfx, net100, net110 - whose files were byte-identical apart from the configuration key they were stored under, so every .NET release meant adding or deleting ~27 files that said nothing new. The two modern directories were identical, and netfx differed in exactly one file. They collapse into Build/Azure/configs: one file per job, holding a single target-framework-agnostic Azure.TestJob section that DataProviders.json points every <TFM>.Azure configuration at. The staging and copy steps lose their bucket path segment, which also retires run-provider-tests' --flag/-Flag parameter - it existed only to name that directory. A new .NET version now costs nothing here. sqlserver.2005 is the one config that really does vary by framework: netfx keeps its remote context while the modern legs disable it. That needed DisableRemoteContext to survive BasedOn - it was the only TestSettings field missing from SettingsReader.Merge, and only this config ever sets it, so carrying it through is behaviour-preserving. SettingsReaderTests.SharedTestJobSection pins both halves. hana2.sh generates its config at run time, since the ODBC driver path is only known once the client is unpacked. It was still emitting NET80/NET90/NET100 sections and no NET110 one, so the net11 SAP HANA leg would have resolved zero providers and reported green. It now emits the same Azure.TestJob shape as the committed configs and needs no edit per .NET version either. Equivalence: the 27 config names the matrix selects map one-to-one onto the 27 files, with no missing entries and no orphans, and the 14 files the netfx directory used to hold are exactly the 14 entries with enable_fw_netfx: true. * Refresh the contributor docs and Test.cmd for the net10/net11 target set Test.cmd was not a documentation problem: it still built and ran net8.0 and net9.0, and invoked the Tests.EntityFrameworkCore.EF8 and EF9 projects this branch deletes, so it was broken outright. Its parameter list drops from five positions to four. CONTRIBUTING.md follows it - target list, the Test.cmd parameters and example, the Azure CI framework list, and the NET80/NET90 sections of the sample UserDataProviders.json - plus a pointer to Build/TargetFrameworks.props as the place a new .NET version is declared. * Run the F# EF.Core fixture on EF Core 11 as well as 10 FSharpTests.cs had compiled into no assembly since EF8 was added - it sat behind #if EF8, a constant only the EF8 source project ever defined. Wiring it back is what this branch has to decide, since the EF8 projects are gone, and it now runs on both remaining integrations. The model project splits in two rather than multi-targeting: every LinqToDB.EntityFrameworkCore.EFnn publishes the same PackageId, so NuGet collapses them inside one project's restore graph and a target-framework-conditional reference to two of them resolves to the wrong one (NU1201). Two projects over a shared .props is the same shape the C# EF test projects already use. Both Issue4646 cases are gated. EntityFrameworkCore.FSharp's last release is 6.0.7 (2022) and it registers an IMemberTranslator that calls ISqlExpressionFactory.Convert(SqlExpression, Type, RelationalTypeMapping), removed in EF Core 10 - so an option-typed member reaching the query pipeline throws MissingMethodException. TestLeftJoin stays live: it never reaches a member translator. * Refresh the third-party notices for the net10/net11 target set components.json's per-target-framework version maps still named net8.0 and net9.0 and carried no net11.0 entries, and those maps are rendered straight into the generated notices - so every artifact's notices stated versions for frameworks the release no longer ships and omitted the one it does. It would also have failed the packed-artifact gate: Test-PayloadVersions raises a violation for a component with no entry for a framework the tool payload ships. The maps come from -Action harvest against the restore graphs. net8.0-windows7.0 stays: the LINQPad 5 driver still builds it. System.Net.ServerSentEvents is dropped outright - it was a net8.0/net9.0-only CLI transitive, so it ships nowhere now; its licence text is shared with 46 other components and stays. Nine Microsoft.Extensions.* abstractions have a net10.0 entry and no net11.0 one. That is correct rather than a gap: .NET 11 folds them into the shared framework, so they are absent from the net11.0 restore graph and no binary is redistributed. Verified against the CLI's project.assets.json. * Stop validating the packages against a baseline that still ships net8.0 and net9.0 Dropping two target frameworks from a shipped package is what package validation is built to report, and it reported it: 724 errors across linq2db and linq2db.Scaffold, every one comparing lib/netstandard2.0 against [Baseline] lib/net8.0 or lib/net9.0. The 6.0.0 baseline carries net462, netstandard2.0, net8.0, net9.0 and net10.0; this branch ships net462, netstandard2.0, net10.0 and net11.0, so a net8/net9 consumer resolves to netstandard2.0 and its smaller surface is reported member by member. No released baseline exists yet without those two frameworks, so the comparison cannot be made to pass by moving PackageValidationBaselineVersion. DisablePackageBaselineValidation drops only the baseline half - the in-package target-framework validation keeps running. Suppressing 724 entries in CompatibilitySuppressions.xml would instead record a deliberate removal as if it needed excusing, and every entry would go stale the moment the release lands. ApiCompatPermitUnnecessarySuppressions comes with it: with the baseline comparison off, the existing suppression file matches nothing, and an unnecessary suppression is itself an error. Both properties come off together once a released baseline carries the reduced framework set. The step could not fail here before: pack never ran, because the LINQPad deps.json race failed the build first. * Translate Min and Max when .NET 11 binds them to MemoryExtensions `new[] { p.Date1, p.Date2 }.Max()` used to produce an Enumerable.Max call over the array. On .NET 11 the compiler prefers the span overload, so the expression tree is MemoryExtensions.Max over an implicit ReadOnlySpan conversion, and TranslateMinMaxSumAverage - which only accepts Queryable and Enumerable - refused it with "The LINQ expression could not be converted to SQL". It reaches any user who compiles against net11, not just the test that caught it. .NET 10 made the same move for Contains, and ExpressionBuildVisitor already unwraps the span there; this follows it. Measured against both runtimes rather than assumed: only Min and Max changed in .NET 11. Sum, Average, Count, Any, First and ElementAt still bind to Enumerable, and Contains and SequenceEqual were already on MemoryExtensions from .NET 10. * Compare floating-point test values within a tolerance on .NET 11 .NET 11 converts double to decimal exactly instead of rounding to 15 significant digits (https://learn.microsoft.com/dotnet/core/compatibility/core-libraries/11/decimal-biginteger-floating-point-conversions), so a value a provider stores as REAL no longer equals the in-memory decimal it is compared against - 1.1 against 1.1000000000000000888178419700. That is 147 failures across 19 tests on the net11 leg, which had never run the main suite before this branch. The change is intentional and the library is left alone; the assertions absorb it. TestBase.AreEqualWithinDelta infers T, so the anonymous projections can use it, and walks composite types so the tolerance reaches a decimal nested in a projection or an entity. Three sites that assert through NUnit rather than AreEqual use Within(...).Percent instead. The tolerance is relative. MappingTypingByConstant asserts 2147483648.123m, where the conversion noise is ~2e-7, while the rounding tests must still catch a difference at the fifth decimal place on values of order 10 - no fixed absolute delta satisfies both. 1e-12 relative is four orders of magnitude above the noise floor (|value| * 2^-53) and far below anything these tests distinguish. Two tests needed something other than a tolerance: - Round4, Round4Sql and Round11 round the decimal rather than casting to double first. .NET 11 also changed Math.Round(double, digits) at midpoints - Math.Round(6.55d, 1) is 6.5 there and 6.6 on .NET 10 - so the client no longer agrees with the SQL ROUND it generates, a 0.1 gap no tolerance should paper over. The decimal overload is unchanged. - GroupByAggregate21 compares inside the grouping key, where an assertion tolerance cannot reach, so both sides round the average to the constant's own scale. Verified on net11 against SQLite and Northwind SQLite: 88 cases, 0 failures, in the same filter that produced 14 before. * Record the LINQPad driver's own versions in the third-party notices Three components ship in the net8.0-windows7.0 LINQPad driver but said nothing about it: two had no entry for that framework at all and System.Collections.Immutable still claimed 8.0.0 where the graph resolves 10.0.12. Pre-existing drift rather than anything the target-framework change caused, which is why it was left out of the earlier refresh. -Action harvest now proposes nothing: the manifest agrees with every restore graph. * Stop naming a target framework in the full_run description It said "not just net10", which this branch makes wrong. Phrased against the newest TFM rather than a version number, so the next .NET release does not make it wrong again - the behaviour it describes is already defined that way (pr_main in test-workflow-linux.yml). * Skip the MySQL EF providers when the EF version has no MySQL package TestConfiguration.EFProviders is EF-version-agnostic and lists the MySQL connector configurations unconditionally, so the EF11 leg offered them to ContextTestBase.ProviderSetup, whose MySQL arm sits behind EF_MYSQL. Every case it reached failed with ProviderSetup is not implemented for provider MySqlConnector.8.0 487 cases on the MySQL job, which is every EF test that job runs. Neither Pomelo nor the Microting fork has an EF Core 11 line, and Tests/EntityFrameworkCore/Tests/Providers.md already records that the net11.0 leg runs without MySQL - only the provider selection never followed. EFTestProviders.Supported applies it inside the EF test assembly, where EF_MYSQL is defined, so the EF3 and EF10 projects keep every provider they have today. * Compare decimals within a tolerance where a provider round-trips them .NET 11 converts double to decimal exactly instead of rounding to 15 significant digits, so a value a provider stores as REAL - or, on Sybase, hands back through a double - no longer equals the in-memory decimal it is compared against. 1.11 reads back as 1.1100000000000000231065166981. Most of the affected tests compare whole LinqDataTypes rows, and that type already compares leniently by design: its Equals ignores sub-second precision on DateTimeValue and whitespace on StringValue, because it exists to compare provider round-trips. MoneyValue joins them, which is what fixes the bulk of the cases rather than editing every call site. The rest compare bare decimals or assert per column, and take the tolerance where they are: Round9/Round12 and the BoolField/ToDecimal3 family move to AreEqualWithinDelta, Max4, MultipleRows_TestTyping, MergeTypes and Sybase's bulk-copy column walk take Within(...).Percent, and the F# decimal option round-trip unwraps before comparing, since Within cannot reach inside an option. FloatingPoint carries the one relative tolerance and the comparison both TestBase and LinqDataTypes now share, so the two cannot drift apart. Verified against the local Sybase container on net11.0: the full suite is 8844 tests with no failure attributable to this. * Gate the three Sybase tests the AseClient decimal defect breaks On .NET 11 every AdoNetCore.AseClient read path returns DECIMAL and NUMERIC through a double: CAST(123.45 AS DECIMAL(10,2)) comes back as 123.45000000000000256981935710 from GetValue, GetProviderSpecificValue, GetDecimal and GetString alike, while GetDouble and MONEY are exact. The same driver, server and query return 123.45 on .NET 10, so no read path preserves the value and nothing linq2db computes can recover it. Reported upstream as DataAction/AdoNetCore.AseClient#240. Most of the fallout is a comparison problem and is handled by the tolerance commit. These three are not: - ToBit2 filters on !Sql.Convert(Bit, MoneyValue - 4.5m) client-side, and 4.5000000000000003 - 4.5 is no longer zero, so the predicate flips and the expected set is empty. A tolerance cannot fix a predicate. - Issue42Test writes the round-tripped row back. The 28-decimal MoneyValue makes linq2db declare @MoneyValue Decimal(29, 28), the update does not take, and the re-read BoolValue is unchanged. - SybaseProviderSpecificReadMatrix asserts the formatted value a provider returns, which is the corrupted string itself. Each gate is scoped to net11.0 and up, so net462 and net10.0 keep running the tests unchanged and no gate-too-wide verdict can fire where Sybase still works. * Widen the scaled intermediate in YDB's ROUND emulation Math.Round(x, p) over a decimal column failed at runtime whenever the scaled value did not fit the column's declared precision. RoundScaled multiplied by 10^p in the value's own type, so for a Decimal(6,2) column holding 11.45 neither the product nor the 10^p literal is representable - Decimal('100000', 6, 2) does not exist. YDB answers an out-of-range Decimal with an empty optional instead of an error, and the surrounding Unwrap turns that into a query-terminating PreconditionFailed: Failed to unwrap empty optional The intermediate now carries p more integer digits, clamped to YQL's 35-digit ceiling the same way GetCommonDecimalType does it. The value is cast up to that type before the multiply, because DecimalMul rejects operands whose Decimal types differ: "Cannot calculate with different decimals: Decimal(6,2) != Decimal(7,2)". Round13 pins it - server-side rounding to more digits than the column's scale. Against the local YDB container it fails with the error above without the fix and passes with it, on net10.0 as well as net11.0, so this is not a .NET 11 defect: only the overload Round4Sql calls changed on this branch, which is what reached the path. Also on master as #5943, for 6.5.1. * Drop the DB2 gate on Round4Sql that the decimal overload made moot Round4Sql now rounds the decimal instead of casting to double first - the .NET 11 midpoint change to Math.Round(double, digits) - so DB2's ROUND no longer runs over a Float, and the one-ulp mismatch the gate described is gone with it. The run-and-verify attribute fails a leg when a gated test passes, which is what turned Lin w_DB2InformixDuckDB red on run 35455297660: 26143 tests, exactly two failures, both of them Round4Sql - "DB2" and "DB2.LinqService". The gate named TestProvName.AllDB2, whose third member DB2zOS is exercised nowhere in CI, so no configuration is left for it to hold. * Name the target-framework properties CONTRIBUTING actually has The two properties were introduced on this branch as ModernTargetFrameworks and LatestTargetFramework; CONTRIBUTING kept the names from an earlier draft. It also claimed the two lines were the whole edit for a new .NET release, while Build/TargetFrameworks.props' own comment names a third site - the band row in Directory.Packages.props. * Move the LINQPad nuget driver from net8.0 to net10.0 The driver was the last net8.0 target on the branch: `net472;net8.0-windows7.0`, packed into `lib/net8.0`. With linq2db no longer shipping net8.0, its .NET build bound the netstandard2.0 asset, and the System.Collections.Immutable floor pin pointed at `$(Net8LatestForNuget)`, which this branch no longer defines - the empty override fell back to 10.0.12 and stamped a reference a .NET 8/9 host cannot satisfy (the #5768 load failure). - Driver builds `net10.0-windows7.0`, packs into `lib/net10.0` with a `net10.0` dependency group. - The SCI pin is gone: on net10.0 the package is framework-provided and pruned (NU1510), so the driver references the in-box 10.0.0.0 by construction. - Net.IBM.Data.Db2 (+ -lnx/-osx) 9.0.0.400 rows existed only for the net8 driver; collapsed to 10.0.0.200. That client makes `DB2Connection.ReleaseObjectPool()` obsolete-as-error with no replacement, so DB2/Informix `ClearAllPools` now only releases pools in the net472 lpx build. - Runtime-folder fallback table knows net11.0. - Third-party notices: LINQPad graph keys retargeted to net10.0-windows7.0 per `-Action harvest`; System.Threading.AccessControl dropped (no restore graph has it any more). Harvest is clean with the CLI, NuGet and LINQPad graphs restored; `-Action check` passes. * Move the .NET 11 SDK and in-box packages to RC2 global.json and the two workflows pin 11.0.100-rc.2.26504.105; BandLatest / BandLatestForNuget move to 11.0.0-rc.2.26504.105. Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime goes to 11.0.0-rc.1.1, the newest published. It still hard-pins Microsoft.EntityFrameworkCore [11.0.0-rc.1.26425.128], so the EF11 test project keeps its direct EF pins; those now resolve above the constraint, which NuGet reports as NU1608 rather than the NU1605 downgrade they used to perform. * Pin System.Security.Cryptography.Pkcs in the LINQPad lpx driver The net472 driver resolves Pkcs 8.0.1 through Microsoft.Data.SqlClient, which GHSA-2fmv-rv2c-59x7 / GHSA-846f-f764-76mx name. Master resolves the same version and restores clean on SDK 10.0.402; the .NET 11 RC2 SDK audits this project's transitive graph too and fails the restore. Reference the 9.0.21 that #6043 pins centrally, as linq2db.cli does - the lpx bundles its dependencies. The lpx then ships Pkcs, System.Formats.Asn1 and Microsoft.Bcl.Cryptography 9.0.21 on net472; notices regenerated. * Reference FSharp.Core explicitly on every linq2db.FSharp target linq2db.FSharp referenced FSharp.Core on net462 only. Under central package management the SDK adds no implicit FSharp.Core, so every other target compiled against the FSharp.Core bundled with the SDK and the package declared no dependency for it: 6.5.0's netstandard2.0/net8.0/net9.0/net10.0 assemblies reference FSharp.Core 10.1.0.0 that nothing in the nuspec asks for. The .NET 11 RC2 SDK bundles the net10.0 build of FSharp.Core (dotnet/fsharp#20555), so that fallback no longer compiles for netstandard2.0 (FS0193) and lifts net10.0+ to FSharp.Core 11.0.0.0. The floor follows the in-box package rule: per .NET band, the FSharp.Core its first SDK shipped; net462/netstandard2.0 take the lowest band's. That is 10.0.100 for net10.0/net462/netstandard2.0 and 11.0.101-rc2.26504.105 for net11.0 until RTM. Packed and verified: each target declares that version and its assembly references the matching FSharp.Core (10.0.0.0 / 11.0.0.0). The tests' central FSharp.Core gets a net11.0 row, since a direct 10.1.401 there would be a downgrade against linq2db.FSharp's net11 floor. * Examples: drop the pruned System.Security.Cryptography.Pkcs reference SignalRServer targets $(LatestTargetFramework) only, which is net11.0 on this branch; the ASP.NET shared framework supplies the package there, so the explicit reference #6043 added is pruned and fails restore with NU1510. * CI: fix the Linux binaries-cleanup condition that kept Azure test runs from starting 04cd93e dropped the per-TFM flag clause from every step condition, which left the cleanup step with a single-argument and(variables.title). Azure's and() needs at least two arguments, so the template failed to compile and every "/azp run test-*" on this branch was refused with "failed to run 1 pipeline(s)" (build 24338: "Step specifies condition and(variables.title) which is not valid"). The condition becomes plain variables.title; like master's, it has no succeeded(), so the binaries are still removed after a failed test step. * Ban the params ReadOnlySpan<object> twins of banned formatting overloads RS0030 bans per overload. .NET 9 added params ReadOnlySpan<object?> overloads of string.Format, string.Join, StringBuilder.AppendFormat and StringBuilder.AppendJoin, and overload resolution prefers them, so a call with 4+ arguments left the banned object[] overload without a warning. Found by the ban-list overload check run for the .NET 11 TFM; no current call site binds to them (Release build green with the bans in place). The overloads .NET 11 adds (Rune, char + StringComparison) are ordinal or explicit and stay allowed. * Move .NET 11 to RC3 SDK 11.0.100-rc.3.26522.148 (global.json, both workflows), the net11 package band 11.0.0-rc.3.26522.148 and FSharp.Core 11.0.101-rc3.26522.148; notices regenerated. Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime 11.0.0-rc.1.1 -> 11.0.0-rc.2, which pins EF Core [11.0.0-rc.2.26504.105]: still one release behind the band, so the EF11 test project's direct EF pins stay. Ban-list overload check RC3 vs RC2: no new overloads on banned members. * Tests: compare new master decimal tests within the .NET 11 conversion tolerance * Tests: Round16 takes its expected values from the in-memory rows On .NET 11 Sybase's values arrive through double, so the MoneyValue 11.45 that AssertQuery loads back is no longer a midpoint client-side and rounds to 11.5, while the server rounds the exact 11.45 to even. Compare against the exact test data, as Round13 does. Red on Sybase.Managed before (11.5 <> 11.4000...), green after; SQLite.MS green. * CI: install the pinned .NET 11 SDK in the docs workflow docs.yml (#6265) installs 10.x only, while global.json pins the .NET 11 RC on this branch, so the docs build - which its change detector triggers on a global.json change - would fail to resolve an SDK. Install the pin alongside 10.x, as build.yml does. * Move to .NET 11 GA: SDK 11.0.100, runtime packages 11.0.0 - global.json pins 11.0.100 without allowPrerelease; GitHub workflows install 11.x and drop DOTNET_SDK_11; Azure no longer passes includePreviewVersions for 11.x. - $(BandLatest*) net11 rows 11.0.0, FSharp.Core 11.0.101; third-party notices regenerated. - Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime 11.0.0-rc.3. It still pins EF Core [11.0.0-rc.3], so the EF11 test project keeps its direct EF pins. - EF11 tests override System.Security.Cryptography.Pkcs to the band version: EF Core SqlServer 11.0.0 requires >= 10.0.13, above the Tests-wide 9.0.21 floor (NU1605). Ban-list overload check against the GA reference pack: no new overloads on banned members compared with RC3. * linq2db.Extensions: drop Microsoft.Extensions.Logging.Abstractions on net11.0 .NET 11 ships it in the shared framework (https://learn.microsoft.com/dotnet/core/compatibility/extensions/11/extensions-in-shared-framework), so the net11.0 dependency group no longer lists it. It is the only one of the nine moved Microsoft.Extensions packages any project here references. * Translate Queryable.FullJoin on net11.0 JoinBuilder registered Enumerable.FullJoin behind NET11_0_OR_GREATER, but the arm never matched: .NET 11 ships Queryable.FullJoin only with an optional IEqualityComparer, so every call has six arguments and CanBuildMethod accepted five. Every FullJoin failed with "could not be converted to SQL". A sixth argument is now accepted when it is a null comparer constant. FULL JOIN also left both sides non-nullable; both now go through DefaultIfEmptyContext, as AllJoinsLinqBuilder does for LinqExtensions.FullJoin. FullJoinMethodTests: red before (8/8 "could not be converted to SQL"), green after on DuckDB net11.0 with Left/RightJoinMethodTests, 28/28. * Tests: System.Data.OleDb 11.0.0 for net10.0 and net11.0 11.0.0 carries the COM error-wrapper finalizer fix (dotnet/runtime#125221) that the 9.0.10 pin worked around, and ships a net10.0 asset, so both modern test TFMs move to it. linq2db.cli and the LINQPad driver stay on the central $(Net10Latest). * EF11 tests: run MySQL on Microting.EntityFrameworkCore.MySql 11.0.0-preview.1 Microting now publishes an EF Core 11 line (preview; its EF floor accepts 11.0.0), so the EF11 leg defines EF_MYSQL and references it as EF10 does. MySqlConnector stays referenced directly: the preview floors it at 2.5.0, which drops the connection during the handshake (Issue4603Test, error 1042); the central 2.6.2 does not. Local, MySqlConnector.8.0 on net11.0: 186 passed, 15 skipped; the two NoIdentity native bulk copy failures are the local container's disabled local_infile. * Tests: compare SumClampedValues totals within the decimal tolerance AggregationTests.SumClampedValues / SumClampedValuesPreservesOuterOperators (#6211) asserted exact decimals. AdoNetCore.AseClient returns DECIMAL through a double on .NET 11 (DataAction/AdoNetCore.AseClient#240), so Sybase read 7.7500000000000001613292832525 for 7.75 - 8 failures on tests [all] 43098813196 (Lin u_YdbSybase). They now use AreEqualWithinDelta, like the rest of the suite. Local, Sybase.Managed net11.0: 10/10. * Validate linq2db and Scaffold against the 6.0.0 baseline again, ignoring net8.0/net9.0 DisablePackageBaselineValidation switched the baseline comparison off for every framework, so net462, netstandard2.0 and net10.0 would have gone unchecked for the rest of 6.x. PackageValidationBaselineFrameworkToIgnore skips only the two frameworks the baseline still ships and these packages dropped. ApiCompatPermitUnnecessarySuppressions goes with it; suppressions regenerated via /api-baselines: linq2db 1193 -> 717 and Scaffold 5 -> 3 entries, every removed one against lib/net8.0 or lib/net9.0, none added. Review MIN001 (igor-tkachev). * linq2db.Analyzers: move the whole package to the Roslyn 5.0 floor The code-fix assembly already compiled against Workspaces 5.0.0 while the analyzer kept a 4.8.0 pin and both packed to analyzers/dotnet/roslyn4.8/cs, so hosts on Roslyn 4.8-4.14 (VS 2022) got the diagnostics but a code-fix assembly they cannot load. The analyzer now pins 5.0.0 too and both pack to roslyn5.0 - the Roslyn of the lowest supported SDK's first band (10.0.1xx), as Directory.Packages.props states. Readmes say Roslyn 5.0 / SDK 10.0.100 / Visual Studio 2026. The 5.0 surface makes ImmutableArray<T> collection expressions available, which IDE0303 then requires at four sites; ServerSideOnlyContract's remark ruling them out goes. It also exposes ICollectionExpressionOperation, so the DurationComparisonAnalyzerTests characterization comment no longer claims the [..] arm is impossible. Packed nupkg checked: analyzers/dotnet/roslyn5.0/cs holds both assemblies, each referencing only Microsoft.CodeAnalysis* 5.0.0.0. Tests.Analyzers (Release): 173/173. Review MIN002 (igor-tkachev). * EF tests: drop the dead #if NET8_0 arms in IssueTests No EF test project targets net8.0 any more, so the PostgreSQL-only arm of eleven Issue6181 tests (EF8's process-wide NodaTime plugin, #5978) never compiled; EF10 and EF11 already build the #else arm. Removed by script, keeping each #else line. EF11 Issue6181* on SQLite.MS: 11/11. Review NIT001 (igor-tkachev). * Drop net8.0/net9.0 from the packaged readmes and the setup-script provider file linq2db.cli's readme still promised a .NET 8 runtime and linq2db.Identity's listed net8.0/net9.0, both packed as the NuGet readme; they now say what ships ($(ToolTargetFrameworks) = net10.0/net11.0, $(LibraryTargetFrameworks)). Data/Setup Scripts/UserDataProviders.json gets the NET100/NET110 buckets of UserDataProviders.json.template instead of NET80/NET90/NET100. Re-review MIN005, NIT002 (igor-tkachev). * Docs: build with the net11.0 docfx and document the net11.0 API - docfx-version.json: linq2db-20261112-6cf15a5, a net11.0 build of the custom docfx with Roslyn 5.12.0-1.26529.118 (the SDK 11.0.100 compiler, C# 15). Hash checked against the release's docfx.zip.sha256. - docfx.json: the eleven TargetFramework entries move to net11.0, so the site shows current .NET's API. The EF8/EF9 metadata entries pointed at projects this branch deleted ("No .NET API project detected", which fails -WarningsAsErrors); they become one EF11 entry, and toc.yml follows. - docs.yml installs 11.x only: docfx no longer needs a .NET 10 runtime, and the 11.0 SDK builds the net10.0 targets. Comment rewritten. - docs/README.md: the release workflow publishes -f net11.0. Local ./docs/build.ps1 -WarningsAsErrors: 0 warnings, 16 API sections, on this branch and on #5944 (C# 15, runtime-async). Dropping 10.x is proven only by the CI run, since the box has the .NET 10 runtime. Re-review MIN003, NIT002 (igor-tkachev). * JoinBuilder: accept the six-argument form for FullJoin only 58b19b2 accepted a sixth argument whenever it was a null comparer constant, which also made Queryable.Join(..., comparer: null) and, on net10+, LeftJoin / RightJoin(..., null) translate - correct (a null comparer is the default comparer) but untested and outside this change's intent. It is now FullJoin only, under NET11_0_OR_GREATER like its builder registration; the other methods keep failing as before, tracked by #6310. FullJoin / LeftJoin / RightJoin method tests on DuckDB net11.0: 28/28. Release build clean. Re-review SUG001 (igor-tkachev). * CI: restore the column alignment of the net110 tfm rows fc6bcb2 turned `preview: true` into `preview: false` on the net110 rows of both Azure test-workflow templates and left the extra space the shorter value had used for alignment. * Tests: AreEqualWithinDelta keeps a field-mapped entity's own equality DeltaComparer walks public instance properties, so a type with none walked nothing and every instance compared equal to every other. LinqDataTypes maps its columns as public fields, which made Issue228Tests.Test - switched to AreEqualWithinDelta on this branch - check only the row count. Such a type now falls back to its own Equals, which for LinqDataTypes already compares MoneyValue within FloatingPoint.AreClose. Mutation (expected side returns other rows of the same count) on SQLite.MS net11.0: passes before this change, fails after. Every fixture using the delta asserts (MathFunction, ConcatUnion, Types, Where, Convert, GroupBy) green on SQLite.MS net11.0: 1267 tests. * Tests: Round4, Round4Sql and Round11 translate the double ROUND again They were the only tests of server-side Math.Round(double, digits), with and without ToEven, and the .NET 11 fix made them round the decimal on both sides, which left the Float ROUND translation untested on every TFM. .NET 11 only moved the client-side expected value at midpoints (Math.Round(6.55d, 1) is 6.5 there, 6.6 on .NET 10), so the query keeps the double and the expected side rounds the decimal. net11.0, direct and remote: SQLite Classic/MS, DuckDB, SqlCe, Access ACE OLE DB, Sybase.Managed, SqlServer.2022.MS, PostgreSQL.18 and DB2 green; DB2's one-ulp ROUND difference is inside the delta. * Tests: pin the net11 Sybase read-matrix gate to its DECIMAL row The AseClient#240 gate matched any Shouldly failure, and the DECIMAL row was third, so on net11.0 Sybase it aborted the matrix before the seven rows after it were asserted. The gate now names the row's SQL, and the row runs last. Sybase.Managed net11.0: the gate holds, so every row before DECIMAL passes. * Tests: SumClampedValues compares its totals in order again ad252ef moved both tests to AreEqualWithinDelta for Sybase's .NET 11 DECIMAL noise, which compares as a set: the totals are ordered by parent, and [0, 7.75, 0] or [7.75, 7.75, 0] passed. Rounding to ten places absorbs the noise and keeps the ordered ShouldBe. net11.0, direct and remote: SQLite Classic/MS, DuckDB, Access ACE OLE DB, Sybase.Managed, SqlServer.2022.MS, PostgreSQL.18 and DB2 green. * SAP HANA: probe the .NET client names on netstandard2.0 too Dropping the NET8_0_OR_GREATER arm left the netstandard2.0 list with Sap.Data.Hana.Core.v2.1 only, and netstandard2.0 is the asset .NET 8/9 apps resolve now: they would no longer find Sap.Data.Hana.Net.v8.0 / v6.0, which 6.5 found through lib/net8.0. Every non-netfx asset now probes the same names; a missing assembly is skipped by TryLoadAssembly / IsProviderAssemblyPresent. * slnx: restore the sqlserver2016-win.cmd item and build the EF11 F# model in Testing - master renamed the setup script in #5996; a merge resolution here brought back the old sqlserver2016.cmd, which does not exist. - Tests.EntityFrameworkCore.FSharp.EF11 was excluded from the Testing configuration while its consumer, Tests.EntityFrameworkCore.EF11, is built there. * Comments and template left stale by the net8/net9 drop - build-job.yml: the internal analyzer tests' host is Roslyn 5.0 and CodeGenerators takes 5.9; the net8.0 runtime task it contrasted with is gone. - Directory.Build.props: dropping net10.0 would not make the MA0001 calls portable, net462 and netstandard2.0 lack the overloads too. - ServerSideOnlyContract.cs: CodeGenerators takes Roslyn 5.9.0. - DurationComparisonAnalyzerTests: the fixture builds on net10.0; the component From* tests pin Net90 because it is the first pack with those shapes. - Directory.Packages.props: the band properties are not seen by a TargetFramework set in a project body or by a platform TFM (Tests.SingleFile evaluates both to empty). - EFTestProviders: every current EF test project defines EF_MYSQL. - UserDataProviders.json.template: NET100 and NET110 list YDB again. * Finish the Roslyn 5.0 floor comments (NIT003) build.yml and Tests.Analyzers.Internal.csproj still named the old 4.8 pin; build.yml also had CodeGenerators on 5.6 instead of 5.9.
MaceWindu
added a commit
to linq2db/linq2db
that referenced
this pull request
Nov 14, 2026
* Target .NET 11 and drop .NET 8 and 9
.NET 11's release coincides with .NET 8 and 9 going end of life, so the supported
set becomes net462, netstandard2.0, net10.0 and net11.0.
Adding or dropping a .NET version used to mean editing a TFM list in roughly ten
project and props files. Build/TargetFrameworks.props is now the single source:
ModernTargetFrameworks, LatestTargetFramework, LowestSupportedTargetFramework and
the Library/Test/Tool lists derive from it, and every consumer reads a property.
Directory.Packages.props collapses the same way. A package whose major follows the
runtime carried one row per TFM, so a new TFM restored with no version at all. Those
rows now read $(BandLatest) or $(BandLatestForNuget), leaving two rows per package
instead of one per TFM - roughly 66 rows down to 24. Adding a runtime is two lines.
Notes on the version policy:
- $(LegacyNetPackageVersion) is the in-box package floor for net462 and
netstandard2.0, and tracks the lowest supported runtime per issue 3953, so it
moves to 10.0.0. $(LegacyNetPackageLatest) is the same band's newest patch, for
pins that must avoid a known-vulnerable build - Microsoft.Bcl.Memory 10.0.0 is
the build GHSA-73j8-2gch-69rq names.
- Microsoft.CodeAnalysis.CSharp.Workspaces targets the Roslyn bundled with the
lowest supported SDK's first feature band. That was .NET 8 giving Roslyn 4.8, and
becomes .NET 10 giving 5.0. Tests.Analyzers follows it off net8.0, which also
retires the .NET 8 runtime provisioning steps in CI.
- Net.IBM.Data.Db2 has no .NET 11 build, so its net10.0 conditions widen to
IsTargetFrameworkCompatible rather than an equality test.
global.json pins the exact 11.0.100-rc.1 build. Asking for 11.0.100 does not resolve
it, because a prerelease sorts below the release it precedes.
Two analyzer rules are suppressed scoped to net11.0, with the reasoning in place at
each site. .NET 11 added StringComparison overloads for the char string searches and
a CancellationToken overload for TextWriter.WriteLineAsync, so MA0001 and CA2016
report real findings there - but the argument is a compile error on every other TFM
we target and Meziantou.Polyfill does not carry the overloads yet.
* EF Core: replace the EF8 and EF9 integrations with EF11
EF8 and EF9 both target net8.0 and reference linq2db, so dropping that TFM takes
them with it. EF Core 11 replaces them, leaving EF3 for netfx plus EF10 and EF11.
Two gaps in the EF Core 11 ecosystem shape the test project:
- Neither Pomelo nor the Microting fork has an EF Core 11 line, so the MySQL
provider calls sit behind EF_MYSQL, declared by the EF3 and EF10 test projects.
The ADO driver has no such gap, so MySqlConnector is referenced directly and the
connection-string code needs no guard.
- Npgsql's 11.0.0-rc.1 hard-pins Microsoft.EntityFrameworkCore 11.0.0-rc.1.26431.118,
a build that was never published - see npgsql/efcore.pg issue 3913. NuGet treats a
direct reference to the published build as a downgrade rather than a conflict, so
two pins plus a scoped NoWarn make PostgreSQL restore. Remove all three once
Npgsql ships a release pinning a published build.
Version-specific ifdefs become capability symbols so a future EF version is a token
in one project file rather than an edit to every guard. EF10_OR_GREATER replaces
"if EF10", and the two "not EF31 and not EF8" sites become "not EF31".
FSharpTests.cs was dead in a way worth recording: it sat behind "if EF8", but the
EF8 test project defined no constants at all, so EF8 existed only in the source
project and the file compiled into no assembly. That project was also the only
consumer of the F# model project, which its removal would have orphaned. Both are
repaired together - the F# project is wired into the EF10 tests, which declare
EF_FSHARP, and the guard now names that. The ActiveIssue gate stays, so a failure
reports rather than breaks.
EF Core 11 obsoletes FromSqlInterpolated. The two tests named for it keep calling it
behind a scoped pragma, since covering what users call is the point of those tests.
* CI: drop the no-information TFM flags and wire net11
Every one of the 25 test-matrix entries set enable_fw_net80, enable_fw_net90 and
enable_fw_net100 to true. The flags carried no information while costing 25 edits
per .NET version, so they are gone. Only enable_fw_netfx varies and remains - 14
true against 11 false. The modern set now lives in the tfms tables the CI templates
already use, and a future TFM costs zero matrix edits.
The windows legs still need the "run a non-netfx TFM only where linux cannot cover"
rule, so test-jobs.yml passes a single modern_tfms gate in place of three flags, and
the workflow rows gained a gate field to read it. Equivalence was checked rather
than assumed: running the old selection rules over the old matrix and the new rules
over the new one gives identical leg names, configs and per-leg TFM enablement
across all 18 surfaces.
The rest is net11 wiring. Build/Azure/net110 replaces net80 and net90, the SDK
installs pick up 11.x with prerelease enabled, artifact names and per-TFM steps
follow, and the .NET 8 runtime provisioning goes away with Tests.Analyzers moving
off net8.0. Both workflows carry the exact prerelease SDK build in one env var
rather than repeating the version at each setup-dotnet.
Worth knowing when reading a red run on this branch: the comment-triggered path
always executes the default branch's copy of tests.yml, which knows nothing about
net110. Use gh workflow run tests.yml --ref to exercise this branch's matrix.
* Fix the analyzer findings the .NET 11 SDK surfaces
Two rules fire on code the older SDK accepted, and both are worth fixing rather
than suppressing.
IDE0303 wants collection expressions where the code called ImmutableArray.Create.
Four sites in the code-fix providers.
CA2026 is new in the .NET 11 SDK and names a real defect: JsonDocument owns a pooled
buffer, so reading RootElement off an undisposed one leaks it. JsonElement.Parse is
the one-liner the rule suggests, but it is .NET 11 only and this fixture also builds
for net462 and net10.0, so a small using helper does the same job portably. The
expected values are already normalised constants, but the helper keeps the re-parse
rather than comparing against them directly - that would be a quiet change to what
the test asserts.
* Match the analyzer tests' reference pack to the project's target framework
Tests.Analyzers moved from net8.0 to $(LowestSupportedTargetFramework), but both verifiers still
compiled their snippets against ReferenceAssemblies.Net.Net80 while the harness loads a net10.0
linq2db.dll - CS1705 on every test that references linq2db.
The pack now comes from one place, so the next target-framework move is a single line. It stays a
literal rather than deriving from the TFM because the testing SDK (1.1.4) has no Net110 entry, which
is also why the project itself cannot move past net10.0 yet.
* Stop building the LINQPad driver twice at once
LinqToDB.LINQPad.Pack.csproj passed GenerateLpxArtifacts=false as a global property on its
ProjectReference. The property is inert there - its only consumer, the PostBuild2 target, is
conditioned on net472 while the reference pins net8.0-windows7.0 - but a global property the solution
build does not also set makes that a second MSBuild instance of the same project and target framework,
and the two race to write the same output. CI hit it as
MSB4018: GenerateDepsFile failed - the process cannot access
.build/bin/LinqToDB.LINQPad/Release/net8.0-windows7.0/linq2db.LINQPad.deps.json
The race is latent on master; this branch's shallower dependency graph is what exposed it.
* One test config per CI job instead of one per job and target framework
Build/Azure carried a directory per target framework - netfx, net100, net110 - whose files were
byte-identical apart from the configuration key they were stored under, so every .NET release meant
adding or deleting ~27 files that said nothing new. The two modern directories were identical, and
netfx differed in exactly one file.
They collapse into Build/Azure/configs: one file per job, holding a single target-framework-agnostic
Azure.TestJob section that DataProviders.json points every <TFM>.Azure configuration at. The staging
and copy steps lose their bucket path segment, which also retires run-provider-tests' --flag/-Flag
parameter - it existed only to name that directory. A new .NET version now costs nothing here.
sqlserver.2005 is the one config that really does vary by framework: netfx keeps its remote context
while the modern legs disable it. That needed DisableRemoteContext to survive BasedOn - it was the
only TestSettings field missing from SettingsReader.Merge, and only this config ever sets it, so
carrying it through is behaviour-preserving. SettingsReaderTests.SharedTestJobSection pins both halves.
hana2.sh generates its config at run time, since the ODBC driver path is only known once the client is
unpacked. It was still emitting NET80/NET90/NET100 sections and no NET110 one, so the net11 SAP HANA
leg would have resolved zero providers and reported green. It now emits the same Azure.TestJob shape
as the committed configs and needs no edit per .NET version either.
Equivalence: the 27 config names the matrix selects map one-to-one onto the 27 files, with no missing
entries and no orphans, and the 14 files the netfx directory used to hold are exactly the 14 entries
with enable_fw_netfx: true.
* Refresh the contributor docs and Test.cmd for the net10/net11 target set
Test.cmd was not a documentation problem: it still built and ran net8.0 and net9.0, and invoked the
Tests.EntityFrameworkCore.EF8 and EF9 projects this branch deletes, so it was broken outright. Its
parameter list drops from five positions to four.
CONTRIBUTING.md follows it - target list, the Test.cmd parameters and example, the Azure CI framework
list, and the NET80/NET90 sections of the sample UserDataProviders.json - plus a pointer to
Build/TargetFrameworks.props as the place a new .NET version is declared.
* Run the F# EF.Core fixture on EF Core 11 as well as 10
FSharpTests.cs had compiled into no assembly since EF8 was added - it sat behind #if EF8, a constant
only the EF8 source project ever defined. Wiring it back is what this branch has to decide, since the
EF8 projects are gone, and it now runs on both remaining integrations.
The model project splits in two rather than multi-targeting: every LinqToDB.EntityFrameworkCore.EFnn
publishes the same PackageId, so NuGet collapses them inside one project's restore graph and a
target-framework-conditional reference to two of them resolves to the wrong one (NU1201). Two projects
over a shared .props is the same shape the C# EF test projects already use.
Both Issue4646 cases are gated. EntityFrameworkCore.FSharp's last release is 6.0.7 (2022) and it
registers an IMemberTranslator that calls ISqlExpressionFactory.Convert(SqlExpression, Type,
RelationalTypeMapping), removed in EF Core 10 - so an option-typed member reaching the query pipeline
throws MissingMethodException. TestLeftJoin stays live: it never reaches a member translator.
* Refresh the third-party notices for the net10/net11 target set
components.json's per-target-framework version maps still named net8.0 and net9.0 and carried no
net11.0 entries, and those maps are rendered straight into the generated notices - so every artifact's
notices stated versions for frameworks the release no longer ships and omitted the one it does. It
would also have failed the packed-artifact gate: Test-PayloadVersions raises a violation for a
component with no entry for a framework the tool payload ships.
The maps come from -Action harvest against the restore graphs. net8.0-windows7.0 stays: the LINQPad 5
driver still builds it. System.Net.ServerSentEvents is dropped outright - it was a net8.0/net9.0-only
CLI transitive, so it ships nowhere now; its licence text is shared with 46 other components and stays.
Nine Microsoft.Extensions.* abstractions have a net10.0 entry and no net11.0 one. That is correct
rather than a gap: .NET 11 folds them into the shared framework, so they are absent from the net11.0
restore graph and no binary is redistributed. Verified against the CLI's project.assets.json.
* Stop validating the packages against a baseline that still ships net8.0 and net9.0
Dropping two target frameworks from a shipped package is what package validation is built to report,
and it reported it: 724 errors across linq2db and linq2db.Scaffold, every one comparing
lib/netstandard2.0 against [Baseline] lib/net8.0 or lib/net9.0. The 6.0.0 baseline carries net462,
netstandard2.0, net8.0, net9.0 and net10.0; this branch ships net462, netstandard2.0, net10.0 and
net11.0, so a net8/net9 consumer resolves to netstandard2.0 and its smaller surface is reported member
by member.
No released baseline exists yet without those two frameworks, so the comparison cannot be made to pass
by moving PackageValidationBaselineVersion. DisablePackageBaselineValidation drops only the baseline
half - the in-package target-framework validation keeps running. Suppressing 724 entries in
CompatibilitySuppressions.xml would instead record a deliberate removal as if it needed excusing, and
every entry would go stale the moment the release lands.
ApiCompatPermitUnnecessarySuppressions comes with it: with the baseline comparison off, the existing
suppression file matches nothing, and an unnecessary suppression is itself an error. Both properties
come off together once a released baseline carries the reduced framework set.
The step could not fail here before: pack never ran, because the LINQPad deps.json race failed the
build first.
* Translate Min and Max when .NET 11 binds them to MemoryExtensions
`new[] { p.Date1, p.Date2 }.Max()` used to produce an Enumerable.Max call over the array. On .NET 11
the compiler prefers the span overload, so the expression tree is MemoryExtensions.Max over an
implicit ReadOnlySpan conversion, and TranslateMinMaxSumAverage - which only accepts Queryable and
Enumerable - refused it with "The LINQ expression could not be converted to SQL". It reaches any user
who compiles against net11, not just the test that caught it.
.NET 10 made the same move for Contains, and ExpressionBuildVisitor already unwraps the span there;
this follows it. Measured against both runtimes rather than assumed: only Min and Max changed in .NET
11. Sum, Average, Count, Any, First and ElementAt still bind to Enumerable, and Contains and
SequenceEqual were already on MemoryExtensions from .NET 10.
* Compare floating-point test values within a tolerance on .NET 11
.NET 11 converts double to decimal exactly instead of rounding to 15 significant digits
(https://learn.microsoft.com/dotnet/core/compatibility/core-libraries/11/decimal-biginteger-floating-point-conversions),
so a value a provider stores as REAL no longer equals the in-memory decimal it is compared against -
1.1 against 1.1000000000000000888178419700. That is 147 failures across 19 tests on the net11 leg,
which had never run the main suite before this branch.
The change is intentional and the library is left alone; the assertions absorb it.
TestBase.AreEqualWithinDelta infers T, so the anonymous projections can use it, and walks composite
types so the tolerance reaches a decimal nested in a projection or an entity. Three sites that assert
through NUnit rather than AreEqual use Within(...).Percent instead.
The tolerance is relative. MappingTypingByConstant asserts 2147483648.123m, where the conversion noise
is ~2e-7, while the rounding tests must still catch a difference at the fifth decimal place on values
of order 10 - no fixed absolute delta satisfies both. 1e-12 relative is four orders of magnitude above
the noise floor (|value| * 2^-53) and far below anything these tests distinguish.
Two tests needed something other than a tolerance:
- Round4, Round4Sql and Round11 round the decimal rather than casting to double first. .NET 11 also
changed Math.Round(double, digits) at midpoints - Math.Round(6.55d, 1) is 6.5 there and 6.6 on
.NET 10 - so the client no longer agrees with the SQL ROUND it generates, a 0.1 gap no tolerance
should paper over. The decimal overload is unchanged.
- GroupByAggregate21 compares inside the grouping key, where an assertion tolerance cannot reach, so
both sides round the average to the constant's own scale.
Verified on net11 against SQLite and Northwind SQLite: 88 cases, 0 failures, in the same filter that
produced 14 before.
* Record the LINQPad driver's own versions in the third-party notices
Three components ship in the net8.0-windows7.0 LINQPad driver but said nothing about it: two had no
entry for that framework at all and System.Collections.Immutable still claimed 8.0.0 where the graph
resolves 10.0.12. Pre-existing drift rather than anything the target-framework change caused, which is
why it was left out of the earlier refresh.
-Action harvest now proposes nothing: the manifest agrees with every restore graph.
* Stop naming a target framework in the full_run description
It said "not just net10", which this branch makes wrong. Phrased against the newest TFM rather than a
version number, so the next .NET release does not make it wrong again - the behaviour it describes is
already defined that way (pr_main in test-workflow-linux.yml).
* Skip the MySQL EF providers when the EF version has no MySQL package
TestConfiguration.EFProviders is EF-version-agnostic and lists the MySQL
connector configurations unconditionally, so the EF11 leg offered them to
ContextTestBase.ProviderSetup, whose MySQL arm sits behind EF_MYSQL. Every
case it reached failed with
ProviderSetup is not implemented for provider MySqlConnector.8.0
487 cases on the MySQL job, which is every EF test that job runs.
Neither Pomelo nor the Microting fork has an EF Core 11 line, and
Tests/EntityFrameworkCore/Tests/Providers.md already records that the
net11.0 leg runs without MySQL - only the provider selection never
followed. EFTestProviders.Supported applies it inside the EF test
assembly, where EF_MYSQL is defined, so the EF3 and EF10 projects keep
every provider they have today.
* Compare decimals within a tolerance where a provider round-trips them
.NET 11 converts double to decimal exactly instead of rounding to 15
significant digits, so a value a provider stores as REAL - or, on Sybase,
hands back through a double - no longer equals the in-memory decimal it is
compared against. 1.11 reads back as 1.1100000000000000231065166981.
Most of the affected tests compare whole LinqDataTypes rows, and that type
already compares leniently by design: its Equals ignores sub-second
precision on DateTimeValue and whitespace on StringValue, because it exists
to compare provider round-trips. MoneyValue joins them, which is what fixes
the bulk of the cases rather than editing every call site.
The rest compare bare decimals or assert per column, and take the tolerance
where they are: Round9/Round12 and the BoolField/ToDecimal3 family move to
AreEqualWithinDelta, Max4, MultipleRows_TestTyping, MergeTypes and Sybase's
bulk-copy column walk take Within(...).Percent, and the F# decimal option
round-trip unwraps before comparing, since Within cannot reach inside an
option.
FloatingPoint carries the one relative tolerance and the comparison both
TestBase and LinqDataTypes now share, so the two cannot drift apart.
Verified against the local Sybase container on net11.0: the full suite is
8844 tests with no failure attributable to this.
* Gate the three Sybase tests the AseClient decimal defect breaks
On .NET 11 every AdoNetCore.AseClient read path returns DECIMAL and NUMERIC
through a double: CAST(123.45 AS DECIMAL(10,2)) comes back as
123.45000000000000256981935710 from GetValue, GetProviderSpecificValue,
GetDecimal and GetString alike, while GetDouble and MONEY are exact. The
same driver, server and query return 123.45 on .NET 10, so no read path
preserves the value and nothing linq2db computes can recover it. Reported
upstream as DataAction/AdoNetCore.AseClient#240.
Most of the fallout is a comparison problem and is handled by the tolerance
commit. These three are not:
- ToBit2 filters on !Sql.Convert(Bit, MoneyValue - 4.5m) client-side, and
4.5000000000000003 - 4.5 is no longer zero, so the predicate flips and
the expected set is empty. A tolerance cannot fix a predicate.
- Issue42Test writes the round-tripped row back. The 28-decimal MoneyValue
makes linq2db declare @MoneyValue Decimal(29, 28), the update does not
take, and the re-read BoolValue is unchanged.
- SybaseProviderSpecificReadMatrix asserts the formatted value a provider
returns, which is the corrupted string itself.
Each gate is scoped to net11.0 and up, so net462 and net10.0 keep running
the tests unchanged and no gate-too-wide verdict can fire where Sybase
still works.
* Widen the scaled intermediate in YDB's ROUND emulation
Math.Round(x, p) over a decimal column failed at runtime whenever the
scaled value did not fit the column's declared precision. RoundScaled
multiplied by 10^p in the value's own type, so for a Decimal(6,2) column
holding 11.45 neither the product nor the 10^p literal is representable -
Decimal('100000', 6, 2) does not exist. YDB answers an out-of-range
Decimal with an empty optional instead of an error, and the surrounding
Unwrap turns that into a query-terminating
PreconditionFailed: Failed to unwrap empty optional
The intermediate now carries p more integer digits, clamped to YQL's
35-digit ceiling the same way GetCommonDecimalType does it. The value is
cast up to that type before the multiply, because DecimalMul rejects
operands whose Decimal types differ: "Cannot calculate with different
decimals: Decimal(6,2) != Decimal(7,2)".
Round13 pins it - server-side rounding to more digits than the column's
scale. Against the local YDB container it fails with the error above
without the fix and passes with it, on net10.0 as well as net11.0, so
this is not a .NET 11 defect: only the overload Round4Sql calls changed
on this branch, which is what reached the path.
Also on master as #5943, for 6.5.1.
* Drop the DB2 gate on Round4Sql that the decimal overload made moot
Round4Sql now rounds the decimal instead of casting to double first - the
.NET 11 midpoint change to Math.Round(double, digits) - so DB2's ROUND no
longer runs over a Float, and the one-ulp mismatch the gate described is
gone with it.
The run-and-verify attribute fails a leg when a gated test passes, which
is what turned Lin w_DB2InformixDuckDB red on run 35455297660: 26143 tests,
exactly two failures, both of them Round4Sql - "DB2" and "DB2.LinqService".
The gate named TestProvName.AllDB2, whose third member DB2zOS is exercised
nowhere in CI, so no configuration is left for it to hold.
* Name the target-framework properties CONTRIBUTING actually has
The two properties were introduced on this branch as ModernTargetFrameworks
and LatestTargetFramework; CONTRIBUTING kept the names from an earlier draft.
It also claimed the two lines were the whole edit for a new .NET release,
while Build/TargetFrameworks.props' own comment names a third site - the band
row in Directory.Packages.props.
* Raise the C# language version to 15
.NET 11 ships the first compiler that accepts it. Nothing here spends the new
features except where an analyzer the bump enables demands it: IDE0410 (use
labeled jump statement) becomes applicable at C# 15 and is an error under the
repo's analyzer severity. It fires at three sites that share one shape - a bool
flag set inside an inner loop, an inner break, then `if (flag) continue;` in the
outer one - and each becomes a labeled continue, dropping the flag.
Source/CodeGenerators and Tests/Tests.T4.Nugets import no props file and carry
hand-duplicated copies of the language version, so they move with it. Their
TFMs are netstandard2.0 and net10.0, so nothing else in this branch reaches
them.
* Enable runtime async on net11.0 and newer
Roslyn stops emitting async state machines and the runtime drives suspension
instead. Measured on the built library: net11.0 has 254 methods carrying
MethodImplAttributes.Async and no AsyncStateMachineAttribute, while net10.0,
net462 and netstandard2.0 keep 254/255/255 state machines and zero Async flags.
Async iterators are not converted - they keep AsyncIteratorStateMachineAttribute
- and ExecutionContext still flows across an await.
The opt-in spelling is exactly `runtime-async=on`. Bare `runtime-async` and
`runtime-async=true` reach csc and are silently ignored, so a green build is no
evidence the feature is on.
It lives in a new root Directory.Build.targets rather than beside the other
compiler properties in Directory.Build.props: a props file is evaluated before
the project body, so for a project that declares a single TargetFramework there
- Tests/Tests.SingleFile does - a $(TargetFramework) condition never fires. The
condition uses the IsTargetFrameworkCompatible form the package bands and the
feature constants already use, so a future .NET version needs no edit here.
To build without it, pass -p:Features=strict; a global property overrides the
conditioned assignment. MSBuild does not hash $(Features) into the CoreCompile
cache, so that flip needs -t:Rebuild or it silently reuses the previous binary.
* Add the LibRed managed Access provider
LibRed.Ado is a managed, cross-platform Jet/ACE engine from the
EntityFrameworkCore.Jet project. It gives Access a transport that needs no
Microsoft driver install and is not Windows-only, which is what every existing
Access provider requires today.
It is a third AccessProvider flavour rather than a new provider family: the
engine is Jet/ACE either way and only the ADO.NET transport differs, so the SQL
builders, optimizer, convert visitor, member translators and every
ProviderName.Access-keyed Sql.* registration are reused unchanged.
One data provider, not one per file format. AccessVersion selects only the
member translator, and its Jet arm exists because Microsoft's JET driver has no
REPLACE; LibRed has it against an .mdb, so the split would have mistranslated.
Access.LibRed.Mdb and Access.LibRed.Accdb are test configurations over the same
provider.
Provider specifics, each measured rather than assumed:
- the adapter is reflection-loaded like every other dynamic provider adapter,
so the shipped package references no LibRed assembly
- parameters are named-only, so the base @name builder applies and
IsParameterOrderDependent is false - LibRed binds by name
- IsDBNullAllowed is overridden: LibRed implements neither GetSchemaTable nor
IDbColumnSchemaGenerator, and the base implementation calls the former
unguarded, so every materialized SELECT would throw before its first row
- GUID literals are emitted unbraced; the braced form the base schema emits
parses and matches zero rows
- CHAR padding is not trimmed, because the reader reports CLR type names and a
fixed-width column cannot be told from a VARCHAR at read time
- the SQL builder drops the database component of an object name, as SqlCe
does, since LibRed's grammar has no qualified-name production
- CREATE TABLE emits the COUNTER type instead of an IDENTITY attribute, and a
primary key without CLUSTERED
- schema is read with SQL from the engine's INFORMATION_SCHEMA pseudo-tables
plus MSysRelationships for foreign-key column pairs; views come from
MSysObjects, filtered by query type so no action query is ever executed
* Run the test suite against the LibRed Access provider
Two configurations, Access.LibRed.Mdb and Access.LibRed.Accdb, one per file
format over the single LibRed data provider. TestProvName gains AllAccessLibRed
and AllNativeAccess; the latter names the Microsoft drivers positively, so a
site that means "not the managed engine" says so rather than subtracting.
LibRed.Ado is net11.0-only, so the two configurations are listed in the NET110
provider list alone. Nothing in the test code is conditionally compiled: a
provider that cannot load on a target framework simply is not in that
framework's list, which is the one place both data-source selection paths agree.
The committed .mdb and .accdb are created by Microsoft's own engine through
ADOX, so the suite exercises LibRed against files the world actually has rather
than files LibRed wrote. Their schema and data are then written by LibRed
through the normal create-data flow. The Jet container needs the 32-bit
provider: ADOX under a 64-bit host silently falls back to ACE and writes an
ACCDB-format file with an .mdb extension.
Two changes to the shared create script, both behaviour-preserving for the
Microsoft flavours and verified against them:
- foreign keys name the referenced column, which LibRed requires and Access
accepts - the same script already uses that form elsewhere
- the five procedures LibRed cannot create are wrapped in the script's own SKIP
markers. A region has to end inside the GO boundary and carry no comment
before its BEGIN: the removal deletes the region's trailing GO, so anything
preceding the marker merges with the next statement.
* Add Access type coverage and record the LibRed limitations the suite found
AccessTypeTests is Access's first Types/ fixture, covering 16 storage types
across all six Access providers - non-nullable and nullable, parameter and
literal, and every bulk-copy mode. It is green on all four flavours reachable
here; the two Jet ones need an x86 run and are left to CI.
It needed a hook on TypeTestsBase: TypeTable`2's CLR name carries a backtick,
which Access forbids in an object name, so the fixture could not run on any
Access flavour. The name goes on the fluent mapping rather than on
CreateLocalTable, because the bulk-copy blocks resolve the table from the
mapping schema and would otherwise write to a different table than the one
created. Default null leaves the other seven fixtures untouched.
The rest is gating, from a full-suite run per provider. Where LibRed cannot do
something Access can, the test carries [ActiveIssue] scoped to the LibRed
configurations rather than a data-source exclusion: the attribute asserts the
failure still happens, so when LibRed fixes it the gate turns into a failure
demanding its own removal. Where LibRed throws for a construct the Microsoft
drivers also refuse, it joins the existing [ThrowsForProvider] list - with its
own exception type, which differs per engine.
Gated: both multi-table UPDATE forms (comma-joined and derived-table target),
DATEADD returning an OLE Automation serial as Double, a date part returning
Int16 where Access returns Int32, the zero date reading back as
DateTime.MinValue, and sub-second precision Access truncates. Narrowed away:
WITH OWNERACCESS OPTION, stored procedures, and the CHAR-padding-sensitive
string tests.
Issue 3893's identifier list is split a fourth way, since LibRed accepts most
of what Access refuses but rejects five characters of its own.
Verified against Access.Ace.OleDb over the whole suite: one failure, provider-
independent and pre-existing, so none of this moved the reference flavour.
* Anchor the LibRed gates to the exact prerelease build
bug-investigation.md asks a gate on a not-yet-released provider to name the
build it was measured against, so the next person re-checks these tests on an
upgrade instead of rediscovering them. LibRed.Ado 11.0.0-alpha.2 is the newest
published; alpha.3 exists only in an unmerged PR, and that surface moves.
28 [ActiveIssue] Details gain the version: both multi-table UPDATE forms, the
DATEADD-returns-Double conversion, the Int16 date part, the zero date and the
sub-second DATETIME.
* Fix the LibRed GUID string translation and disposition the triaged failures
The full Access suite on Access.LibRed.Mdb + .Accdb reported 119 failures.
This closes 96 of them.
GUID-to-string was the largest single cause, at 40. AccessMemberTranslator
emits LCase(Mid(CStr(g), 2, 36)), where the Mid exists to strip the leading
brace Access's CStr produces. LibRed renders a GUID unbraced - measured: Len
36, and Mid is 1-based as in VBA - so the Mid ate the first hex digit instead.
Silent wrong results, the same shape as the unbraced-literal decision in D-6.
AccessLibRedMemberTranslator overrides that one translation and nothing else.
Three [ActiveIssue] gates keyed to AllAccess were passing on LibRed, which the
run-and-verify attribute reports as a failure. Narrowed to AllNativeAccess.
Two upstream LibRed defects are gated, both silent wrong results:
- a multi-column SET is evaluated sequentially, each right-hand side reading
what earlier assignments in the same statement already wrote, so a swap
collapses. Measured: SET [A] = [B], [B] = [A] on (100, 200) yields (200,
200) where Access yields (200, 100).
- a bare integer in ORDER BY is an inert constant rather than an ordinal
column reference. Measured with an ORDER BY 2 control, which under the
ordinal reading would have sorted by the second column and did not.
The ORDER BY tests take a [Values] argument and only one arm fails, and a gate
cannot target a ValueSource, so LibRed joins the SqlCe exclusion already there.
The remainder are test-side corrections rather than LibRed defects. Opening
"BAD" as a file database throws FileNotFoundException, which the
invalid-connection-string assertions did not list. LibRed does support a second
reader on one command, so it moves out of MARS_..._NotSupported and into
MARS_..._Supported. It reports no stored procedures, a consequence of D-10, so
it joins that exclusion group in Issue792Tests.
Verified per category against the LibRed configurations; the gates are
confirmed by their "still failing as expected" outcome rather than by a bare
pass count.
* Disposition the remaining LibRed failures
Closes the last 23 of the 119 the full suite reported, leaving only
TestExpressionVisitorHops(10), which carries no provider in its case name and
is pre-existing on this branch stack.
TestDataTypes is made padding-aware rather than gated. The ncharDataType
column is nchar(20), and D-13 records that LibRed cannot tell a fixed-width
column from a VARCHAR at read time, so the test now asserts the padded value on
LibRed and the trimmed one elsewhere - the shape AccessTypeTests already uses.
TestDateOnly's Access-scoped gate expects "Syntax error in DROP TABLE or DROP
INDEX.", which only the Microsoft drivers raise: LibRed parses the backtick in
the generic type's table name and reaches the array-column gap that the
unscoped #3929 gate above it already describes. Narrowing the Access gate to
AllNativeAccess routes LibRed onto that one instead of adding another.
TestConvertToDate_WithNull asserts that a null-guarded date conversion throws.
LibRed does not throw, so it is narrowed to the native flavours rather than
gated for being more capable than the test assumes.
Four gates for measured upstream defects:
- CVar is a no-op - CVar(1) returns a typed Int32 rather than a Variant that
reads back as "1".
- a 64-bit minimum cannot be written as a literal: cdbl(-9223372036854775808)
overflows before evaluation, while the same value bound as a parameter
round-trips exactly, so the digits are consumed as a positive Int64 before
the unary minus is applied.
- a scalar is narrowed to the smallest type its value fits, so a Byte column
reads back as System.Byte where Access gives Int32.
- an indexed GUID column compared to a string fails inside the engine's own
key encoder.
Issue2362TestMatchingValue is D-13 again rather than a new defect: the raw
column is CHAR(4), LibRed does not trim the padding, and the converter's
db == "+" therefore misses - the same false read the ClickHouse gate beside it
describes, reached by a different route.
* Adopt LibRed.Ado 11.0.0-alpha.3 and drop the workarounds it retires
alpha.3 published on 2026-09-22 and moves most of the surface this branch had
to work around. Every row below was re-measured against the package rather than
read from its release notes, and where a behaviour changed the same battery was
run against alpha.2 and alpha.3 on a copy of one database, so a "fixed" verdict
is a diff of two measurements. findings.md carries the report.
Two workarounds were not merely retired, they had become wrong. The braced GUID
literal now matches and the unbraced one matches nothing - the exact reverse of
alpha.2 - so the LibRed mapping-schema override was producing empty results and
the flavour inherits the base braced form again. CStr renders a GUID braced
(Len 38), so the base translator's Mid(CStr(g), 2, 36) is correct once more and
AccessLibRedMemberTranslator is deleted.
Retired because the engine now behaves: GetSchemaTable and
IDbColumnSchemaGenerator work with correct AllowDBNull, so the IsDBNullAllowed
override goes; GetDataTypeName reports the store type, so a CHAR column is
selectable at read time and the real trim registration replaces the char-only
one; PRIMARY KEY CLUSTERED and a trailing IDENTITY are accepted, so both
create-table overrides go; a bare REFERENCES resolves to the parent's primary
key and the five rejected CREATE Procedure shapes create, so Access.sql and
TestBase.Identity.cs are byte-identical to the merge base again.
That also empties ~35 [ActiveIssue] gates: ORDER BY n is an ordinal,
comma-joined and derived-table UPDATE/DELETE parse, a multi-column SET is
evaluated against the pre-update row, DATEADD returns a DateTime, date parts
return Int32, the 64-bit minimum literal evaluates, and CHAR padding is
trimmed. Those files are reverted to the merge base rather than hand-edited.
Three gates stay, re-stamped to alpha.3: CVar is still a no-op, an indexed GUID
column still cannot be compared to a string literal, and DATETIME still keeps
sub-second precision that Access truncates.
Two new gates record alpha.2 -> alpha.3 regressions, both measured against both
packages:
- the reader contradicts itself on a computed column. For [x] + [x] over a
CURRENCY SUM, GetFieldType and GetSchemaTable both say Int32/Long while the
value handed back is a Decimal, so a materializer compiled from the declared
type fails the cast. alpha.2 said Decimal and was consistent.
- a text column compared against a numeric literal - =, IN, NOT IN - now
coerces the text to a number and throws on any non-numeric value, where
alpha.2 evaluated it and ACE accepts it.
TestZeroDate stays gated but its mechanism was recorded from the wrong layer.
1899-12-30 round-trips correctly through a parameter, a #...# literal and
DateSerial(1899, 12, 30), which is what linq2db emits; the loss is in the typed
read alone, where GetValue returns the date and GetDateTime returns
DateTime.MinValue.
* Read the LibRed schema from GetSchema, and report procedures
D-4 chose SQL over the engine's [INFORMATION_SCHEMA.*] pseudo-tables because
alpha.2 implemented no ADO schema API at all. alpha.3 implements twenty
collections, so the premise is gone. The two sources were measured side by side
on the suite's own populated database before this was written; findings.md
carries the table.
GetSchema is a superset on every fact the provider needs except one. Views are
three rows with their definitions instead of twelve MSysObjects candidates, a
hand-written DAO Flags low-byte gate and one bind probe each - and the engine,
not this file, decides that a parameterised select is a procedure rather than a
view. View columns arrive with a store type, nullability and length where the
bind probe could give only a name and a CLR type. Identity is a flag rather
than an inference from DATA_TYPE = 'counter'. Foreign keys carry their update
and delete rules. All seventeen type names the engine returns were already
covered by AccessSchemaProviderBase.GetDataType.
The exception is CreateFormat, which GetSchema does not carry, so the
hand-written data-type list stays - re-keyed to the engine's own spellings, and
with the CreateFormat casing following the TypeName so a scaffolded column type
reads VarChar(50) as the OLE DB flavour spells it. Two shape differences are
normalised rather than inherited: a length of 0 is reported for the unbounded
types and a precision for every numeric, so both are carried only where the
type's CreateParameters can spell them, which is the AccessOleDbSchemaProvider
idiom.
Procedures are reported for the first time, which retires the P10 entry saying
they never would be. The safety property A-3 protected by hand was measured
before the code was written: SchemaProviderBase describes each procedure by
executing it under CommandBehavior.SchemaOnly, alpha.2 ignored that and ran the
statement, and alpha.3 honours it - describing Person_Insert, Person_Update,
Person_Delete and AddIssue792Record leaves the row counts untouched. So
GetProcedureSchemaExecutesProcedure stays false; the OLE DB flavour's KeyInfo
route, which does execute, refuses here for want of parameter values.
Issue792Tests asserts exactly that property and is un-gated.
GetProcedureResultColumns is overridden because the base reads an "IsIdentity"
column, which is not an ADO standard schema-table name - LibRed carries the
standard IsAutoIncrement. It follows AccessOleDbSchemaProvider rather than the
base in one more respect, so the whole Access family agrees: the member type
comes from the reader's own DataType while the system type goes through
GetSystemType.
Two consequences outside the provider. GetSchema("Tables") lists the four MSys*
tables, which [INFORMATION_SCHEMA.TABLES] did not, so LegacySchemaProvider
joins LibRed to the two Microsoft flavours in the system-table skip - without
it that file throws on the first one, and nothing in the main suite covers it.
And the three procedure-call helpers in AccessProceduresTests now name their
parameters as the declarations do: LibRed binds a stored query's parameters by
name, where OLE DB and ODBC bind positionally and ignore the names, so one
helper had carried a misspelling that never mattered.
LibRed also propagates the base column's nullability into a procedure's result
schema where the Microsoft drivers report everything nullable, which the
characterization test now states per flavour rather than assuming.
* Run the LibRed configurations on a Linux CI leg
The managed engine needs no driver install and no container, so it is the only
Access leg that can run on Linux - which is the capability this provider exists
to add. Access has had no Linux coverage at all until now.
The job config declares its providers under NET110.Azure rather than the shared
Azure.TestJob section every other job uses. That section is TFM-independent by
design, and a full_run also runs this leg's net10.0 pass, where LibRed.Ado is
not referenced and both configs would fail to load. Verified against
SettingsReader.Deserialize: a user-file section merges with the base file's
section of the same name and inherits its BasedOn chain, so the connection
strings still resolve through Azure.TestJob to AzureConnectionStrings.
The entry is netfx-free for the same reason and sorts as z_Access_LibRed, which
the key census above the matrix records.
* Offer the LibRed provider from the CLI
A new AccessLibRed value for the scaffold command's --provider option, mapping
to ProviderName.AccessLibRed, plus the MCP tool's provider list. There is no
connection-string sniffing to do: a LibRed string is Data Source=<file> and
carries nothing to distinguish it, which P10 already records as the reason the
provider has to be named explicitly.
The arm rejects --additional-connection rather than ignoring it. That option
exists because the two Microsoft drivers each return an incomplete schema and
MergedAccessSchemaProvider papers one with the other; the managed engine reads
the whole schema itself, so there is no second transport to merge with.
LinqToDB.CLI already targets net10.0 and net11.0, so its net11.0 asset can
carry the net11.0-only LibRed.Ado and its net10.0 asset cannot. The reference
is conditioned on the TFM and the arm is guarded to match, so running the tool
on .NET 10 reports the requirement instead of failing inside the reflection
adapter with a missing assembly.
* Scaffold the LibRed provider from the CLI test matrix
One key, AccessLibRed, across the five CLI templates, over the same
Microsoft-written TestData.mdb the AccessOleDb key uses. D-9 said the .accdb,
but the T4 scaffold path holds no .accdb and the two committed LibRed
containers are empty until a test run fills them; sharing the OLE DB key's file
also makes the two outputs directly comparable, which is the point of having
both. 89 files, ~4 585 lines, and a second run regenerates them byte-identical.
The run found a schema-provider gap that no test covers. GetSchema("Tables")
marks the four catalog tables as SYSTEM TABLE but reports MSysAccessStorage,
MSysAccessXml and the four MSysNavPane* tables as ordinary tables, where the
OLE DB flavour calls them ACCESS TABLE and the scaffolder skips them. Without
the name test the LibRed model carried six MSys entities the other Access keys
do not - 28 files against OLE DB's 22. MSys is Access's reserved prefix for
system objects, so the name is the reliable discriminator; with it the two
models have the same 22 entities.
* Unquote procedure parameter names from the LibRed schema
Comparing the generated model against the AccessOleDb one - which is what the
committed CLI output is for - showed every procedure parameter named
"[@firstName]" rather than "@firstName", so the generated call would bind a
parameter under a name no query declares.
The brackets are not ours. Measured on both files: for a PARAMETERS clause
Access itself wrote, GetSchema("ProcedureParameters") reports the quoting as
part of the name, and GetSchema("Procedures") re-emits the definition as
PARAMETERS [[@firstName]] TEXT(50) - double-quoted, and no longer parseable.
The same query written through LibRed reports "@firstName" and round-trips. So
the name is unquoted here, which brings the model back in line with the other
Access keys.
What this cannot fix is the second half: because the stored definition no
longer parses, a parameterised SELECT query in a Microsoft-written file cannot
be described at all, so it scaffolds as ExecuteProc returning int where OLE DB
produces QueryProc<...Result> with a result class. That is upstream and is
recorded in findings.md; the committed output shows the current behaviour
rather than hiding it.
* Give Issue1925Test a LibRed arm for the unterminated LIKE bracket
The test already expects Access to reject LIKE '[0': the OLE DB arm asserts
OleDbException and the ODBC arm OdbcException. LibRed rejects it too - it is
not more permissive here - but raises ArgumentException("Invalid pattern
string"), so it fell through to the else branch that expects no throw.
Every other pattern in the test executes on LibRed, including '%[[]0[-]9]%',
so this is the one shape that needed saying. Verified on both LibRed
configurations and on Access.Ace.OleDb together: 7/7.
Found by the post-fix full run. It was in the previous run's failure list too
and no disposition was written for it - the cluster breakdown accounted for 26
of the 28.
* Cover the CLI's LibRed payload in the third-party notices
The net11.0 CLI now ships LibRed.Ado/.Core/.Engine/.Sql and their transitive
Antlr4.Runtime.Standard, none of which mapped to a component - so the notices
verify step failed on all seven linq2db.cli RID payloads with 35 unmapped DLLs
(GitHub "Build and pack", Azure build 23768).
Entries taken from -Action harvest: ANTLR under BSD-3-Clause with a new
texts/antlr4-bsd3.txt, the four LibRed packages under the shared mit.txt, all
scoped to the linq2db.cli artifact and net11.0 only. The large churn in the
generated file is renumbering - inserting ANTLR at position 2 shifts every
later entry and its "see [n]" reference.
-Action check passes; -Action verify against a cross-published linux-x64
payload reports 156 entries, 101 components, 0 unmapped.
* Move the LINQPad nuget driver from net8.0 to net10.0
The driver was the last net8.0 target on the branch: `net472;net8.0-windows7.0`, packed into
`lib/net8.0`. With linq2db no longer shipping net8.0, its .NET build bound the netstandard2.0 asset,
and the System.Collections.Immutable floor pin pointed at `$(Net8LatestForNuget)`, which this branch
no longer defines - the empty override fell back to 10.0.12 and stamped a reference a .NET 8/9 host
cannot satisfy (the #5768 load failure).
- Driver builds `net10.0-windows7.0`, packs into `lib/net10.0` with a `net10.0` dependency group.
- The SCI pin is gone: on net10.0 the package is framework-provided and pruned (NU1510), so the
driver references the in-box 10.0.0.0 by construction.
- Net.IBM.Data.Db2 (+ -lnx/-osx) 9.0.0.400 rows existed only for the net8 driver; collapsed to
10.0.0.200. That client makes `DB2Connection.ReleaseObjectPool()` obsolete-as-error with no
replacement, so DB2/Informix `ClearAllPools` now only releases pools in the net472 lpx build.
- Runtime-folder fallback table knows net11.0.
- Third-party notices: LINQPad graph keys retargeted to net10.0-windows7.0 per `-Action harvest`;
System.Threading.AccessControl dropped (no restore graph has it any more). Harvest is clean with
the CLI, NuGet and LINQPad graphs restored; `-Action check` passes.
* Expose LibRed in the LINQPad driver and make Access cross-platform there
The nuget driver is net10.0-windows7.0 now (#5942), so it can offer LibRed without referencing the
net11.0-only LibRed.Ado: linq2db's adapter is reflection-loaded, and the driver reaches
LibRedFactory.Instance through LibRedProviderAdapter.ConnectionType.Assembly. LibRed works when the
LINQPad query runtime is .NET 11 or newer; the provider's troubleshoot note says so.
- Access is supported on every OS. Off Windows, OLE DB and ODBC are hidden (existing connections
still load) and LibRed is the default; the net472 lpx build does not list LibRed at all.
- ProviderInfo.ProvisionOnlyWhenSelected keeps LibRed.Ado out of the all-clients fan-out that
OverrideDriverDependencies uses when a connection's client is unknown, so a .NET 10 query
runtime is never handed a net11.0-only package.
- Connection-string detection: OLE DB marker -> OLE DB, Driver=/Dsn= -> ODBC, otherwise LibRed
(a bare "Data Source=<file>"). The positional _providers index is replaced by a lookup by name.
- ClearAllPools is a no-op for LibRed (it has only a per-connection ClearPool);
GetLastSchemaUpdate stays OLE DB-only.
Verified: Release build of both driver TFMs; NuGetPackageVersions.LibRed_Ado = 11.0.0-alpha.3; the
driver assembly references no LibRed assembly. Not verified: LibRed end-to-end inside LINQPad.
* LINQPad: select the Access provider explicitly, gate LibRed on the query runtime
Testing 3b299aace on a .NET 10 query: a bare "Data Source=<file>" auto-selected LibRed, and LINQPad
then prompted for a LibRed.Ado download that cannot succeed there. Access was the only database that
picked its provider from the connection string, which also hid the selector.
- Access shows the provider selector like every other multi-provider database; OLE DB is the default
on Windows, LibRed elsewhere. Only the secondary connection, which has no selector, is still
detected - by the original OLE DB / ODBC check.
- ProviderInfo.MinimumRuntime replaces ProvisionOnlyWhenSelected. OverrideDriverDependencies reads
DriverDependencyInfo.FrameworkVersion and never provisions a client whose floor is above it, on the
selected-provider path as well as the fallback ones. Hidden providers are left out of the fallback.
- A LibRed connection on a pre-.NET 11 query fails with the troubleshoot text instead.
* LINQPad: one connection string per Access provider, paired entries for merged schema
With the provider now chosen explicitly, the always-visible "Additional connection string" and its
auto-detected provider no longer fit. The merged OLE DB + ODBC schema becomes two explicit entries:
- OLE DB, ODBC and LibRed take one connection string.
- "OLE DB, with ODBC schema merged" / "ODBC, with OLE DB schema merged" take two, each labelled by
its provider; queries run on the first, the second only feeds MergedAccessSchemaProvider. Both
directions are kept so no saved connection changes which provider runs its queries.
- ProviderInfo.SecondaryName carries the pairing. Stored settings are unchanged
(Provider / SecondaryProvider / SecondaryConnectionString), so a saved connection with a second
string loads as the matching paired entry; choosing a single entry clears the second string.
- Access connection-string detection is gone; the dialog rejects a paired entry without its
second string instead of checking for the same provider twice.
- The provider-name registry skips paired entries, which repeat a name already registered.
* Use portable paths in the LibRed test connection strings
The Linux LibRed leg (run 35801786703) failed all 14 154 cases with FileNotFoundException: the DataProviders.json connection strings were written with a backslash, which is not a path separator on Linux, and every earlier LibRed run was on Windows. The four Access.LibRed.* strings now use '/', which Windows accepts too (AccessTests on both configs: 103 cases, 0 failed, on Windows net11.0). CopyDatabases' parallel-run branch also copies the two LibRed .Data files, which it listed for no LibRed configuration.
* Move the .NET 11 SDK and in-box packages to RC2
global.json and the two workflows pin 11.0.100-rc.2.26504.105; BandLatest /
BandLatestForNuget move to 11.0.0-rc.2.26504.105.
Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime goes to 11.0.0-rc.1.1, the
newest published. It still hard-pins Microsoft.EntityFrameworkCore
[11.0.0-rc.1.26425.128], so the EF11 test project keeps its direct EF pins;
those now resolve above the constraint, which NuGet reports as NU1608
rather than the NU1605 downgrade they used to perform.
* Pin System.Security.Cryptography.Pkcs in the LINQPad lpx driver
The net472 driver resolves Pkcs 8.0.1 through Microsoft.Data.SqlClient, which
GHSA-2fmv-rv2c-59x7 / GHSA-846f-f764-76mx name. Master resolves the same
version and restores clean on SDK 10.0.402; the .NET 11 RC2 SDK audits this
project's transitive graph too and fails the restore. Reference the 9.0.21 that
#6043 pins centrally, as linq2db.cli does - the lpx bundles its dependencies.
The lpx then ships Pkcs, System.Formats.Asn1 and Microsoft.Bcl.Cryptography
9.0.21 on net472; notices regenerated.
* Reference FSharp.Core explicitly on every linq2db.FSharp target
linq2db.FSharp referenced FSharp.Core on net462 only. Under central package
management the SDK adds no implicit FSharp.Core, so every other target compiled
against the FSharp.Core bundled with the SDK and the package declared no
dependency for it: 6.5.0's netstandard2.0/net8.0/net9.0/net10.0 assemblies
reference FSharp.Core 10.1.0.0 that nothing in the nuspec asks for.
The .NET 11 RC2 SDK bundles the net10.0 build of FSharp.Core
(dotnet/fsharp#20555), so that fallback no longer compiles for netstandard2.0
(FS0193) and lifts net10.0+ to FSharp.Core 11.0.0.0.
The floor follows the in-box package rule: per .NET band, the FSharp.Core its
first SDK shipped; net462/netstandard2.0 take the lowest band's. That is
10.0.100 for net10.0/net462/netstandard2.0 and 11.0.101-rc2.26504.105 for
net11.0 until RTM. Packed and verified: each target declares that version and
its assembly references the matching FSharp.Core (10.0.0.0 / 11.0.0.0).
The tests' central FSharp.Core gets a net11.0 row, since a direct 10.1.401 there
would be a downgrade against linq2db.FSharp's net11 floor.
* Examples: drop the pruned System.Security.Cryptography.Pkcs reference
SignalRServer targets $(LatestTargetFramework) only, which is net11.0 on
this branch; the ASP.NET shared framework supplies the package there, so the
explicit reference #6043 added is pruned and fails restore with NU1510.
* LibRed.Ado 11.0.0-alpha.4, and LibRed on net10.0
alpha.4 adds a net10.0 target to LibRed.Ado and its dependencies, so the
provider is no longer net11-only:
- tests reference LibRed.Ado on net10.0 and net11.0; the template lists the
two configs in NET100 too, and the CI job config moves to the shared
Azure.TestJob section like every other job (the leg is Linux-only, so there
is no netfx pass to keep it from)
- CLI: LibRed.Ado joins the unconditional provider references and the
".NET 11 required" refusal goes
- LINQPad: the driver already targets net10, so the MinimumRuntime /
FrameworkVersion machinery that existed only for LibRed is removed, with the
runtime check and troubleshoot text
- notices: the LibRed packages and ANTLR gain a net10.0 version
* Tests: retire the LibRed gates alpha.4 fixed
Measured with the full suite on both LibRed configs:
- CVar (TestSqlVariant), the zero date (TestZeroDate), computed columns
declared one type and returned as another (AggregatesKeepTheDeclaredUnit,
Issue1601), an indexed GUID compared to a string
(ClientConversion_UnmappedOperators), IS [NOT] TRUE/FALSE and
IS [NOT] DISTINCT FROM: gates removed
- WITH OWNERACCESS OPTION now parses: the three LibRed exclusions in the
extension tests revert to base
- LibRed now rejects a leading space and control characters in a column name,
as Access does, so Issue3893Test returns to base's single gate
- still failing on alpha.4, re-stamped: GUID through a set operation with null
literals, a text column against a numeric literal list, sub-second DATETIME
precision
* CI: fix the Linux binaries-cleanup condition that kept Azure test runs from starting
04cd93e53 dropped the per-TFM flag clause from every step condition, which left
the cleanup step with a single-argument and(variables.title). Azure's and()
needs at least two arguments, so the template failed to compile and every
"/azp run test-*" on this branch was refused with "failed to run 1
pipeline(s)" (build 24338: "Step specifies condition and(variables.title)
which is not valid").
The condition becomes plain variables.title; like master's, it has no
succeeded(), so the binaries are still removed after a failed test step.
* Ban the params ReadOnlySpan<object> twins of banned formatting overloads
RS0030 bans per overload. .NET 9 added params ReadOnlySpan<object?> overloads
of string.Format, string.Join, StringBuilder.AppendFormat and
StringBuilder.AppendJoin, and overload resolution prefers them, so a call with
4+ arguments left the banned object[] overload without a warning. Found by the
ban-list overload check run for the .NET 11 TFM; no current call site binds to
them (Release build green with the bans in place). The overloads .NET 11 adds
(Rune, char + StringComparison) are ordinal or explicit and stay allowed.
* Move .NET 11 to RC3
SDK 11.0.100-rc.3.26522.148 (global.json, both workflows), the net11 package
band 11.0.0-rc.3.26522.148 and FSharp.Core 11.0.101-rc3.26522.148; notices
regenerated. Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime 11.0.0-rc.1.1 ->
11.0.0-rc.2, which pins EF Core [11.0.0-rc.2.26504.105]: still one release
behind the band, so the EF11 test project's direct EF pins stay.
Ban-list overload check RC3 vs RC2: no new overloads on banned members.
* Tests: compare new master decimal tests within the .NET 11 conversion tolerance
* Tests: run the WASM bundles on CoreCLR, the browser runtime that implements runtime-async
* Tests: gate LibRed on the positional-parameter and aggregate tests it cannot run, narrow a gate it passes
* Ship a browser-wasm asset without runtime-async for packages a browser app can load
* Tests: run the WASM bundles on Mono and CoreCLR against the browser build
* Tests: Round16 takes its expected values from the in-memory rows
On .NET 11 Sybase's values arrive through double, so the MoneyValue 11.45 that
AssertQuery loads back is no longer a midpoint client-side and rounds to 11.5,
while the server rounds the exact 11.45 to even. Compare against the exact test
data, as Round13 does. Red on Sybase.Managed before (11.5 <> 11.4000...), green
after; SQLite.MS green.
* Tests.Wasm: add the Access.LibRed provider matrix row
ProviderNamesAreCovered requires a matrix row or alias for every ProviderName
constant, and Access.LibRed had neither since the WASM runtime tests arrived
with a master merge. It names one provider and constructs without a
connection, so it is a row; MERGE is refused as for the other Access rows.
* LibRed: bind a bool to an integer column as 1, as ACE does
LibRed binds a bool parameter into a Byte / Int16 / Int32 column as -1 (and
overflows a Byte); ACE binds 1. Literal predicates treat any non-zero as true on
both engines, but a parameter predicate compares the stored value, so LibRed
disagreed with ACE and with .NET ordering (master's OrderByBooleanStoredAsInt16).
SetParameter now sends 1 / 0 of the column's width on LibRed. New test
AccessTests.BoolStoredAsInteger covers the three widths on every Access flavour.
DistinctOrderByOuterJoinedBooleanKey is gated on LibRed: LibRed reads the
unmatched outer-join rows as NULL, and the DISTINCT sort-key flip orders them
against .NET. The LibRed dialect branch (#5969) lifts it.
* CI: install the pinned .NET 11 SDK in the docs workflow
docs.yml (#6265) installs 10.x only, while global.json pins the .NET 11 RC on
this branch, so the docs build - which its change detector triggers on a
global.json change - would fail to resolve an SDK. Install the pin alongside
10.x, as build.yml does.
* Move to .NET 11 GA: SDK 11.0.100, runtime packages 11.0.0
- global.json pins 11.0.100 without allowPrerelease; GitHub workflows install 11.x and drop
DOTNET_SDK_11; Azure no longer passes includePreviewVersions for 11.x.
- $(BandLatest*) net11 rows 11.0.0, FSharp.Core 11.0.101; third-party notices regenerated.
- Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime 11.0.0-rc.3. It still pins EF Core
[11.0.0-rc.3], so the EF11 test project keeps its direct EF pins.
- EF11 tests override System.Security.Cryptography.Pkcs to the band version: EF Core
SqlServer 11.0.0 requires >= 10.0.13, above the Tests-wide 9.0.21 floor (NU1605).
Ban-list overload check against the GA reference pack: no new overloads on banned members
compared with RC3.
* linq2db.Extensions: drop Microsoft.Extensions.Logging.Abstractions on net11.0
.NET 11 ships it in the shared framework
(https://learn.microsoft.com/dotnet/core/compatibility/extensions/11/extensions-in-shared-framework),
so the net11.0 dependency group no longer lists it. It is the only one of the nine moved
Microsoft.Extensions packages any project here references.
* Translate Queryable.FullJoin on net11.0
JoinBuilder registered Enumerable.FullJoin behind NET11_0_OR_GREATER, but the arm never matched:
.NET 11 ships Queryable.FullJoin only with an optional IEqualityComparer, so every call has six
arguments and CanBuildMethod accepted five. Every FullJoin failed with "could not be converted
to SQL". A sixth argument is now accepted when it is a null comparer constant.
FULL JOIN also left both sides non-nullable; both now go through DefaultIfEmptyContext, as
AllJoinsLinqBuilder does for LinqExtensions.FullJoin.
FullJoinMethodTests: red before (8/8 "could not be converted to SQL"), green after on DuckDB
net11.0 with Left/RightJoinMethodTests, 28/28.
* Tests: System.Data.OleDb 11.0.0 for net10.0 and net11.0
11.0.0 carries the COM error-wrapper finalizer fix (dotnet/runtime#125221) that the 9.0.10 pin
worked around, and ships a net10.0 asset, so both modern test TFMs move to it.
linq2db.cli and the LINQPad driver stay on the central $(Net10Latest).
* EF11 tests: run MySQL on Microting.EntityFrameworkCore.MySql 11.0.0-preview.1
Microting now publishes an EF Core 11 line (preview; its EF floor accepts 11.0.0), so the EF11
leg defines EF_MYSQL and references it as EF10 does. MySqlConnector stays referenced directly:
the preview floors it at 2.5.0, which drops the connection during the handshake (Issue4603Test,
error 1042); the central 2.6.2 does not.
Local, MySqlConnector.8.0 on net11.0: 186 passed, 15 skipped; the two NoIdentity native bulk
copy failures are the local container's disabled local_infile.
* Raise F# LangVersion to 11
The three F# projects pinned LangVersion 9 because the root C# LangVersion
is not a valid fsc value. F# 11 consumes [NotNullIfNotNull], so the five
`|> nonNull` calls on ExpressionVisitor.Visit results became FS3262 errors
on net10.0/net11.0 and are removed.
* Raise the C# language version to 15
.NET 11 ships the first compiler that accepts it. Nothing here spends the new
features except where an analyzer the bump enables demands it: IDE0410 (use
labeled jump statement) becomes applicable at C# 15 and is an error under the
repo's analyzer severity. It fires at three sites that share one shape - a bool
flag set inside an inner loop, an inner break, then `if (flag) continue;` in the
outer one - and each becomes a labeled continue, dropping the flag.
Source/CodeGenerators and Tests/Tests.T4.Nugets import no props file and carry
hand-duplicated copies of the language version, so they move with it. Their
TFMs are netstandard2.0 and net10.0, so nothing else in this branch reaches
them.
* Enable runtime async on net11.0 and newer
Roslyn stop…
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.
Fixes #14454
Ship the
net10.0FSharp.Core with the SDK tools sodotnet fsisupportsIAsyncDisposablein task expressions. Preserve SDK reference resolution when loading its dependencies.