Skip to content

7.4.7

Latest

Choose a tag to compare

@KrzysFR KrzysFR released this 10 Nov 19:09
· 2 commits to release/7.4 since this release
Immutable release. Only release title and notes can be modified.

FoundationDB .NET client 7.4.7 supports .NET 11.0 GA, ships Roslyn analyzers in the packages, turns the reflection path off in trimmed and Native AoT publishes, loads the native client from fixed paths, and fixes a batch-read race that could fail an unrelated later read.

Full release notes: https://snowbanksdk.github.io/foundationdb-dotnet-client/releases/7.4.7.html

Highlights

.NET 11:

  • The net11.0 target of the packages is built against the stable .NET 11 release (11.0.0); the other builds move to the latest servicing (10.0.15, 9.0.23, 8.0.34).

Analyzers:

  • 22 Roslyn rules ship in SnowBank.Core and FoundationDB.Client and run in the build of the projects that reference them.

SnowBank:

  • The reflection path is off in a trimmed or Native AoT publish, and SnowBank.Core builds without trim and AoT warnings.
  • CrystalJsonCodec uses the converter it is given.
  • Generated converters read dictionaries and required nullable members.
  • A decoded embedded tuple packs again with its original bytes.
  • The testing packages support NUnit 5 consumers and order tests with [Canary] and [RunOrder].

FoundationDB:

  • The native client loads from fixed paths.
  • AddFoundationDb sets network options, and AddFakeDb opens the cluster root when no root is given.
  • Fixed: a batch read (GetValuesAsync, GetKeysAsync) on .NET 8 and later could fail with a NullReferenceException that belonged to an earlier batch read (#191).
  • Fixed: a read cancelled during its setup throws OperationCanceledException.
  • Fixed: on .NET Framework, a cancelled or disposed read no longer frees its result during the copy.
  • Fixed: a future over an invalid native handle settles as cancelled.
  • Fixed: FakeDb read results stay valid after the transaction.
  • Aspire: fdbcli and FdbShell open from the dashboard, a cluster can have a data volume of its own, and the 7.4 and 7.3 images move to 7.4.8 and 7.3.80.
  • FdbShell and FdbTop connect to an Aspire resource.
  • The test server fails fast when Docker is not running.

Breaking changes

  • Roslyn analyzers run in your build. A project that sets TreatWarningsAsErrors fails on a warning-tier finding. Fix the code, or change the severity in .editorconfig.
  • The reflection path is off in a trimmed or Native AoT publish. A trimmed application that serializes a type with no generated converter throws JsonReflectionDisabledException. Register the type in a generated container, or opt in with CrystalJsonIsReflectionSupported=true (and TuPackIsReflectionSupported=true).
  • The CrystalJson reflection switch is read once. Set it in the project file with CrystalJsonIsReflectionSupported, not with AppContext.SetSwitch after the first serialization.
  • The native client loads from fixed paths. A host whose native client is only found through PATH or LD_LIBRARY_PATH throws DllNotFoundException. Add FoundationDB.Client.Native, set FdbDatabaseProviderOptions.NativeLibraryPath, or call UseSystemNativeClient().
  • CrystalJson.Dump and the CrystalJsonCodec<T> constructors without a converter declare their reflection. A trimmed or Native AoT build reports IL2026 and IL3050 at their call sites.
  • The --spawn, --child and --parent options of FdbShell are removed.
  • SnowBank.Testing.Framework.Playwright requires Microsoft.Playwright 1.63.0. Install the browsers of that version on the test hosts.
  • The net11.0 build targets .NET 11 (11.0.0). A consumer that builds the net11.0 target on a .NET 11 RC SDK must install the .NET 11 SDK (11.0.100).