Compatibility
MongoDB Compatibility
The following compatibility table specifies the recommended version or versions of the MongoDB .NET/C# Driver for use with a specific version of MongoDB.
The first column lists the driver version.
Important
MongoDB ensures compatibility between the MongoDB Server and the drivers for three years after the server version's end of life (EOL) date. To learn more about the MongoDB release and EOL dates, see MongoDB Software Lifecycle Schedules.
Compatibility Table Legend
Icon | Explanation |
---|---|
✓ | All features are supported. |
⊛ | The Driver version will work with the MongoDB version, but not all new MongoDB features are supported. |
No mark | The Driver version is not tested with the MongoDB version. |
.NET/C# Driver Version | MongoDB 8.0 | MongoDB 7.0 | MongoDB 6.0 | MongoDB 5.0 | MongoDB 4.4 | MongoDB 4.2 | MongoDB 4.0 | MongoDB 3.6 | MongoDB 3.4 | MongoDB 3.2 | MongoDB 3.0 | MongoDB 2.6 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
3.0 to 3.1 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |||||
2.29 to 2.30 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||
2.20 to 2.28 | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||
2.16 to 2.19 | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||
2.15 | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||
2.14 | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||
2.13 | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
2.12 | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
2.11 | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
2.10 | ⊛ | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
2.9 | ⊛ | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
2.8 | ⊛ | ⊛ | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
2.7 | ⊛ | ⊛ | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
2.6 | ✓ | ✓ | ✓ | ✓ | ✓ | |||||||
2.5 | ✓ | ✓ | ✓ | ✓ | ✓ | |||||||
2.4 | ✓ | ✓ | ✓ | ✓ | ||||||||
2.3 | ✓ | ✓ | ✓ | |||||||||
2.2 | ✓ | ✓ | ✓ | |||||||||
2.0 | ✓ | ✓ |
The driver doesn't support older versions of MongoDB.
Language Compatibility
The following compatibility table specifies the recommended version of the MongoDB .NET/C# Driver for use with a specific version of .NET.
The first column lists the driver version.
.NET
.NET/C# Driver Version | .NET 8 | .NET 7 | .NET 6 [1] | .NET 5 | .NET Core 3.X | .NET Core 2.X |
---|---|---|---|---|---|---|
3.0 to 3.1 | ✓ | ✓ | ✓ | ✓ | ✓ | |
2.3 to 2.30 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
[1] | When using .NET 6, you can't connect to Atlas clusters running MongoDB 4.0 due to a certificate issue. This does not impact clusters running MongoDB 4.2+. |
.NET Framework
.NET/C# Driver Version | .NET 4.8 | .NET 4.7 [2] | .NET 4.6 |
---|---|---|---|
3.0 to 3.1 | ✓ | ✓ | |
2.13 to 2.30 | ✓ | ✓ | |
2.0 to 2.13 | ✓ | ✓ | ✓ |
[2] | .NET/C# Driver versions 2.14 or later requires .NET Framework 4.7.2 or later. |
For more information on how to read the compatibility tables, see our guide on MongoDB Compatibility Tables.