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

How to install the MongoDb csharp driver for ASP.net

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.2.4
    • API
    • 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 ?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: