You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build a library which has langversion=7 and targets net6.0, using net7.0 SDK
Library should involve some sort of SRTP code (with either new or old syntax).
Reference this library in a project which targets net6.0 and uses net6.0 SDK
This will result in Error reading/writing metadata for the F# compiled DLL '%s'. Was the DLL compiled with an earlier version of the F# compiler? (error: 'u_trait_sln')..
This is sort of by design, since we're technically picking some data which is unknown to the old compiler.
The general recommendation is to move to .NET7 SDK on the consumer side, or target .NET7, when langversion 7 is needed to be used.