diff --git a/new-cli/Directory.Packages.props b/new-cli/Directory.Packages.props
index 35b839822d..ff081d944f 100644
--- a/new-cli/Directory.Packages.props
+++ b/new-cli/Directory.Packages.props
@@ -10,7 +10,7 @@
-
+
@@ -20,8 +20,8 @@
-
+
-
+
diff --git a/new-cli/GitVersion.Cli/GitVersionApp.cs b/new-cli/GitVersion.Cli/GitVersionApp.cs
index 7c9d1854d1..ae3ea25c95 100644
--- a/new-cli/GitVersion.Cli/GitVersionApp.cs
+++ b/new-cli/GitVersion.Cli/GitVersionApp.cs
@@ -9,12 +9,11 @@ namespace GitVersion;
// ReSharper disable once ClassNeverInstantiated.Global
internal class GitVersionApp(RootCommandImpl rootCommand)
{
- private readonly RootCommandImpl rootCommand = rootCommand.NotNull();
+ private readonly RootCommandImpl _rootCommand = rootCommand.NotNull();
public Task RunAsync(string[] args, CancellationToken cancellationToken)
{
- var cliConfiguration = new CommandLineConfiguration(rootCommand);
- var parseResult = cliConfiguration.Parse(args);
+ var parseResult = this._rootCommand.Parse(args);
var logFile = parseResult.GetValue(GitVersionSettings.LogFileOption);
var verbosity = parseResult.GetValue(GitVersionSettings.VerbosityOption) ?? Verbosity.Normal;
@@ -22,7 +21,7 @@ public Task RunAsync(string[] args, CancellationToken cancellationToken)
if (logFile?.FullName != null) LoggingEnricher.Path = logFile.FullName;
LoggingEnricher.LogLevel.MinimumLevel = GetLevelForVerbosity(verbosity);
- return parseResult.InvokeAsync(cancellationToken);
+ return parseResult.InvokeAsync(new InvocationConfiguration(), cancellationToken);
}
// Note: there are 2 locations to watch for dotnet-suggest
diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props
index c358e59ee0..694b80ea71 100644
--- a/src/Directory.Packages.props
+++ b/src/Directory.Packages.props
@@ -37,10 +37,10 @@
-
+
-
+