Microsoft.AspNet.WebApi.SelfHost 5.3.0

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

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

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)
Included target framework(s) (in package)
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.

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


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


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

GitHub repositories (19)

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

Repository Stars
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
An implementation of HTTP Caching in .NET Core and 4.5.2+ for both the client and the server
Version Downloads Last updated
5.3.0 63,469 10/23/2023
5.3.0-preview1 1,558 4/3/2023
5.2.9 305,017 5/31/2022
5.2.8 37,356 4/12/2022
5.2.7 1,520,758 11/29/2018
5.2.6 359,905 5/11/2018
5.2.5 17,730 5/2/2018
5.2.5-preview1 2,571 3/19/2018
5.2.4 147,345 2/12/2018
5.2.4-preview1 2,511 1/5/2018
5.2.3 2,416,422 2/9/2015
5.2.3-beta1 3,073 12/17/2014
5.2.2 265,526 8/28/2014
5.2.2-rc 2,646 8/23/2014
5.2.0 138,435 7/1/2014
5.2.0-rc 3,998 5/27/2014
5.1.2 112,425 4/2/2014
5.1.1 31,424 2/10/2014
5.1.0 31,349 1/17/2014
5.1.0-rc1 1,975 12/6/2013
5.0.1 31,757 2/13/2014
5.0.0 94,812 10/17/2013
5.0.0-rc1 3,466 8/23/2013
5.0.0-beta2 3,818 6/26/2013
5.0.0-beta1 2,886 6/26/2013
4.0.30506 359,866 5/30/2013
4.0.20918 146,796 9/27/2012
4.0.20710 119,151 8/11/2012
4.0.20505 39,328 5/31/2012