c# - MongoDB + .NET Core 1.0? -


so i'm working on app backend .net core 1.0 , have bunch of work put in. guess it's own fault not checking beforehand, apparently latest version of mongodb's c# driver (2.2.4) not compatible .net core 1.0?

i errors these relevant dependencies:

the dependency mongodb.bson 2.2.4 not support framework .netcoreapp,version=v1.0.   

i came across guide on how working rc2 we're bit past point (i'd reluctant use release candidate version real project this): http://blog.stoverud.no/posts/referencing-net451-libraries-in-aspnet-core/

the above guide isn't working me. adding framework under "frameworks" in project json file creates unsupported error similar 1 above.

is there way done or should looking @ database? don't know many database projects. need use nosql.

update:

the version 2.3.0 has been officially released , compatible .net core 1.0, guess question no longer relevant. https://www.nuget.org/packages/mongodb.driver/2.3.0


old answer:

the version 2.3.0 in beta , able add .net core app, haven't done work don't know current limitations/bugs.

add project.json file dependency:

 "mongodb.driver.core": "2.3.0-beta1" 

or use include prerelease checkbox in nuget manager , search mongodb.driver.core package.

according page, seems close finish it: https://jira.mongodb.org/browse/csharp-1177


Comments