ExplainCommand+Settings
ctor fails ServiceProvider.ValidateService
#1532
Labels
ExplainCommand+Settings
ctor fails ServiceProvider.ValidateService
#1532
Information
Describe the bug
After upgrading
Spectre.Console.Cli
from0.48.0
to0.49.1
(gitfool/BoardGameGeek.Dungeon#240) I see that dependency injection service provider validation now fails when running a debug build with the "development" environment:To Reproduce
Clone https://github.com/gitfool/BoardGameGeek.Dungeon then run a debug build with the "development" environment.
Expected behavior
This previously did not and now should not fail validation.
Additional context
It does not fail when running a debug build with the "production" environment since validation is then disabled.
This seems to be due to the
ExplainCommand+Settings
ctor; is there a reason for this ctor or can it be removed?spectre.console/src/Spectre.Console.Cli/Internal/Commands/ExplainCommand.cs
Lines 18 to 23 in 5d4b2c8
Please upvote 👍 this issue if you are interested in it.
The text was updated successfully, but these errors were encountered: