Install
.NET CLI
dotnet add package Microsoft.Extensions.Hosting.WindowsServices --version 3.1.18
Package Manager Console
Install-Package Microsoft.Extensions.Hosting.WindowsServices -Version 3.1.18
PackageReference
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="3.1.18" />
Frameworks
Dependencies
Microsoft.Extensions.Hosting
[3.1.18, )
.NETStandard2.0
Microsoft.Extensions.Logging.EventLog
[3.1.18, )
.NETStandard2.0
System.ServiceProcess.ServiceController
[4.7.0, )
.NETStandard2.0
Microsoft.Extensions.Hosting
[3.1.18, )
.NETStandard2.1
Microsoft.Extensions.Logging.EventLog
[3.1.18, )
.NETStandard2.1
System.ServiceProcess.ServiceController
[4.7.0, )
.NETStandard2.1
Adoption guide
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.