这个没在StartUp的ConfigureService中注册吧
vs2019 16.0版本,更新为16.4或更高版本,即可解决。
可以试试检查一下在注入的地方,有没有注入Option。
https://github.com/Yaduo/LanzhouBeefNoodlesNet5
https://github.com/Yaduo/LanzhouBeefNoodles
试试这个!
public static IWebHostBuilder CreateWebHostBuilder(string[] args)
{
return WebHost.CreateDefaultBuilder(args).UseStartup<Startup>();
}
写成这样能理解吧
hello啊,可能是安装vs的时候出了点问题,问题不大。自己下载安装dotnet core 2.2就可以了,https://dotnet.microsoft.com/download/dotnet-core/2.2,找到自己的系统下载安装。安装完以后要记得重启一下visual studio。