.Net: Switch MEVD MongoDB Driver to v3.51 - #13370
Merged
Shay Rojansky (roji) merged 23 commits intoDec 13, 2025
Merged
Conversation
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
Damien Guard (damieng)
marked this pull request as ready for review
November 18, 2025 17:12
Shay Rojansky (roji)
approved these changes
Nov 24, 2025
Shay Rojansky (roji)
left a comment
Member
There was a problem hiding this comment.
Great to see this Damien Guard (@damieng), thanks. All looks good, see mainly the question about netstandard2.1 and some nits.
Damien Guard (damieng)
temporarily deployed
to
integration
November 25, 2025 17:00 — with
GitHub Actions
Inactive
Damien Guard (damieng)
temporarily deployed
to
integration
November 27, 2025 19:12 — with
GitHub Actions
Inactive
Shay Rojansky (roji)
approved these changes
Nov 27, 2025
Shay Rojansky (roji)
left a comment
Member
There was a problem hiding this comment.
LGTM, pinged others for a 2nd review necessary for merging.
Shay Rojansky (roji)
enabled auto-merge
November 27, 2025 19:17
westey (westey-m)
approved these changes
Nov 28, 2025
|
Great that this is being ported to the latest MDB driver 3.x. When could we expect a new build to be available? Thanks! |
Co-authored-by: westey <164392973+westey-m@users.noreply.github.com>
Mark Wallace (markwallace-microsoft)
temporarily deployed
to
integration
December 1, 2025 14:10 — with
GitHub Actions
Inactive
Mark Wallace (markwallace-microsoft)
temporarily deployed
to
integration
December 1, 2025 14:23 — with
GitHub Actions
Inactive
SergeyMenshykh
temporarily deployed
to
integration
December 1, 2025 17:14 — with
GitHub Actions
Inactive
Contributor
|
Damien Guard (@damieng) Can you take a look at the merge conflicts |
auto-merge was automatically disabled
December 1, 2025 20:41
Head branch was pushed to by a user without write access
Damien Guard (damieng)
force-pushed
the
switch-mongodb-to-3-5
branch
from
December 1, 2025 20:43
273ed76 to
8daf05a
Compare
Roger Barreto (rogerbarreto)
temporarily deployed
to
integration
December 2, 2025 11:31 — with
GitHub Actions
Inactive
This reverts commit 0915d94.
Shay Rojansky (roji)
approved these changes
Dec 12, 2025
Shay Rojansky (roji)
enabled auto-merge
December 12, 2025 20:05
Damien Guard (damieng)
temporarily deployed
to
integration
December 12, 2025 20:05 — with
GitHub Actions
Inactive
Shay Rojansky (roji)
temporarily deployed
to
integration
December 12, 2025 20:30 — with
GitHub Actions
Inactive
SergeyMenshykh
approved these changes
Dec 12, 2025
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Dec 12, 2025
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Dec 13, 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 - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄 cc @roji --------- Co-authored-by: Arthur Vickers <ajcvickers@hotmail.com> Co-authored-by: Mark Wallace <127216156+markwallace-microsoft@users.noreply.github.com> Co-authored-by: westey <164392973+westey-m@users.noreply.github.com> Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com> Co-authored-by: Shay Rojansky <roji@roji.org>
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Dec 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 Shay Rojansky (@roji)