我如何获得System.Web.Http.Owin? [英] How do I get System.Web.Http.Owin?
问题描述
我有system.web.http.owin一个版本号的问题。
所以,我从我的项目包引用删除它,与我会重新添加它,看它是否解决了问题的想法。然而,它已完全消失。即在Visual Studio中,如果我走了:
解决方案资源管理器> myProject的>引用> RMC>添加引用>
然后搜索 system.web.http.owin
它不会出现。
任何想法出了什么问题还是什么包,我需要安装,使其重新出现。
我原来的错误信息......
7时出错大会System.Web.Http.Owin,版本= 5.1.0.0, 文化=中性公钥= 31bf3856ad364e35'用途 System.Web.Http,版本= 5.1.0.0,文化=中立, 公钥= 31bf3856ad364e35'具有更高版本比 引用的程序集'System.Web.Http,版本= 4.0.0.0, 文化=中立, 公钥= 31bf3856ad364e35'E:\用户\ PROJECT1的\ src \包\ Microsoft.AspNet.WebApi.Owin.5.1.1 \ lib目录\ net45 \ System.Web.Http.Owin.dll Smots.Core
本的NuGet包 Microsoft.AspNet。 WebApi.Owin 包含该DLL。
您可以通过右键点击你的项目的引用文件夹中安装它,选择管理的NuGet包...并搜索Microsoft.AspNet.WebApi.Owin。或者,您可以使用软件包管理器控制台,然后键入以下内容:
安装,包Microsoft.AspNet.WebApi.Owin
I had a version number problem with system.web.http.owin.
So I removed it from my projects package references, with the idea that I would re-added it to see if it fixed the problem. However it has disappeared completely. I.e. in visual studio if I go:
solution explorer > myProject > references > RMC > add reference >
and then search for system.web.http.owin
it doesn't appear.
Any ideas what has gone wrong or what package I need to install to make it re-appear.
My original error message...
Error 7 Assembly 'System.Web.Http.Owin, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses 'System.Web.Http, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' e:\user\project1\src\packages\Microsoft.AspNet.WebApi.Owin.5.1.1\lib\net45\System.Web.Http.Owin.dll Smots.Core
The NuGet package Microsoft.AspNet.WebApi.Owin contains that DLL.
You can install it by right-clicking on the References folder of your project and selecting "Manage NuGet Packages..." and searching for "Microsoft.AspNet.WebApi.Owin". Or you can use the Package Manager Console and type the following:
Install-Package Microsoft.AspNet.WebApi.Owin
这篇关于我如何获得System.Web.Http.Owin?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!