解决错误 CS1617 Invalid option '7.1' for /langversion; must be ISO-1, ISO-2, Default or an integer in range 1 to 6.
发生此类问题是因为IDE与项目版本不匹配
解决方法:右键项目---》管理nuget程序包--》更新 Microsoft.Net.Compilers和DotNetCompilerPlatform包
发生此类问题是因为IDE与项目版本不匹配
解决方法:右键项目---》管理nuget程序包--》更新 Microsoft.Net.Compilers和DotNetCompilerPlatform包