.NET Framework 4.6
dotnet add package WindowsService.Host --version
NuGet\Install-Package WindowsService.Host -Version
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="WindowsService.Host" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WindowsService.Host --version
#r "nuget: WindowsService.Host,"
#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 WindowsService.Host as a Cake Addin
#addin nuget:?package=WindowsService.Host&version=

// Install WindowsService.Host as a Cake Tool
#tool nuget:?package=WindowsService.Host&version=

Simple Windows Service hosting library. Allows to install service with installutil.exe into Service Control Manager (SCM) or run as a Console Application.

Product Versions
.NET Framework 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.

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 1,998 12/16/2016 1,275 5/29/2016 967 2/9/2016 1,505 1/14/2016 871 1/7/2016 902 1/7/2016 868 1/6/2016

Added support for unattended installation via command-line args /username, /password and /account.