[CSHARP-1673] How to install the MongoDb csharp driver for ASP.net Created: 21/May/16  Updated: 03/Dec/20  Resolved: 03/Dec/20

Status: Closed
Project: C# Driver
Component/s: API
Affects Version/s: 2.2.4
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Andrew Kralovec Assignee: Unassigned
Resolution: Done Votes: 0
Labels: driver, question
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty



 Description   

I have made a new ASP.net 5 project and I want to be able to use the MongoDb database. Therefore i need the mongoDb driver, but dnx/dnu/dnvm don't work with the new RC2. So I was looking for a way to install the MongoDb driver without using dnx/dnu/dnvm. Since CLI dotnet does not have an installer, i think i have to use the project.json file. I tried adding the driver to the project.json

"dependencies": {
"Microsoft.NETCore.App":

{ "version": "1.0.0-rc2-3002702", "mongocsharpdriver": "1.10.0-rc0", "type": "platform" }

,

However this leads to errors whenever I try using using MongoDB.Driver;
How do you add the MongoDb charpt driver to ASP.net 5 ?



 Comments   
Comment by Jeffrey Yemin [ 03/Dec/20 ]

Apologies for not answering this question when it was first asked. Closing as Gone Away since it's most likely no longer relevant.

Generated at Wed Feb 07 21:40:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.