I\'d like to use C# 8.0 (especially ranges and non-nullable reference types) in Visual Studio 2017. Is it possible?
You can Use Microsoft.Net.Compilers.Toolset instead of Microsoft.Net.Compilers in vs2017
This package is intended as a replacement for Microsoft.Net.Compilers (which is a Windows-only package) and Microsoft.NETCore.Compilers. Those packages are now deprecated and will be deleted in the future.
The package requires MSBuild 15.0 and either .NET Destkop 4.7.2 or .NET Core 2.1
The package versions:
The package version map the capability of c# 8 support compared to vs2019.
How to use
Add these lines to the .csproj
//....
8.0
enable