I'm adding a dependency (mongocsharpdriver
) to the net45
dependencies section like this:
"net45": {
"dependencies": {
"System.Data": "",
"System.ComponentModel.DataAnnotations": "",
"mongocsharpdriver": "1.9.1"
}
},
Based on all other dependencies I've used, this should be enough to make it work. Here's some sample code I threw in to test it:
MongoDB.Bson.BsonArray test;
MongoDB.Driver.RemoveFlags test2;
With this in place, I'd expect that to compile, but MongoDB.Driver
isn't recognized. MongoDB.Bson.BsonArray
works fine.
Is having two assemblies in the same package an unsupported scenario in vNext, or is it not implemented yet?
I believe this was just a bug in ASP.NET vNext and has been fixed in more recent nightly builds, which are available on the ASP.NET vNext MyGet feed.
Here's the bug: https://github.com/aspnet/KRuntime/issues/266
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With