Open
Description
The example given here: https://github.com/dotnet/command-line-api/wiki/How-To#method-first does not build
static void Main()
{
var rootCommand = new RootCommand();
MethodInfo method = typeof(Program).GetMethod(nameof(DoSomething));
rootCommand.ConfigureFromMethod<int, string>(method);
rootCommand.InvokeAsync(args).Wait();
}
More precisely:
static void Main()
- missing
string[] args
rootCommand.ConfigureFromMethod<int, string>(method);
- Gives error:
'RootCommand' does not contain a definition for 'ConfigureFromMethod' and no accessible extension method 'ConfigureFromMethod' accepting a first argument of type 'RootCommand' could be found (are you missing a using directive or an assembly reference?)
even withusing System.CommandLine.DragonFruit;