Repository navigation
Update MongoDB driver and EF providers - #20041
Jose Perez Rodriguez (joperezr) wants to merge 1 commit into
Conversation
Co-authored-by: Copilot App <[email protected]>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20041Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20041" |
Tests selectorSelects the full PR test matrix + all PR-gated jobs (ALL) — a rule matching 'Directory.Packages.props' selects ALL Advisory workflow impact (4)
Selection computed for commit |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
MongoDB.Driver 3.11.2 must be mirrored to the approved feed and validated before the solution can restore successfully.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Balanced
Findings: 1
New issues introduced by this change (1)
| Severity | Finding |
|---|---|
Directory.Packages.props — Mirror the driver before pinning it |
What changed in this PR
Updates MongoDB client dependencies while retaining net8/net9-only EF provider support.
Changes:
- Updates MongoDB.Driver to 3.11.2.
- Updates EF providers to 8.4.3 and 9.1.3.
| File | Description |
|---|---|
Directory.Packages.props |
Updates MongoDB package pins by target framework. |
| <PackageVersion Include="Milvus.Client" Version="2.3.0-preview.1" /> <!-- No stable release available --> | ||
| <PackageVersion Include="ModelContextProtocol" Version="1.3.0" /> | ||
| <PackageVersion Include="MongoDB.Driver" Version="3.9.0" /> | ||
| <PackageVersion Include="MongoDB.Driver" Version="3.11.2" /> |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |

Description
Updates the MongoDB client dependency family independently from the third-party bulk update so this customer-breaking change can be reviewed, released, and rolled back separately.
MongoDB.Driverfrom 3.9.0 to 3.11.2 for the root pin and from 3.3.0 to 3.11.2 for the net9 override.MongoDB.EntityFrameworkCorefrom 8.4.1 to 8.4.3 for net8 and from 9.0.0 to 9.1.3 for net9.Aspire.MongoDB.EntityFrameworkCorelimited to net8/net9. EF Core 10 support remains a separate feature.The net9 driver override originally matched
MongoDB.EntityFrameworkCore9.0.0's exactMongoDB.Driver3.3.0 dependency.MongoDB.EntityFrameworkCore9.1.3 now requires MongoDB.Driver 3.11.0, so both TFM paths are aligned on 3.11.2.Validation is blocked because
MongoDB.Driver3.11.2 is not yet available on the approveddotnet-publicfeed (3.11.1 is the newest mirrored version). A clean-cache restore fails withNU1102. Both requested EF provider versions are already present. Package imports are currently paused after the sequential migration pipeline encountered the secure intermediate-feed quarantine for newly published packages. Once ingestion clears, mirrorMongoDB.Driver3.11.2 and run the focused MongoDB integration builds and tests before marking this PR ready.Breaking changes
MongoDB.Driver 3.10 raised the minimum supported MongoDB server version from 4.2 to 4.4 and the minimum wire version to 9 (CSHARP-6007, release notes). This affects applications using the
Aspire.MongoDB.DriverorAspire.MongoDB.EntityFrameworkCoreclient integrations against MongoDB 4.2 or a wire-compatible service that reports a maximum wire version below 9.Before updating, check the deployed MongoDB server version (for example, with
db.version()) or inspect the service'shellocommand response and compatibility documentation. Upgrade the server or wire-compatible service deployment to MongoDB 4.4+ / wire version 9+ before consuming this Aspire integration update. If that cannot be done yet, retain the prior Aspire integration version until the deployment is upgraded.Rollback: revert these four central package pins to
MongoDB.Driver3.9.0 (root), 3.3.0 (net9),MongoDB.EntityFrameworkCore8.4.1 (net8), and 9.0.0 (net9).Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?