RunicCommandLine.Hosting 0.1.0-preview.5.1

This is a prerelease version of RunicCommandLine.Hosting.
dotnet add package RunicCommandLine.Hosting --version 0.1.0-preview.5.1
                    
NuGet\Install-Package RunicCommandLine.Hosting -Version 0.1.0-preview.5.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RunicCommandLine.Hosting" Version="0.1.0-preview.5.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RunicCommandLine.Hosting" Version="0.1.0-preview.5.1" />
                    
Directory.Packages.props
<PackageReference Include="RunicCommandLine.Hosting" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RunicCommandLine.Hosting --version 0.1.0-preview.5.1
                    
#r "nuget: RunicCommandLine.Hosting, 0.1.0-preview.5.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RunicCommandLine.Hosting@0.1.0-preview.5.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RunicCommandLine.Hosting&version=0.1.0-preview.5.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=RunicCommandLine.Hosting&version=0.1.0-preview.5.1&prerelease
                    
Install as a Cake Tool

RunicCommandLine.Hosting

RunicCommandLine.Hosting is the host-neutral handoff around the CommandLine kernel. It references only RunicCommandLine; it does not reference Runic Toolkit, a UI framework, MVVM, a parser package, or a DI container.

CommandLineHostingAdapter.Classify consumes HostedCommandLineLaunchInput, which snapshots arguments and the RUNIC_COMMANDLINE_OUTPUT value before any work begins. It calls the configured ICommandSyntaxAdapter exactly once and maps its result without reinterpreting tokens:

Adapter decision Host meaning
Invocation Invoke the command-mode runner with CommandName
Help Use the host's help runner
Version Use the host's version runner
Invalid Preserve Diagnostics for usage output
UserInterface Select a UI mode only when EmptyInputFallback.UserInterface was explicitly configured

The UserInterface decision is intentionally an empty-input policy, not an unknown-command fallback. Empty input uses normal command grammar and becomes Invalid unless that policy is supplied. Unknown commands and output/usage errors always remain Invalid.

For Invocation, construct HostedCommandLineExecutionInput and call ExecuteAsync. The adapter creates a CommandExecutionRequest and delegates to the supplied CommandExecutor; it does not create a scope, handler, lifecycle, or output path. The executor remains the sole owner of exactly one ICommandExecutionScope. A framework integration can map the returned ExitCode to its own application result without changing command exit or fault precedence.

Hosting owns composition, its lifecycle, and the runners for command, help, version, invalid, and user-interface modes. In particular, a command mode runner must not initialize UI, native runtime, or MVVM resources.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.1.0-preview.5.1 74 8/11/2026