DEV Community

.NET Core 3.0 Preview w/ C# 8.0 Nullable Reference Types

jeikabu on December 05, 2018

Awoke this morning and saw the .NET Core 3.0 Preview announcement. Download available from github releases. C# 8.0 Run dotnet --list-s...
Collapse
 
dthpth profile image
Sergey Vershinin

According to this SO
It can be enabled in .csproj file:

<PropertyGroup>
  ...
  <NullableReferenceTypes>true</NullableReferenceTypes>
  <LangVersion>8.0</LangVersion>
</PropertyGroup>
Collapse
 
jeikabu profile image
jeikabu • Edited

Nice find!

Looks like I wasn't the only person that had trouble enabling this. From GitHub issues (including the one linked on SO) it looks like nullable types isn't quite ready in Preview 1.

Thanks for the update!