Microsoft.AspNet.WebApi.SelfHost 5.1.2

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
.NET Framework 4.5
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.AspNet.WebApi.SelfHost --version 5.1.2
NuGet\Install-Package Microsoft.AspNet.WebApi.SelfHost -Version 5.1.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.AspNet.WebApi.SelfHost" Version="5.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.AspNet.WebApi.SelfHost --version 5.1.2
#r "nuget: Microsoft.AspNet.WebApi.SelfHost, 5.1.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.AspNet.WebApi.SelfHost as a Cake Addin
#addin nuget:?package=Microsoft.AspNet.WebApi.SelfHost&version=5.1.2

// Install Microsoft.AspNet.WebApi.SelfHost as a Cake Tool
#tool nuget:?package=Microsoft.AspNet.WebApi.SelfHost&version=5.1.2

This is a legacy package for hosting ASP.NET Web API within your own process (outside of IIS). Please use the Microsoft.AspNet.WebApi.OwinSelfHost package for new projects.

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (60)

Showing the top 5 NuGet packages that depend on Microsoft.AspNet.WebApi.SelfHost:

Package Downloads

Legacy package, AspNetWebApi.SelfHost is now included in the 'Microsoft.AspNet.WebApi.SelfHost' package.


AttributeRouting for self-hosted Web API lets you specify routes using attributes on your API controllers and actions.


[This package is now legacy. Migrate to NContext.Extensions.AspNet.WebApi.] NContext application component for ASP.NET Web API.

Ninject.Web.WebApi.Selfhost The ID prefix of this package has been reserved for one of the owners of this package by

Extension for Ninject providing integration with ASP.NET WebAPI 2 self host


Topshelf.WebApi provides extensions to configure a self-hosted WebAPI instance along with your service class.

GitHub repositories (20)

Showing the top 5 popular GitHub repositories that depend on Microsoft.AspNet.WebApi.SelfHost:

Repository Stars
The simple, flexible and friendly ASP.NET CMS used by more than 730.000 websites
Seamlessly adds a swagger to WebApi projects!
ASP.NET Web API rate limiter for IIS and Owin hosting
ASP.NET Web API CacheOutput - library to allow you to cache the output of ApiControllers
OData Web API: A server library built upon ODataLib and WebApi
Version Downloads Last updated
5.3.0-preview1 938 4/3/2023
5.2.9 172,290 5/31/2022
5.2.8 30,764 4/12/2022
5.2.7 1,325,956 11/29/2018
5.2.6 343,820 5/11/2018
5.2.5 15,177 5/2/2018
5.2.5-preview1 2,376 3/19/2018
5.2.4 136,450 2/12/2018
5.2.4-preview1 2,292 1/5/2018
5.2.3 2,244,324 2/9/2015
5.2.3-beta1 2,897 12/17/2014
5.2.2 222,807 8/28/2014
5.2.2-rc 2,465 8/23/2014
5.2.0 118,450 7/1/2014
5.2.0-rc 3,426 5/27/2014
5.1.2 98,813 4/2/2014
5.1.1 28,445 2/10/2014
5.1.0 24,278 1/17/2014
5.1.0-rc1 1,904 12/6/2013
5.0.1 30,974 2/13/2014
5.0.0 76,470 10/17/2013
5.0.0-rc1 3,252 8/23/2013
5.0.0-beta2 3,600 6/26/2013
5.0.0-beta1 2,672 6/26/2013
4.0.30506 333,046 5/30/2013
4.0.20918 134,820 9/27/2012
4.0.20710 104,187 8/11/2012
4.0.20505 37,772 5/31/2012

Please visit to view the release notes.