You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With "MongoDB.Driver" Version="2.28.0" and the example code below compiling yields error message
Error CS0012 : The type 'IMongoQueryable<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'MongoDB.Driver, Version=2.14.1.0, Culture=neutral, PublicKeyToken=null'.
Downgrading to 2.27 (that does not have Strong Naming) builds successfully.
`
var collection = Client.GetDatabase(DatabaseName).GetCollection(CollectionName);
var fdb = new FilterDefinitionBuilder();
var fd = fdb.Where(expression);
var cursor = await collection.FindAsync(fd, cancellationToken: ct).ConfigureAwait(false);
return cursor.ToAsyncEnumerable();
`
The text was updated successfully, but these errors were encountered:
https://www.mongodb.com/community/forums/t/net-c-driver-strong-naming/291649
With "MongoDB.Driver" Version="2.28.0" and the example code below compiling yields error message
Error CS0012 : The type 'IMongoQueryable<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'MongoDB.Driver, Version=2.14.1.0, Culture=neutral, PublicKeyToken=null'.
Downgrading to 2.27 (that does not have Strong Naming) builds successfully.
`
var collection = Client.GetDatabase(DatabaseName).GetCollection(CollectionName);
var fdb = new FilterDefinitionBuilder();
var fd = fdb.Where(expression);
var cursor = await collection.FindAsync(fd, cancellationToken: ct).ConfigureAwait(false);
return cursor.ToAsyncEnumerable();
`
The text was updated successfully, but these errors were encountered: