Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1673

How to install the MongoDb csharp driver for ASP.net

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.2.4
    • Component/s: API
    • Environment:
      Distributor ID: Ubuntu
      Description: Ubuntu 14.04.4 LTS
      Release: 14.04
      Codename: trusty
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 ?

            Assignee:
            Unassigned Unassigned
            Reporter:
            akrala Andrew Kralovec
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: