OwinHost 4.2.2

dotnet add package OwinHost --version 4.2.2
NuGet\Install-Package OwinHost -Version 4.2.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="OwinHost" Version="4.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OwinHost --version 4.2.2
#r "nuget: OwinHost, 4.2.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install OwinHost as a Cake Addin
#addin nuget:?package=OwinHost&version=4.2.2

// Install OwinHost as a Cake Tool
#tool nuget:?package=OwinHost&version=4.2.2

OwinHost Readme: OwinHost enables self-hosting of OWIN applications without requiring the developer to write that host process. The OwinHost package contains the OwinHost.exe host process as well as assemblies containing default loader logic.

OwinHost.exe: When installing the OwinHost package from within Visual Studio, OwinHost.exe can be found in the package's 'tools' directory. In a typical NuGet configuration, this will be located at <solution root>/packages/OwinHost.(version)/tools. While this package installation approach enables use of the Visual Studio Package Manager dialog, the placement of OwinHost.exe relative to the project directory can prove cumbersome over time if regularly run from the command line. In this case, the package can also be installed to a common location on the development machine (using NuGet.exe) and that location's directory can be added to the PATH environment variable. This approach enables OwinHost.exe to be run from the project directory without any path qualifiers. Some third party tools, such as Chocolatey automate this process by setting up a central location for binaries and adding that location to the PATH.

Launching OwinHost: Self-hosting an OWIN application with OwinHost is as simple as running OwinHost.exe from your Web application's project directory. Project directory is defined here as the parent directory of ./bin which contains the application's assemblies as well as the selected server assembly. By default, when running OwinHost.exe with no additional parameters, the host will attempt to locate and load the application's startup class and the OWIN HttpListener server. After constructing the OWIN pipeline with the help of the startup class, it will then begin listening on port 5000. All of these default behaviors can be easily changed using parameters to OwinHost.exe, as described below.

Launching OwinHost from Within Visual Studio 2013: In Visual Studio 2013, OwinHost can be launched directly from within the IDE using the F5 gesture. This is accomplished by a new feature wherein Visual Studio can run custom Web servers that have been registered in a Web application project. For Visual Studio 2013 Web application projects, the OwinHost NuGet package will automatically register OwinHost.exe as a custom Web server. To use it, navigate to the Web tab of project properties and select OwinHost from the dropdown list of available Web servers. Additional command line settings can optionally be specified using the form fields underneath the server list. After setting OwinHost as the Web server, the project can be run using OwinHost.exe by pressing F5.

OwinHost Parameters: There are a variety of ways to customize the default behavior of OwinHost. For example, to select an alternate OWIN-compatible server, run the following:

OwinHost.exe -s <Custom.Server.Assembly>

The full list of options can be seen by running:

OwinHost.exe /?

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.2.2 2,655 5/11/2022
4.2.1 405 4/8/2022
4.2.0 4,357 5/10/2021
4.1.1 18,148 9/8/2020
4.1.0 8,182 11/25/2019
4.0.1 35,576 1/24/2019
4.0.0 32,412 2/14/2018
4.0.0-preview1 1,210 11/21/2017
4.0.0-alpha1 1,193 8/30/2017
3.1.0 96,696 4/10/2017
3.1.0-rc1 1,138 3/24/2017
3.0.1 187,253 2/20/2015
3.0.0 28,873 8/20/2014
3.0.0-rc2 1,379 7/10/2014
3.0.0-rc1 1,358 7/2/2014
3.0.0-beta1 12,876 3/27/2014
3.0.0-alpha1 1,397 2/20/2014
2.1.0 13,417 1/21/2014
2.1.0-rc1 1,315 12/12/2013
2.0.2 4,250 11/18/2013
2.0.1 4,460 10/25/2013
2.0.0 2,568 10/17/2013
2.0.0-rc1 1,802 9/6/2013
1.1.0-beta2 1,751 6/26/2013
1.1.0-beta1 1,532 6/26/2013