alexandre-spieser / mongodb-generic-repository

An example of generic repository implementation using the MongoDB C# Sharp 2.0 driver (async)
MIT License
315 stars 87 forks source link

Is it possible to use with .Net 4.8? #41

Closed marciliooliveira closed 3 years ago

marciliooliveira commented 3 years ago

Hi,

Is it possible to use with .Net 4.8? I'm having some issues trying to run it mainly with libzstd.dll because when I installed using nuget it's putting as a content in my solution.

Thanks.

alexandre-spieser commented 3 years ago

Hello, I have not tried it, please let me know if there are any issues. The lib being downloaded as content as because of the latest MongoDB driver, it's pulling a bunch of dependencies to the project via nuget. It depends on you target framework: https://www.nuget.org/packages/MongoDB.Driver/

.NETFramework 4.5.2

MongoDB.Bson (>= 2.13.2) MongoDB.Driver.Core (>= 2.13.2) MongoDB.Libmongocrypt (>= 1.2.2)

.NETStandard 1.5

MongoDB.Bson (>= 2.13.2) MongoDB.Driver.Core (>= 2.13.2) MongoDB.Libmongocrypt (>= 1.2.2) NETStandard.Library (>= 1.6.1) System.ComponentModel.TypeConverter (>= 4.1.0) System.Linq.Queryable (>= 4.0.1)

.NETStandard 2.0

MongoDB.Bson (>= 2.13.2) MongoDB.Driver.Core (>= 2.13.2) MongoDB.Libmongocrypt (>= 1.2.2)

.NETStandard 2.1

MongoDB.Bson (>= 2.13.2) MongoDB.Driver.Core (>= 2.13.2) MongoDB.Libmongocrypt (>= 1.2.2)