[CSHARP-2347] MongoGridFS class not found Created: 31/Jul/18 Updated: 28/Oct/23 Resolved: 01/Aug/18 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | GridFS |
| Affects Version/s: | 2.7.0 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Ryan Joseph | Assignee: | Robert Stam |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | driver, question | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Visual Studio 2017, .NET Framework 4.6.1 |
||
| Attachments: |
|
| Description |
|
I've downloaded the latest driver for MongoDB.Driver.GridFS and for some reason the MongoGridFS class is not available to be used. Am I doing something wrong? Attached is a screenshot of what I'm seeing. Please note the absence of the MongoGridFS class. |
| Comments |
| Comment by Ryan Joseph [ 01/Aug/18 ] |
|
Robert, Thank you! I truly appreciate the clarification. You guys are making this customer happy. Keep up the good work and thank you for the quick response. I'll go with the long-term solution. -Ryan |
| Comment by Robert Stam [ 01/Aug/18 ] |
|
There is also a Nuget package that for the time being continues to support the Legacy 1.x API re-implemented on top of the 2.x API: https://www.nuget.org/packages/mongocsharpdriver/ But the right long term solution is to convert to the current API. |
| Comment by Robert Stam [ 01/Aug/18 ] |
|
Are you upgrading from an older version of the driver? The MongoGridFS class is part of the legacy API that was used in the 1.x versions of the driver. In the 2.x versions of the driver there is a new GridFS API, which is documented here: http://mongodb.github.io/mongo-csharp-driver/2.7/reference/gridfs/ |
| Comment by Ryan Joseph [ 01/Aug/18 ] |
|
I've created a sample project so you can download. Hopefully that helps illustrate what I'm seeing: |