I just download the latest version and try to run it, then get this compiler error.
This problem is from asp.net.
one workaround is found here: dotnet/aspnetcore#2751
Basically, the workaround is to put <LangVersion>latest</LangVersion> inside the main <PropertyGroup> at the top, then no error anymore.
I post here to help anyone who have the same problem.