Replies: 2 comments 6 replies
-
In my experience, using a language feature not supported by a target framework generates a compile time error. For example, the screenshot here demonstrates that the |
Beta Was this translation helpful? Give feedback.
0 replies
-
That may be the case right now, but it is still a completely unsupported "just happens to accidentally work" thing according to the official documentation. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! According to https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version, C# 7.3 is the newest LangVersion that is supported on the current TargetFrameworks (
netstandard2.0;net461
). For example, C# 10 requires .NET 6 as executing runtime according to that document.Now it seems to technically work (you would have noticed otherwise, I assume), but evidently it's an unsupported scenario. Did you ever discuss this?
EDIT: I found some discussion here #380 but it seem to operate under the assumption that C# 8 is supported on older versions of .NET runtimes, which is not the case I think. As I read https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version, it only lists certain features as explanation for why C# 8 is not supported on older .NET versions but does not say "if you don't use these, it's supported". For newer C# versions, it does not even list such features, only stating a minimum .NET version.
Beta Was this translation helpful? Give feedback.
All reactions