Replies: 1 comment 2 replies
-
fixed this, it was an easy one. Basically I forgot to register the ImportCommand. // Register commands |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi CliFx team,
when I am trying to use dependency injection I get an error. See my code below:
but I keep getting the following error:
Failed to create an instance of type
Console01.ImportCommand
.Default type activator is only capable of instantiating a type if it has a public parameterless constructor.
To fix this, either add a parameterless constructor to the type or configure a custom activator on the application.
My ImportCommand looks like the following:
Beta Was this translation helpful? Give feedback.
All reactions