Asp.Net WebApi 项目及依赖整理

时间:2022-01-08 12:57:02

一、目前版本

Microsoft ASP.NET Web API 2.2

对应程序集版本5.2.3

二、默认生成的配置文件中的内容

<packages>
<package id="Microsoft.AspNet.WebApi" version="5.2.3" targetFramework="net452" />
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net452" />
<package id="Microsoft.AspNet.WebApi.Client.zh-Hans" version="5.2.3" targetFramework="net452" />
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net452" />
<package id="Microsoft.AspNet.WebApi.Core.zh-Hans" version="5.2.3" targetFramework="net452" />
<package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.3" targetFramework="net452" />
<package id="Microsoft.AspNet.WebApi.WebHost.zh-Hans" version="5.2.3" targetFramework="net452" />
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.0" targetFramework="net452" />
<package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net452" developmentDependency="true" />
<package id="Newtonsoft.Json" version="6.0.4" targetFramework="net452" />
</packages>

三、程序集的依赖整理

1.Microsoft.AspNet.WebApi  5.2.3

Dependencies:Microsoft.AspNet.WebApi.WebHost (>= 5.2.3 && < 5.3.0)

2.Microsoft.AspNet.WebApi.WebHost 5.2.3

Dependencies:Microsoft.AspNet.WebApi.Core (>= 5.2.3 && < 5.3.0)

3.Microsoft.AspNet.WebApi.Core 5.2.3

Dependencies:Microsoft.AspNet.WebApi.Client (>= 5.2.3)

4.Microsoft.AspNet.WebApi.Client 5.2.3

Dependencies:

参考来源:http://www.nuget.org/packages/Microsoft.AspNet.WebApi/

更多:

Asp.Net WebApi Post请求整理(一)

Asp.Net WebApi Get请求整理(一)

Asp.Net WebApi 启用CORS跨域访问指定多个域名