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

Allow any OS in OperatingSystemHelper

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 3.1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Dotnet Drivers
    • Not Needed

      When running on MACCATALYST, the dotnet runtime returns false for RuntimeInformation.IsOSPlatform(OSPlatform.OSX) 

      resulting in MongoDriver throwing an Exception when calling .GetCollection. 

      (in: OperatingSystemHelper.cs:line53)

      Proposed solution:

       else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX) }}{{|| RuntimeInformation.IsOSPlatform(OSPlatform.Create("MACCATALYST"))
       

            Assignee:
            boris.dogadov@mongodb.com Boris Dogadov
            Reporter:
            info@elias.dev glascake N/A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: