IApplicationBuilder 不包含 UseWebApi 的定义 [英] IApplicationBuilder does not contain a definition for UseWebApi

查看:36
本文介绍了IApplicationBuilder 不包含 UseWebApi 的定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VS 2015 Update 3 已经发布,我已经开始使用它了.但是我很快就遇到了问题.IApplicationBuilder 接口似乎没有 UseWebApi 扩展方法的定义,但 IAppBuilder 有.实际上,我想使用 OWIN 管道注册我的 Web Api.我错过了什么吗?

解决方案

NuGet 命令:

安装包 Microsoft.AspNet.WebApi.OwinSelfHost

来源

The VS 2015 Update 3 is out and I have started playing with it. But I hit a problem soon after. The IApplicationBuilder interface does not appear to have a definition for the UseWebApi extension method, but IAppBuilder does. In effect, I want to register my Web Api with the OWIN pipeline. Am I missing something?

解决方案

NuGet command:

Install-Package Microsoft.AspNet.WebApi.OwinSelfHost

Source

这篇关于IApplicationBuilder 不包含 UseWebApi 的定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆