_This issue has been moved from VSTS ticketId 896657._
In our .csproj files, this used to enable nullable context:
<NullableContextOptions>enable</NullableContextOptions>
Now, after upgrading to 16.2 preview 1, it no longer works. The compiler throws errors as if we were not in a nullable context. Surrounding code with #nullable enable/restore still works, but it's not feasible to do it for each and every code file in our solution.
I've the exact same issue on all my projects.
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Me too, this breaks nearly everything for me.
Same problem.
Building from commandline does not have any issue
@VisualStudio on Twitter directed me to share my comments here after some messages there.
I'm on 16.1 within a new WPF project and using the element in the project file has no affect. There are no errors, warnings, or otherwise. Using the directive in the individual code files works as expected.
As of ~16.1~16.2, the property was renamed to Nullable. This name is simpler and aligns with the command-line flag.
I'll broadcast on Twitter and check StackOverflow for the inevitable question. Sorry for the inconvenience.
I took a pass over the top Stack Overflow posts and edited/answered/commented with this updated info.
Correction, the change to <Nullable> was in 16.2p1 (not in 16.1). Sorry for the confusion
Most helpful comment
I took a pass over the top Stack Overflow posts and edited/answered/commented with this updated info.