Repository navigation
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.0target 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.CoreandFoundationDB.Clientand 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.Corebuilds without trim and AoT warnings. CrystalJsonCodecuses the converter it is given.- Generated converters read dictionaries and
requirednullable 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.
AddFoundationDbsets network options, andAddFakeDbopens the cluster root when no root is given.- Fixed: a batch read (
GetValuesAsync,GetKeysAsync) on .NET 8 and later could fail with aNullReferenceExceptionthat 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:
fdbcliand FdbShell open from the dashboard, a cluster can have a data volume of its own, and the 7.4 and 7.3 images move to7.4.8and7.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
TreatWarningsAsErrorsfails 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 withCrystalJsonIsReflectionSupported=true(andTuPackIsReflectionSupported=true). - The CrystalJson reflection switch is read once. Set it in the project file with
CrystalJsonIsReflectionSupported, not withAppContext.SetSwitchafter the first serialization. - The native client loads from fixed paths. A host whose native client is only found through
PATHorLD_LIBRARY_PATHthrowsDllNotFoundException. AddFoundationDB.Client.Native, setFdbDatabaseProviderOptions.NativeLibraryPath, or callUseSystemNativeClient(). CrystalJson.Dumpand theCrystalJsonCodec<T>constructors without a converter declare their reflection. A trimmed or Native AoT build reportsIL2026andIL3050at their call sites.- The
--spawn,--childand--parentoptions of FdbShell are removed. SnowBank.Testing.Framework.PlaywrightrequiresMicrosoft.Playwright1.63.0. Install the browsers of that version on the test hosts.- The
net11.0build targets .NET 11 (11.0.0). A consumer that builds thenet11.0target on a .NET 11 RC SDK must install the .NET 11 SDK (11.0.100).