How do we determine whether we are using Web API 1 or Web API 2?

前端 未结 3 574
轻奢々
轻奢々 2021-02-04 23:31

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?<

3条回答
  •  孤城傲影
    2021-02-05 00:00

    I'm not sure what @John meant with the package name above. I'm having the following package right now:

    Microsoft.AspNet.WebApi.5.2.3
    

    Based on this article http://www.asp.net/web-api/overview/releases/whats-new-in-aspnet-web-api-22 I assume that starting from the package version 5.2.2 it's Web API 2.2 version.

提交回复
热议问题