diff --git a/src/docfx/Models/DefaultCommand.cs b/src/docfx/Models/DefaultCommand.cs index 4e4609785a9..33da1ddcee3 100644 --- a/src/docfx/Models/DefaultCommand.cs +++ b/src/docfx/Models/DefaultCommand.cs @@ -34,7 +34,9 @@ public override int Execute(CommandContext context, Options options) string serveDirectory = null; if (config.Metadata is not null) - DotnetApiCatalog.Exec(config.Metadata, new(), baseDirectory, outputFolder).GetAwaiter().GetResult(); + { + DotnetApiCatalog.Exec(config.Metadata, new(), baseDirectory).GetAwaiter().GetResult(); + } if (config.Build is not null) {