首页 > 代码库 > Asp.Net WebApi 项目及依赖整理

Asp.Net WebApi 项目及依赖整理

一、目前版本

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:

  • .NETFramework 4.5

    • Newtonsoft.Json (>= 6.0.4)
  • Portable Class Library (.NETFramework 4.5, Windows, WindowsPhone 8.0, WindowsPhone 8.1, WindowsPhoneApp 8.1)

    • Newtonsoft.Json (>= 6.0.4)
    • Microsoft.Net.Http (>= 2.2.22)

 

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

更多:

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

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

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

Asp.Net WebApi 项目及依赖整理