找不到system.web.http [英] Can not find system.web.http

查看:131
本文介绍了找不到system.web.http的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须添加一个system.web.http程序集引用,因为我已将HttpConfiguration类添加到我的单元测试类库项目中.

I have to add a system.web.http assembly reference because I added the HttpConfiguration class to my unit test class library project.

浏览添加引用"对话框时,找不到system.web.http程序集.

When I browse the Add reference dialog I can not find the system.web.http assembly.

类库项目的目标是.Net 4.5.1框架.

The class library project has the .Net 4.5.1 framework targeted.

推荐答案

为了获取system.web.http,您需要安装nuget软件包在nuget命令行中:安装包Microsoft.AspNet.WebApi.Core

in order to get the system.web.http you will need to install a nuget package in the nuget command line: Install-Package Microsoft.AspNet.WebApi.Core

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

这篇关于找不到system.web.http的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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