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

MongoDB.Driver.Encryption failing in Astrolabe

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.1.0
    • Affects Version/s: None
    • Component/s: Astrolabe
    • None
    • Dotnet Drivers
    • Not Needed

      We are getting the following build error when building the C# Astrolabe runner:

      [2024/11/05 23:56:19.945] C:\data\mci\f2ff7685c4b530964ca337cc17f109e1\astrolabe-src\mongo-csharp-driver\tests\MongoDB.Driver.Encryption.Tests\BasicTests.cs(640,29): error CS8370: Feature 'using declarations' is not available in C# 7.3. Please use language version 8.0 or greater. [C:\data\mci\f2ff7685c4b530964ca337cc17f109e1\astrolabe-src\mongo-csharp-driver\tests\MongoDB.Driver.Encryption.Tests\MongoDB.Driver.Encryption.Tests.csproj::TargetFramework=net472]
      

      See the full log here.

      It looks like MongoDB.Driver.Encryption.csproj is missing a reference to ../BuildProps/Tests.Build.props and is thus trying to build in C# 7.3 compat mode. Strangely it compiles correctly on my MBP.

            Assignee:
            adelin.mbidaowona@mongodb.com Adelin Mbida Owona
            Reporter:
            james.kovacs@mongodb.com James Kovacs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: