Closed roji closed 5 years ago
The reddits say its changed to <NullableContextOptions>enable</NullableContextOptions>
Thanks @benaadams, that works :) I'm guessing that my EF Core build was on a newer SDK because of arcade, while the standalone project was on an older version with the previous property.
I'm a bit of a newcomer so I hope I'm posting in the right place with the right details.
While working on introducing C# 8 nullable reference annotations into the Entity Framework Core codebase, it would seem that the
<NullableReferenceTypes>
attribute isn't getting properly picked up from the project's csproj, but only when building with Visual Studio 2019 Preview2. When trying to build, I'm getting warnings of the following type for each null-annotated type:Building the same project from the cmdline succeeds. Building a regular, non-Arcade project from VS also succeeds. Placing
#nullable enable
in the source file also works, so the problem really seems to be with the csproj property.VS version: 2019 Preview 2 dotnet SDK: 3.0.100-preview-010010