How can I turn on C# preview features in Visual Studio?
The feature 'nullable reference types' is currently in Preview and "unsupported". To use Preview features, use the 'preview' language version.
The project Properties does not offer "unsupported preview of next C# version (preview)" as an option:
In order to turn on the preview features, you need all these:
> dotnet --list-sdks
2.1.202 [C:\Program Files\dotnet\sdk]
…
2.2.101 [C:\Program Files\dotnet\sdk]
3.0.100-preview6-012264 [C:\Program Files\dotnet\sdk]
I my case I needed to check this checkbox (and restart Visual Studio!)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With