The name WebHost does not exists in current context

房东的猫 提交于 2019-12-05 00:55:00

WebHost class resides Microsoft.AspNetCore assembly that comes with Microsoft.AspNetCore.All NuGet package. So to fix you problem install this NuGet package and add following using directive to your source file:

using Microsoft.AspNetCore;

As CodeFuller's answer indicated the WebHost class is available in the assembly Microsoft.AspNetCore If you don't need everything, you can just get the package Microsoft.AspNetCore.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!