-
Notifications
You must be signed in to change notification settings - Fork 347
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
Using C# 8.0 #1335
Comments
It looks like netstandard 2.1 is supported as well. We can avoid using the features that require the CLR changes - the most interesting bit is the new attributes that support nullable reference types:
Might mean we can only trust the output of the netstandard 2.1 warnings, not of the others. But I have not noticed these differences yet (did a small pilot a few weeks ago). |
Very good summary with pointers to even more details: https://stackoverflow.com/questions/56651472/does-c-sharp-8-support-the-net-framework (look for Stephen Kennedy's answer). In short:
(Jan Kotas)
(Immo Landwerth) |
Specifically about nullable references: dotnet/runtime#30493 And this shows the differences in support from the platforms clearly: https://www.meziantou.net/how-to-use-nullable-reference-types-in-dotnet-standard-2-0-and-dotnet-.htm. (and even more details: https://devblogs.microsoft.com/dotnet/try-out-nullable-reference-types) |
According to the documentation only netstandard2.1 is supporting C# 8.0 (https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version).
So we should also upgrade to netstandard2.1 (we are now supporting netstandard2.0). We have to check if that does not cause too much problems.
The text was updated successfully, but these errors were encountered: