Introduce the problem
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?
Search, and research
I have tried Googling the following:
"web api 1" "web api 2"
and
ASP.NET Web API release history
and
ASP.NET Web API nuget
The best references seem to be these two nuget pages:
- 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.
Is that right? How would I know for sure?
Install-Package Microsoft.AspNet.WebApi -Version 5.2.7reference nuget.org/packages/Microsoft.AspNet.WebApi