Microsoft.AspNet.WebApi.SelfHost 5.2.9

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
.NET Framework 4.5
dotnet add package Microsoft.AspNet.WebApi.SelfHost --version 5.2.9
NuGet\Install-Package Microsoft.AspNet.WebApi.SelfHost -Version 5.2.9
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.2.9" />
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.2.9
#r "nuget: Microsoft.AspNet.WebApi.SelfHost, 5.2.9"
#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.2.9

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

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 Versions
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (59)

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.2.9 83,437 5/31/2022
5.2.8 23,366 4/12/2022
5.2.7 1,176,844 11/29/2018
5.2.6 331,085 5/11/2018
5.2.5 12,872 5/2/2018
5.2.5-preview1 2,272 3/19/2018
5.2.4 126,735 2/12/2018
5.2.4-preview1 2,179 1/5/2018
5.2.3 2,115,451 2/9/2015
5.2.3-beta1 2,822 12/17/2014
5.2.2 195,028 8/28/2014
5.2.2-rc 2,375 8/23/2014
5.2.0 107,721 7/1/2014
5.2.0-rc 3,134 5/27/2014
5.1.2 81,158 4/2/2014
5.1.1 24,865 2/10/2014
5.1.0 19,075 1/17/2014
5.1.0-rc1 1,861 12/6/2013
5.0.1 30,021 2/13/2014
5.0.0 67,613 10/17/2013
5.0.0-rc1 3,130 8/23/2013
5.0.0-beta2 3,398 6/26/2013
5.0.0-beta1 2,591 6/26/2013
4.0.30506 316,610 5/30/2013
4.0.20918 128,571 9/27/2012
4.0.20710 96,696 8/11/2012
4.0.20505 36,488 5/31/2012