如何在我的Visual Studio项目解决方案中查找Web Api [英] How Can I Find Web Api In My Visual Studio Project Solution
本文介绍了如何在我的Visual Studio项目解决方案中查找Web Api的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在我的项目解决方案资源管理器中找到web apis列表
Hi,
How can I find list of web apis in my project solution explorer
推荐答案
如果您的意思是web api,您可以首先右键单击您的Web项目,选择您的Web应用程序并通过选择管理nu-get软件包确认您确实安装了Web api 2.2+,因为您没有得到它;)
除非你已经用c#6运行VS 2015
原因在微软将其作为产品之前,'Web API'是一个术语,如果你在这个细分市场中,那么问题就不那么简单了。
所以如果你正在运行.net版本的C#少于6并且你安装了web api,你可以在解决方案中搜索:ApiController。
任何网站Api控制器类必须从ApiController派生以促进Microsoft Web API
If you mean web api, you could begin by right clicking your web project, select your web application and verify that you indeed have Web api 2.2+ installed by choosing manage nu-get packages, because you don't you ain't got it ;)
That is unless you're already running VS 2015 with c# 6
Of cause 'Web API' was a term long before microsoft made it a product, if you're in that segment, it's not as simple a question to answer.
So if you're running .net version of C# less than 6 and you have web api installed, you can make a solution wide search for ": ApiController".
Any Web Api controller class must derive from ApiController to facilitate Microsoft Web API
这篇关于如何在我的Visual Studio项目解决方案中查找Web Api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文