Skip to content

Reference to type 'CommandLineConfiguration' claims it is defined in 'System.CommandLine', but it could not be found #2661

@Peter-Juhasz

Description

@Peter-Juhasz

Was using Beta5-6 and Hosting 0.4:

await BuildCommandLine()
	.UseHost((IHostBuilder host) =>
	{
		// ...
	})
	.InvokeAsync(args);

static CommandLineConfiguration BuildCommandLine()
{
	var root = new RootCommand();

	// ...

	var config = new CommandLineConfiguration(root);
	config.ThrowIfInvalid();
	return config;
}

Are there any new documentation or samples available?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions