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

cannot install C# driver using Windows and .NET SDK 6.0 (or 7.0)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Summary

      NuGet says it can't find a version of the C# driver to install on my Windows spawnhost after I install .NET 6.0 SDK

      Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).

      N/A

      How to Reproduce

      1. start windows-2022-small spawnhost.
      2. download and run .NET 6.0.407 SDK installer.
      3. in a Command Prompt, run dotnet new console and then dotnet add package MongoDB.Driver; expectation is that these commands work. Actual result is that NuGet says "There are no versions available for that package"

      Additional Background

      I just need to compile a simple test program that uses the C# driver, plus some things that need .NET 6.0. Is there a better spawnhost flavor to use? Should I give up and try using .NET on Linux instead?

            Assignee:
            boris.dogadov@mongodb.com Boris Dogadov
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: