cints.CmdStarter.Hosting
1.0.0
Prefix Reserved
dotnet add package cints.CmdStarter.Hosting --version 1.0.0
NuGet\Install-Package cints.CmdStarter.Hosting -Version 1.0.0
<PackageReference Include="cints.CmdStarter.Hosting" Version="1.0.0" />
<PackageVersion Include="cints.CmdStarter.Hosting" Version="1.0.0" />
<PackageReference Include="cints.CmdStarter.Hosting" />
paket add cints.CmdStarter.Hosting --version 1.0.0
#r "nuget: cints.CmdStarter.Hosting, 1.0.0"
#:package cints.CmdStarter.Hosting@1.0.0
#addin nuget:?package=cints.CmdStarter.Hosting&version=1.0.0
#tool nuget:?package=cints.CmdStarter.Hosting&version=1.0.0
CmdStarter.Hosting
CmdStarter.Hosting adds Generic Host integration to the cints.CmdStarter package: it registers CmdStarter with the services of the host, so commands can use the host's configuration, options and logging. It runs the requested command, or the REPL, between the start and the stop of the host's hosted services.
var builder = Host.CreateApplicationBuilder(new HostApplicationBuilderSettings { ContentRootPath = AppContext.BaseDirectory });
// ...
builder.AddCmdStarter(options => options.AddCommandsFromAssembly(typeof(Program).Assembly));
using var host = builder.Build();
return await host.RunCmdStarterAsync(args);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- cints.CmdStarter (>= 1.0.0)
- Microsoft.Extensions.Hosting (>= 10.0.14)
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.0.0 | 46 | 11/6/2026 |
1.0.0: rewrite on System.CommandLine 2.0 stable and .NET 10, with breaking changes. Migration guide: https://github.com/CyberInternauts/CmdStarter/blob/master/docs/migration/0.9-to-1.0.md