net9.0
namespace System.CommandLine.Hosting
{
    public static class HostingExtensions
    {
        public static IHostBuilder UseCommandHandler<TCommand, THandler>(this IHostBuilder builder)
            where TCommand, Command
            where THandler, ICommandHandler;
    }
}
.NET 5.06.07.08.09.0
.NET Core 2.02.12.23.03.1
.NET Framework 4.6.14.6.24.74.7.14.7.24.84.8.1
.NET Standard 2.02.1
Information specific to net9.0
Assembly

System.CommandLine.Hosting , Version=0.4.0.0, PublicKeyToken=31bf3856ad364e35

Referencing

Your project needs a package reference to System.CommandLine.Hosting.

Package System.CommandLine.Hosting (0.4.0-alpha.22272.1) netstandard2.1
Preview This API is contained in a prerelease package.
Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API

11/08/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙