net10.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
    {
        public static void RunAsService(this IWebHost! host);
    }
}
nuget.org
0.0 %
Reference this API
.NET
10.0
Information specific to net10.0
Assembly

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

Referencing

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

Package Microsoft.AspNetCore.Hosting.WindowsServices (10.0.2) net10.0
Platform Restrictions

This API is only supported on the following platforms:

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