The .NET driver started failing recently (e.g. here) with an error message like:
error NETSDK1045: The current .NET SDK does not support targeting .NET 6.0. Either target .NET 5.0 or lower, or use a version of the .NET SDK that supports .NET 6.0. [/mongo-csharp-driver/tests/MongoDB.Bson.Tests/MongoDB.Bson.Tests.csproj]
The .NET driver started failing recently (e.g. here) with an error message like:
It seems to be related to https://github.com/mongodb/mongo-csharp-driver/pull/873, which updates the target framework for the
MongoDB.Bson.Tests.csproj
file.Update the .NET build script to download v6.0 instead of v5.0