using Spectre.Console.Cli;
internal sealed class Cli : Command<Cli.Settings>
{
internal sealed class Settings : CommandSettings
{
}
public override int Execute(CommandContext context, Settings settings)
{
return 0;
}
}
Nullability of type of parameter 'context' in method does not match overridden member 'int Spectre.Console.Cli.Command.Execute(CommandContext, TSettings)' (possibly because of nullability attributes)
Nullability of type of parameter 'settings' in method does not match overridden member 'int Spectre.Console.Cli.Command.Execute(CommandContext, TSettings)' (possibly because of nullability attributes)
Error remains regardless if params have the [NotNull] annotation or not.
Edit:
Interestingly, I'm using version 0.47.0 (pulled this morning), but the referenced file CommandOfT.cs doesn't look like the one in main branch. The version I have does indeed have [NotNull] attributes on the Execute and Validate methods. Not sure what's going on here ...
Information
Describe the bug Behaviour as described in this PR is occurring in my instance. https://github.com/spectreconsole/spectre.console/pull/1255
To Reproduce
Nullability of type of parameter 'context' in method does not match overridden member 'int Spectre.Console.Cli.Command.Execute(CommandContext, TSettings)' (possibly because of nullability attributes)
Nullability of type of parameter 'settings' in method does not match overridden member 'int Spectre.Console.Cli.Command.Execute(CommandContext, TSettings)' (possibly because of nullability attributes)
Error remains regardless if params have the [NotNull] annotation or not.
Edit: Interestingly, I'm using version 0.47.0 (pulled this morning), but the referenced file CommandOfT.cs doesn't look like the one in main branch. The version I have does indeed have [NotNull] attributes on the Execute and Validate methods. Not sure what's going on here ...