Since the past year, we have updated regularly the MongoDB C# driver from version 2.20 up to 2.27.
All updates had no issues.
More recently, when trying to update the NuGet package from version 2.27 to 2.28, the solution does not build with the several errors.
Examples:
The type ‘IMongoCollection<>’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘MongoDB.Driver, Version=2.19.1.0, Culture=neutral, PublicKeyToken=null’
The type ‘IFindFluent<,>’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘MongoDB.Driver, Version=2.19.1.0, Culture=neutral, PublicKeyToken=null’
‘IAggregateFluent<>’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘MongoDB.Driver, Version=2.19.1.0, Culture=neutral, PublicKeyToken=null’
If we revert back to version 2.27 the solution builds fine.
The package is: MongoDB.Driver, and was obtained from this source: NuGet Gallery | MongoDB.Driver 2.28.0
The following image shows the package that was updated (MongoDB.Driver 2.28) and the errors after building the solution:
Was anyone with a similar issue? If so, were you able resolve it?