Skip to content

Conversation

@damieng
Copy link
Contributor

@damieng damieng commented Nov 18, 2025

Motivation and Context

Switches the MongoDB Driver to the latest 3.5 release which had a number of breaking changes.

This affects both the MongoDB vector data project and the CosmosMongoDB project.

This fixes #11652 and likely addresses #12707 and partly #10291.

Description

Switches the MongoDB driver to 3.5. Part of the breaking changes is that GUIDs in BSON no longer have a default storage format specified due to the need to switch from the C#-only format to the cross-MongoDB-driver standard format. Setting this is achieved in this PR by way of both a convention for the registry based mode and an alternative to BsonValue.Create in the scenarios where we don't have access to conventions/serialization such as key creation and using the dynamic mapper.

Contribution Checklist

cc @roji

ajcvickers and others added 5 commits November 11, 2025 09:44
This means targetting .NET 4.7.2 for vector data implementations that depend on it.

Supressed warnings about disposal since it doesn't do anything yet.

# Conflicts:
#	dotnet/Directory.Packages.props
@damieng damieng changed the title Switch mongodb to 3 5 Switch MongoDB Driver to v3.5 Nov 18, 2025
@damieng damieng changed the title Switch MongoDB Driver to v3.5 .NET MEVD: Switch MongoDB Driver to v3.5 Nov 18, 2025
@damieng damieng changed the title .NET MEVD: Switch MongoDB Driver to v3.5 .Net: Switch MEVD MongoDB Driver to v3.5 Nov 18, 2025
@damieng damieng marked this pull request as ready for review November 18, 2025 17:12
@damieng damieng requested a review from a team as a code owner November 18, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.Net: Upgrade MongoDB connector dependency to MongoDB.Driver to v3.x

2 participants