net11.0
namespace Microsoft.AspNetCore.Hosting.WindowsServices
{
    [Obsolete("Use UseWindowsService and AddHostedService instead. For more information, visit https://aka.ms/aspnet/deprecate/009.", DiagnosticId = "ASPDEPR009", UrlFormat = "https://aka.ms/aspnet/deprecate/009")]
    public static class WebHostWindowsServiceExtensions
}
nuget.org
0.0 %
Reference this API
.NET
10.011.0
Information specific to net11.0
Assemblies

Microsoft.AspNetCore.Hosting.WindowsServices , Version=11.0.0.0, PublicKeyToken=adb9793829ddae60

Microsoft.AspNetCore.Hosting.WindowsServices , Version=10.0.5.0, PublicKeyToken=adb9793829ddae60

Referencing

Your project needs a package reference to Microsoft.AspNetCore.Hosting.WindowsServices.

Package Microsoft.AspNetCore.Hosting.WindowsServices (11.0.0-preview.2.26159.112) net11.0
Obsolete ASPDEPR009: Use UseWindowsService and AddHostedService instead. For more information, visit https://aka.ms/aspnet/deprecate/009.
Platform Restrictions

This API is only supported on the following platforms:

  • Windows
  • Built-in API
  • Package-provided API