需要在项目.csprog文件中显式添加
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp2.1</TargetFramework> <LangVersion>7.1</LangVersion> </PropertyGroup> </Project>
那句启动7.1版本启用
标签:csprog,错误,CS5001,编译器,7.1,NET From: https://www.cnblogs.com/yanzhao-x/p/16824350.html