We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec3162 commit ca5baddCopy full SHA for ca5badd
src/System.CommandLine.Minimal.SourceGenerator/CommandOptionsWriter.cs
@@ -47,7 +47,7 @@ public static class Configure{{binder.CommandNameTitleCase}}BuilderExtensions
47
);
48
// do not add the class to services if it's static
49
if (!binder.MethodIsStatic)
50
- sb.AppendLine($" builder.Services.TryAddTransient<{binder.CommandOptionsName}>();");
+ sb.AppendLine($" builder.Services.TryAddTransient<{binder.FullClassName}>();");
51
sb.AppendLine(
52
$$"""
53
{{binder.CommandOptionsName}} cliOptions = builder.TryRegisterCommandOptions<{{binder.CommandOptionsName}}>();
0 commit comments