我们如何确定我们使用的是Web API 1还是Web API 2? [英] How do we determine whether we are using Web API 1 or Web API 2?
问题描述
介绍问题
我想知道我们使用的是Web API 1还是2.我自己的packages.config表示版本5.0.0.该Web API是1还是2?
I would like to know whether we are using Web API 1 or 2. My own packages.config indicates version 5.0.0. Is that Web API 1 or 2?
搜索和研究
我尝试了以下搜索:
网络api 1"网络api 2"
"web api 1" "web api 2"
和
ASP.NET Web API发行历史记录
ASP.NET Web API release history
和
ASP.NET Web API Nuget
ASP.NET Web API nuget
最好的参考似乎是这两个nuget页面:
The best references seem to be these two nuget pages:
- ASP.NET Web API Nuget 似乎表明4. *是Web API 1,
- 任何5. *都是Web的Microsoft ASP.NET Web API 2.1 Nuget API2.
- ASP.NET Web API Nuget seems to indicate that anything 4.* is Web API 1,
- Microsoft ASP.NET Web API 2.1 Nuget that anything 5.* is Web API 2.
是吗?我怎么会知道?
推荐答案
我认为您发现的内容似乎是正确的.我遇到了同样的问题,然后在转到管理Nuget软件包"时查看了已安装的软件包.安装了名为"Microsoft ASP.NET WEB API 2.2"的项目.这样我就可以从那里确定自己的版本.
I think what you found seems correct. I had the same question then I had a look under my installed packages when you go "Manage Nuget packages". There was an item installed with the name "Microsoft ASP.NET WEB API 2.2". So I was able to determine my own version from there.
这篇关于我们如何确定我们使用的是Web API 1还是Web API 2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!