-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C# runtime's tuple deconstruction incompatible with .NET Framework pre-4.7 #1951
Comments
To add some context - we want to support .NET Framework 4.6.2 because Microsoft hasn't announced an end-of-support date: https://docs.microsoft.com/en-us/lifecycle/products/microsoft-net-framework |
Ideally, Dafny would advertise the details of the supported compiled languages: |
Or even better it would target a version so old that this issue doesn't even pop up |
Ran `dotnet add package "System.ValueTuple"` to add System.ValueTuple as a dependency of the AWSEncryptionSDK.
Regardless of the age of language runtime versions that Dafny supports, I'd still prefer that Dafny be explicit about which versions it supports. |
(To clarify, the workaround of depending on |
Split off #1983 to track this as a separate and actually more important ask. |
I believe that this issue is fixed. Looking at the latest version of the runtime, it no longer uses tuple destruction. We're also building the runtime for framework |
The C# runtime in Dafny v3.5.0 uses tuple deconstruction (see first and last lines):
dafny/Source/DafnyRuntime/DafnyRuntime.cs
Lines 1192 to 1203 in 76c8d59
This is problematic because it fails to compile on .NET Framework versions below 4.7, which are missing runtime support for this feature:
This seems to be a known issue that can be worked around either by manually deconstructing the tuple, or by depending on the
System.ValueTuple
package.The text was updated successfully, but these errors were encountered: