Cette page n'est pas encore traduite. La version anglaise est affichée ci-dessous.
FoundationDB .NET client 7.4.7
Released on 2026-11-10.
This version supports .NET 11.0 GA. The net11.0 target of the packages is built against the stable
.NET 11 release (11.0.0). Building this repository from source needs the .NET 11 SDK (11.0.100), see
Dependencies.
Also in this release: Roslyn analyzers ship in the SnowBank.Core and FoundationDB.Client packages and run in the
build of the projects that reference them, the reflection path of SnowBank.Core is off in a trimmed or Native
AoT publish, the native client loads from fixed paths, and the Aspire integration opens fdbcli and FdbShell from
the dashboard.
Highlights
Analyzers:
- Roslyn analyzers ship in the packages and run in your build, 22 rules, a behavior change for projects that treat warnings as errors.
SnowBank:
- The reflection path is off in a trimmed or Native AoT publish, a behavior change for trimmed applications.
SnowBank.Corebuilds without trim and AoT warnings.CrystalJsonCodecuses the converter it is given.- Fixed: generated converters read dictionaries and
requirednullable members. - Fixed: a decoded embedded tuple packs again with its original bytes.
- The testing packages support NUnit 5 consumers and order tests with
[Canary]and[RunOrder]. - A simulated host chooses its environment name.
- Other changes in
SnowBank.Core.
FoundationDB:
- The native client loads from fixed paths,
a behavior change for hosts that find it through
PATHorLD_LIBRARY_PATH. AddFoundationDbsets network options.AddFakeDbopens the cluster root when no root is given.- Fixed: a read cancelled during its setup throws
OperationCanceledException. - Fixed: a batch read no longer fails with the error of an earlier batch read.
- 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 in the dashboard, and a data volume per AppHost. - FdbShell and FdbTop connect to an Aspire resource.
- The test server fails fast when Docker is not running.
Dependencies:
Breaking changes lists the changes that can fail an existing build, test or run.
Analyzers
Roslyn analyzers ship in the packages and run in your build
After the upgrade, a project that references SnowBank.Core or FoundationDB.Client reports diagnostics with
SBK and FDB ids. Each one points at code that fails at run time, can corrupt or lose data, or does more
work than it needs to.
Both packages now contain Roslyn analyzers and their code fixes. A project that references FoundationDB.Client
runs both sets; a project that references only SnowBank.Core runs the SBK rules. The analyzers do not run
on a compiler older than Roslyn 4.8 (the .NET 8 SDK).
| Tier | Severity | IDs |
|---|---|---|
| Fails every time at run time, or does not compile | Error | SBK0xxx, FDB0xxx |
| Can corrupt or lose data | Warning | SBK1xxx, FDB1xxx |
| Correct but slower | Warning | SBK2xxx, FDB2xxx |
| ID | Title | Severity |
|---|---|---|
| FDB0001 | IFdbDatabase requested from dependency injection | Error |
| FDB0002 | Watch created with the transaction's own token | Error |
| FDB0003 | Watch awaited inside the handler that created it | Error |
| FDB0100 | Removed API | Error |
| FDB1001 | Subspace or layer state stored across transactions | Warning (correctness) |
| FDB1002 | Subspace returned out of a retry-loop handler | Warning (correctness) |
| FDB1003 | Byte-order atomic on a value that is not a little-endian number | Warning (correctness) |
| FDB1004 | Id or clock read inside a retry-loop handler | Warning (correctness) |
| FDB1005 | Missing key tested with Slice.Empty | Warning (correctness) |
| FDB1006 | Version-stamped key written with Set | Warning (correctness) |
| FDB2001 | Value built with a Core factory in a transaction write | Warning (performance) |
| FDB2002 | Key serialized with .ToSlice() before a transaction call | Warning (performance) |
| FDB2003 | Database obtained only to run a retry loop | Warning (performance) |
| SBK0001 | Slice.FromStringAscii on text that cannot be encoded | Error |
| SBK0002 | Mutation of a read-only JSON value | Error |
| SBK0100 | Removed API | Error |
| SBK1001 | Pooled buffer escaping its using scope | Warning (correctness) |
| SBK1002 | Binary prefix encoded as UTF-8 text | Warning (correctness) |
| SBK1003 | Null test on a JSON value | Warning (correctness) |
| SBK1004 | Contract.Requires used to validate a public argument | Warning (correctness) |
| SBK2001 | Pooled buffer never returned | Warning (performance) |
| SBK2002 | Slice to byte[] round trip | Warning (performance) |
An error-tier rule reports code that already throws every time it runs, or that sits next to a compile error
for a removed API, so it does not stop a build that worked. A warning-tier rule stops the build of a project
that sets TreatWarningsAsErrors. The performance rules (SBK2xxx, FDB2xxx) do not run in a test project,
recognized by a reference to NUnit, xUnit, MSTest or TUnit.
public static bool HasDiscount(JsonObject order)
=> order["discount"] == null;
// warning SBK1003: A JsonValue is never a null reference: a missing member reads as JsonNull.Missing. Test it with IsNullOrMissing().
public static bool HasDiscountFixed(JsonObject order)
=> order["discount"].IsNullOrMissing();
Each rule has a page with its rationale, examples and code fix: see the analyzer index.
What to do: fix the code the rule reports, or change the severity of one rule or of a whole tier in
.editorconfig:
[*.cs]
dotnet_diagnostic.SBK1004.severity = suggestion
dotnet_analyzer_diagnostic.category-FdbPerformance.severity = none
SnowBank
The reflection path is off in a trimmed or Native AoT publish
If an application publishes trimmed or Native AoT and serializes a type that has no generated converter,
CrystalJson now throws JsonReflectionDisabledException where 7.4.6 ran the reflection path. In 7.4.6 the
reflection switches were on by default, and their guards also silenced the trim warnings, so a trimmed
application ran reflection over members that the trimmer may have removed, with no warning at publish.
In 7.4.7 the SnowBank.Core package sets two switches to false when the project sets PublishTrimmed or
PublishAot: SnowBank.Data.Json.CrystalJson.IsReflectionSupported (the CrystalJson reflection path) and
SnowBank.Data.Tuples.TuPack.IsReflectionSupported (the reflection-based tuple encoders of exotic element
types). The trimmer then removes the reflection code. When the application already sets a switch with its own
RuntimeHostConfigurationOption, that value stands. A build without PublishTrimmed or PublishAot
is not affected.
Who is affected: a trimmed or Native AoT application that serializes a type with no generated converter, or
packs a tuple element of an exotic type (a nullable of a type that is not well-known, a ValueTuple, a boxed
object). What to do: register the type with [CrystalSerializable(typeof(T))] in a generated container. If
the application must keep the reflection path, opt in, and keep the reflected members with the trimmer
annotations yourself:
<PropertyGroup>
<CrystalJsonIsReflectionSupported>true</CrystalJsonIsReflectionSupported>
<TuPackIsReflectionSupported>true</TuPackIsReflectionSupported>
</PropertyGroup>
The CrystalJson switch is read once, when the CrystalJson class initializes. In 7.4.6 each serialization read
the switch with AppContext.TryGetSwitch, which takes a process-wide lock: about 30 ns per call, and about 1.5
microseconds per call with 8 threads calling CrystalJson at once. A call to AppContext.SetSwitch after that first read
has no effect: set the switch in the project file, as above.
SnowBank.Core builds without trim and AoT warnings
A trimmed publish against 7.4.6 reported trim warnings from the code of SnowBank.Core itself
(CrystalJsonCodec<T>.EncodeValue, CrystalJsonDomWriter, CrystalJsonTypeResolver, and others). In 7.4.7
the trim and AoT analysis of the library reports none:
- The
ToJsonBytesandToJsonSliceextension methods ofJsonValueandIJsonSerializablecall theJsonSerializemethod of the value instead of the reflection path. NewCrystalJson.ToJsonSliceoverloads do the same for anIJsonSerializablevalue. - The enum literal cache reads the underlying values of an enum type, which Native AoT supports, on .NET 8 and later.
- A decoded embedded tuple is packed again from its bytes, see the tuple fix.
The members that use reflection now declare it, so a trimmed or Native AoT build reports IL2026 and
IL3050 at the call site instead of hiding them: CrystalJson.Dump, and the CrystalJsonCodec<T>
constructors and CrystalJsonCodec.GetEncoder<T>(settings, resolver) overload that take no converter. To
remove the warning from a codec, pass a generated converter, as in the next section.
CrystalJsonCodec uses the converter it is given
If you created a CrystalJsonCodec<T> with a generated converter, the converter had no effect, or the decode failed:
CrystalJsonCodec.GetEncoder(converter, ...)returned a codec without the converter. It serialized through the reflection path, which a trimmed application cannot rely on.new CrystalJsonCodec<T>(converter, ...)threwJsonBindingException("Cannot parse JSON String as an Object.") inDecodeValue: it passed the encoded bytes to the converter as a JSON string instead of parsing them. Theresolverargument of the constructor had no effect.
In 7.4.7 both forms encode and decode with the converter, and use the resolver they receive.
public sealed record Order(string Id, decimal Total);
[CrystalJsonConverter]
[CrystalSerializable(typeof(Order))]
public static partial class AcmeSerializers { }
var codec = CrystalJsonCodec.GetEncoder(AcmeSerializers.Order.Default);
Slice bytes = codec.EncodeValue(new Order("ORD-42", 129.90m));
// => {"Id":"ORD-42","Total":129.90}
Order? order = codec.DecodeValue(bytes);
// => Order { Id = ORD-42, Total = 129.90 }
Fixed: generated converters read dictionaries and required nullable members
Two member shapes that a generated container writes did not read back:
- A
Dictionary<string, T>orDictionary<int, T>member, whereTis another type of the same container. In 7.4.7 the generated code reads these members through the converter ofT, and also reads the older form that stores a dictionary as an array of key/value pairs. - A
requiredmember of a nullable type (required string?,required int?). A missing field or an explicitnullthrewJsonBindingException, in the generatedUnpackand on the reflection path, and the read-only and writable proxies threw when the property was read. In 7.4.7 a missing field and an explicitnullboth read asnull:requiredis a constraint on the C# object initializer, not on the JSON document. Arequiredmember of a non-nullable type still throws when the field is missing ornull. The rule is the same on every target, the netstandard2.0 build included, and for a type built through its constructor.
Serialization is unchanged: with the default settings, a null member is not written, and that output now
reads back.
public sealed record Item
{
public required string Id { get; init; }
public required string Name { get; init; }
}
public sealed record Catalog
{
public required string Id { get; init; }
public required Dictionary<string, Item> Items { get; init; }
public Dictionary<int, Item>? ByRank { get; init; }
public required int? Count { get; init; }
}
[CrystalJsonConverter(CrystalJsonSerializerDefaults.Web)]
[CrystalSerializable(typeof(Catalog))]
[CrystalSerializable(typeof(Item))]
public static partial class AcmeSerializers { }
var catalog = AcmeSerializers.Catalog.Unpack(JsonValue.Parse("""{ "id": "c1", "items": { "a": { "id": "a", "name": "x" } } }"""));
// => Items["a"] = Item { Id = a, Name = x }, Count = null (7.4.6: JsonBindingException for the missing "count")
Fixed: a decoded embedded tuple packs again with its original bytes
TuPack.Pack wrote different bytes for a tuple that contains a decoded embedded tuple (a SlicedTuple, what
TuPack.DecodeKey<..., IVarTuple, ...> returns for an embedded tuple). The embedded items kept their top-level
encoding, and a null item uses another encoding inside an embedded tuple. In 7.4.7 the bytes are the original
ones, through TuPack.Pack and through TuPack.EncodeKey, without the reflection path.
var inner = STuple.Create("a", default(string), 123L);
Slice packed = TuPack.Pack(STuple.Create<object?, object?, object?>("x", inner, 456L));
var (x, decoded, n) = TuPack.DecodeKey<string, IVarTuple, long>(packed);
bool same = TuPack.Pack(STuple.Create<object?, object?, object?>(x, decoded, n)) == packed;
// => true (7.4.6: false)
The testing packages support NUnit 5 consumers and order tests with [Canary] and [RunOrder]
A test project that moved to NUnit 5 and used the Throws.InstanceOf<T>(out var captured) helper of
SnowBank.Testing.Common failed with MissingMethodException, because NUnit 5 changed the return type of the
NUnit method that the helper called. In 7.4.7 the helper works on NUnit 4 and NUnit 5. The packages still
require NUnit 4.6.1 or later.
NUnit 5 marks [Order] as obsolete. Two new attributes of SnowBank.Testing.Common order the tests of a fixture the
same way on NUnit 4 and NUnit 5. [Canary] runs a test first: an assumption whose failure explains the
failures that follow. [RunOrder(n)] runs the basic tests before the advanced ones. Neither makes a test depend
on another, so every test still runs and reports its own result, and the order only holds for tests that do
not run in parallel.
[TestFixture]
public class OrderStoreFacts
{
[Test, Canary]
public void Test_Hash_Algorithm_Did_Not_Change() { /*...*/ }
[Test, RunOrder(10)]
public void Test_Can_Read_And_Write() { /*...*/ }
[Test, RunOrder(20)]
public void Test_Can_Read_Your_Writes() { /*...*/ }
}
SnowBank.Testing.Framework.Playwright requires Microsoft.Playwright 1.63.0, which fixes a close event
without a code or a reason. Install the browsers of that version (playwright install) on the test hosts.
A simulated host chooses its environment name
A simulated host of SnowBank.Testing.Framework always ran in the Development environment, and a test could
not change it: ASP.NET Core throws when the environment changes after the host builder is created. In 7.4.7 a
test sets EnvironmentName on the component before the host starts, and the host runs in that environment.
Development stays the default.
lan.WithMinimalWebHost("NODE", host =>
{
host.Component.EnvironmentName = "Test";
host.ConfigureApplication(app => { /*...*/ });
});
Two fixes in the HTTP helpers of a simulated host. The obsolete HttpGetTextAsync and HttpPostTextAsync
helpers threw for a relative path: in 7.4.7 a relative path resolves against the host itself.
Http.Local.PostTextAsync sent a GET request without the body: it now sends the POST request with its body.
A host that serves static assets (StaticAssetsAssembly) now receives its web root when the host builder is
created, like its content root, instead of through WebHost.UseWebRoot afterwards.
Other changes in SnowBank.Core
- The JSON writer searches for the characters to escape with
SearchValueson .NET 8 and later. - Base62 decoding reads the input through a bounds-checked span.
- The obsolete
==and!=operators ofSlice?nameIsNullin their message, instead ofIsNil, which does not exist. - The obsolete two-member
JsonObject.ReadOnly.CreatenamesJsonObject.ReadOnly.Create([ (k, v), ... ])in its message, instead ofJsonObject.Create, which builds a mutable object. - A converter container or a self-serializable type declared in the global namespace failed to build with
CS1001: the generated code had a namespace block with no name. The generated code now has no namespace block for these types.
FoundationDB
The native client loads from fixed paths
If the native client of a host is only found through PATH (Windows) or LD_LIBRARY_PATH (Linux), the
binding now throws DllNotFoundException when it opens the database, with the paths it checked. In 7.4.6 the
runtime and the operating system searched for the library, and that search visits folders that other users or
programs may be able to write to: a library planted there ran inside the process.
In 7.4.7 the binding checks fixed paths, in this order: runtimes/{rid}/native/ under the application folder
and the application folder (where the FoundationDB.Client.Native package deploys the library), then the
location of the official client installer.
| Platform | File | Location of the official client |
|---|---|---|
| Windows | fdb_c.dll |
%ProgramFiles%\foundationdb\bin\fdb_c.dll |
| Linux | libfdb_c.so |
/usr/lib/libfdb_c.so |
| macOS | libfdb_c.dylib |
/usr/local/lib/libfdb_c.dylib |
Who is affected: a host whose native client is in another folder. What to do: add the
FoundationDB.Client.Native package with the major.minor of the cluster (7.4.* for a 7.4 cluster), or set
the path of the library. UseSystemNativeClient() restores the search of the operating system, with its risk:
services.AddFoundationDb(740, options => options.NativeLibraryPath = "/opt/foundationdb/lib/libfdb_c.so");
services.AddFoundationDb(740, options => options.UseSystemNativeClient());
Without dependency injection, Fdb.Options.SetNativeLibPath(path) sets the path.
AddFoundationDb sets network options
To set a network option, for example to load the other versions of the native client of the multi-version
client, an application had to call Fdb.Options before the provider started. In 7.4.7
FdbDatabaseProviderOptions.SetNetworkOption sets it where the provider is registered, and the Aspire
configureProvider callback can call it too. The options apply in the order of the calls, after the trace and
TLS options. The network thread starts once per process, so the options of the first
provider that starts apply to the whole process.
services.AddFoundationDb(740, options => options
.SetNetworkOption(FdbNetworkOption.ExternalClientDirectory, "/opt/foundationdb/clients")
);
AddFakeDb opens the cluster root when no root is given
services.AddFakeDb(730), the registration the emulator README shows, failed at the first transaction with
ArgumentException ("Directory Subspace path must absolute."): the omitted root argument was an empty
relative path, not the cluster root. In 7.4.7 it opens the cluster root, FdbPath.Root. FakeDbProvider.IsAvailable
was false for the whole life of the provider; it is now true once the database is open.
var services = new ServiceCollection();
services.AddFakeDb(730);
await using var sp = services.BuildServiceProvider();
var provider = sp.GetRequiredService<IFdbDatabaseProvider>();
await provider.WriteAsync(async tr =>
{
var subspace = await provider.Root["Acme"].ResolveOrCreate(tr);
tr.Set(subspace.Key("hello"), FdbValue.ToTextUtf8("world"));
}, ct);
// 7.4.6: ArgumentException, Directory Subspace path must absolute.
Fixed: a read cancelled during its setup throws OperationCanceledException
A read whose cancellation token fired while the binding set up the read failed with ObjectDisposedException
or NullReferenceException instead of OperationCanceledException. On .NET 8 and later, from 7.4.3, the
damage went further: the future of that read went back to the pool of reusable futures while its setup was
still running. A later read in the same process could then fail with an unrelated error, or lose its native
handle.
The window is short, but a process that cancels many pending reads hits it: a server that cancels the reads of
closed connections, or code that disposes transactions with reads in flight. In 7.4.7 the read throws
OperationCanceledException, and the future returns to the pool only after its setup ends. This applies to
single reads (GetAsync) and to batch reads (GetValuesAsync). FdbWatch.Cancel() no longer throws
ObjectDisposedException when the watch fires at the same moment.
using var cts = new CancellationTokenSource();
using var tr = db.BeginReadOnlyTransaction(cts.Token);
var read = tr.GetAsync(key);
cts.Cancel();
await read;
// 7.4.7: OperationCanceledException
// 7.4.6: OperationCanceledException, or ObjectDisposedException / NullReferenceException when the token fired
// during the setup, and a broken pooled future
Who is affected: every application that cancels reads, on any target framework for the wrong exception type, and on .NET 8 and later for the pooled future. What to do: update the package.
Fixed: a batch read no longer fails with the error of an earlier batch read
A batch read (GetValuesAsync, GetKeysAsync) could complete twice when its last native callback fired while
the binding was still setting the read up. On .NET 8 and later, from 7.4.3, the second completion ran on a future
that had already gone back to the pool of reusable futures. The next batch read that took this future from the
pool then failed with a NullReferenceException that belonged to the earlier read, on any transaction.
The window is a few instructions wide and needs a thread switch inside it, so it shows up rarely, under load. In 7.4.7 a batch read completes exactly once, and its setup no longer accesses the future once a callback can complete it.
var first = await tr1.GetValuesAsync(keys);
var second = await tr2.GetValuesAsync(keys); // another transaction
// 7.4.7: both return the values
// 7.4.6: the second could throw NullReferenceException (at FdbFutureArray.HandleCompletion), raised by the first read
Who is affected: applications on .NET 8 and later that use batch reads. What to do: update the package. Until
then, reading each key with GetAsync and awaiting the reads together with Task.WhenAll avoids the batch future.
Fixed: on .NET Framework, a cancelled or disposed read no longer frees its result during the copy
On the netstandard2.0 build, which .NET Framework applications use, a cancellation or a transaction disposal that arrived while a completed read copied its result could destroy the native future under that copy. The read then copied freed memory: it could return wrong bytes, or the process could crash. The window is a few instructions wide. In 7.4.7, once the native future has fired, the cleanup waits for the copy, as it already did on .NET 8 and later.
Who is affected: .NET Framework applications that cancel reads or dispose transactions with reads in flight. What to do: update the package.
Fixed: a future over an invalid native handle settles as cancelled
FdbFuture.CreateTaskFromHandle and FdbFuture.CreateValueTaskFromHandle returned a task that never completed
when the FutureHandle held no native future. In 7.4.7 the task ends as cancelled, the way a read over a closed
handle already ends.
var task = FdbFuture.CreateTaskFromHandle(new FutureHandle(), 0, (_, _) => 1, CancellationToken.None);
// 7.4.7: task.IsCanceled is true
// 7.4.6: task never completes
Who is affected: code that wraps native futures itself. The reads of the client never pass an invalid handle. What to do: update the package.
Fixed: FakeDb read results stay valid after the transaction
A value or a key that a FakeDb transaction read from its own writes could change after the transaction ended.
Its bytes were in a buffer of the transaction, which went back to a pool, and a later transaction wrote over
them. In 7.4.7 FakeDb returns a copy for these reads (GetAsync, GetValuesAsync, GetRange, GetKeyAsync,
GetKeysAsync, and the result of a value check), as the native client does for every result. Reads of committed
data are not affected.
Slice value = await db.ReadWriteAsync(async tr =>
{
tr.Set(key, Slice.FromStringAscii("hello"));
return await tr.GetAsync(key); // read from the transaction's own writes
}, ct);
// 7.4.6: the bytes of value could change when a later transaction reused the buffer
The directory layer was exposed to this bug: when a transaction created a directory and opened it through the directory cache, later transactions that used the cached directory wrote under a wrong prefix. The directory cache now stores copies of the prefixes and of the partition stamp it reads.
Who is affected: a test or an application on FakeDb that keeps a read result after its transaction, or that creates a directory and opens it through the cache in the same transaction. What to do: update the package.
Aspire: fdbcli and FdbShell in the dashboard, and a data volume per AppHost
Three methods add commands to the terminal dock of the Aspire dashboard:
WithFdbCli()opensfdbcliinside the cluster container.WithFdbShell()runs the FdbShell tool of the same version as the hosting package, withdotnet tool exec, and the native client of theFoundationDB.Client.Nativepackage of the AppHost. The AppHost throws at startup when that package is missing or of another FoundationDB branch.WithFdbShell<TProject>()runs FdbShell from a project of the solution.
The cluster data volume is fdb_data for every AppHost that keeps the default, so the clusters of two
AppHosts, two worktrees or two FoundationDB versions share their data files, and a 7.4 server upgrades the
data files of a 7.3 cluster in place. WithDataVolume(name, isReadOnly) gives the cluster a volume of its
own. Without a name, the name is generated from the AppHost and the resource, so each copy of the AppHost
gets its own volume. The default stays fdb_data. A cluster that moves to WithDataVolume() starts on an
empty volume: the existing data stays in fdb_data.
With a LatestPatch, LatestMinor or LatestMajor version policy, AddFoundationDb now starts the 7.4.8
image for a 7.4 cluster, and with LatestPatch the 7.3.80 image for a 7.3 cluster (7.4.6: 7.4.7 and
7.3.78). The Latest policy still starts the latest tag.
builder.AddFoundationDb("fdb", apiVersion: 740, root: "/Acme")
.WithDataVolume()
.WithFdbCli()
.WithFdbShell();
Two fixes in the client integration (FoundationDB.Aspire):
ReadOnlyin the connection string had no effect: the client looked it up under a misspelled key.ReadOnly=truenow opens a read-only database.- The AppHost wrote the content of the cluster file in the native library entry of the connection string, and the client did not read the native preloading entry that the AppHost writes. Both now match.
FdbShell and FdbTop connect to an Aspire resource
fdbshell --aspire always connected to 127.0.0.1:4550. In 7.4.7, --aspire [name] reads the connection
string that Aspire injects for the resource (ConnectionStrings__<name>). When that variable is missing,
FdbShell fails and lists the ConnectionStrings__* names it found. FdbShell starts in the root folder, loads
the native library of the connection string, and stops when the branch of its native client differs from the
version of the cluster. FdbTop has the same option.
When the cluster file is missing, unreadable or invalid, FdbShell stops with a hint instead of retrying with no
delay; other connection failures retry with a delay from 100 ms to 2 s. The --spawn, --child and --parent
options are removed.
The test server fails fast when Docker is not running
A suite built on FoundationDB.Testing failed with NullReferenceException, or waited without end for a cluster,
when the Docker daemon was not running. In 7.4.7 FdbServerTestContainer throws InvalidOperationException
("Could not reach a Docker daemon. Check that Docker is running, ..."), a test fails when the server did not
start, and the database of a test has a 15 second default timeout, as in OpenTestDatabaseAsync.
Dependencies
The net11.0 build targets .NET 11 (11.0.0), its first stable release. The SDK pinned in global.json is 11.0.100.
| Package | 7.4.6 | 7.4.7 |
|---|---|---|
| BCL and ASP.NET Core packages, net11.0 build | 11.0.0-rc.1.26425.128 |
11.0.0 |
| BCL packages, net10.0, net9.0 and net8.0 builds | 10.0.12 |
10.0.15 |
| ASP.NET Core packages, net10.0 build | 10.0.12 |
10.0.15 |
| ASP.NET Core packages, net9.0 build | 9.0.20 |
9.0.23 |
| ASP.NET Core packages, net8.0 build | 8.0.30 |
8.0.34 |
Aspire.Hosting (FoundationDB.Aspire.Hosting) |
13.4.6 |
13.6.1 |
Grpc.AspNetCore (SnowBank.Networking.PacketCapture) |
2.83.0 |
2.84.0 |
Testcontainers (FoundationDB.Testing) |
4.13.0 |
4.15.0 |
Microsoft.Playwright (SnowBank.Testing.Framework.Playwright) |
1.61.0 |
1.63.0 |
Microsoft.NET.Test.Sdk (SnowBank.Testing.Common) |
18.8.1 |
18.11.0 |
NUnit3TestAdapter (FoundationDB.Testing) |
6.2.0 |
6.3.1 |
Microsoft.Extensions.TimeProvider.Testing (SnowBank.Testing.Common) |
10.9.0 |
10.11.0 |
System.CommandLine (FdbShell, FdbTop) |
2.0.11 |
2.0.13 |
FoundationDB.Client.Native (7.4.x clusters, libfdb_c) |
7.4.7 |
7.4.8 |
System.Diagnostics.DiagnosticSource (netstandard2.0 build of SnowBank.Core and FoundationDB.Client) |
8.0.0 |
8.0.1 |
A consumer that builds the net11.0 target needs the .NET 11 SDK (11.0.100). The other builds use released servicing
packages and need no SDK change. The netstandard2.0 build takes Source Link from the SDK instead of the
Microsoft.SourceLink.GitHub 8.0.0 package, whose Microsoft.Build.Tasks.Git dependency is flagged by
CVE-2026-62900. Source Link is a build-time reference, so this change adds no package dependency.
Breaking changes
- Roslyn analyzers ship in the packages and run in your build. A project that sets
TreatWarningsAsErrorsfails on a warning-tier finding. Fix the code, or change the severity in.editorconfig(dotnet_diagnostic.<ID>.severity, ordotnet_analyzer_diagnostic.category-<Category>.severity). - 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=truefor the tuple encoders). - The CrystalJson reflection switch is read once. A call to
AppContext.SetSwitchforSnowBank.Data.Json.CrystalJson.IsReflectionSupportedafter the first serialization has no effect. Set the switch in the project file withCrystalJsonIsReflectionSupported. - 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. Pass a generated converter to the codec.- The
--spawn,--childand--parentoptions of FdbShell are removed. A script that passes them fails to start the shell. SnowBank.Testing.Framework.PlaywrightrequiresMicrosoft.Playwright1.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). - Everything else in this release is additive.