c# - Visual Studio 解决方案找不到System.Web.Http.WebHost

标签 c# visual-studio visual-studio-2017

如描述所述,由于某种原因,解决方案突然找不到 System.Web.Http.WebHost

enter image description here

最佳答案

通过安装 NuGet Microsoft.AspNet.WebApi.WebHost 解决了这个问题。

Install-Package Microsoft.AspNet.WebApi.WebHost

https://www.nuget.org/packages/Microsoft.AspNet.WebApi.WebHost/

关于c# - Visual Studio 解决方案找不到System.Web.Http.WebHost,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44881003/

相关文章:

Azure 应用服务无法启动,因为它无法使用 ASP.NET Core 找到 swagger 文档 xml

c# - ADO.NET 与 Quartz.NET

c# - sgen.exe x64 .net c# 失败,出现 "assembly with an incorrect format"

c++ - 错误 C2327 : not a type name, 静态或枚举数

c# - Visual Studio 2017 错误无法打开 "X"进行写入 - 访问路径被拒绝

.net - 'Version' 属性未在 nuspec 文件中声明

c# - 如何检查 PowerShell 是否准备就绪?

c# - 如何从枚举中获取数值?

c# - C#泛型委托(delegate)中的协变/逆变问题

c# - 来自 Siteminder 的 Visual Studio 负载测试重定向 URL