diff --git a/src/Microsoft.DotNet.Cli.Utils/CommandResolver.cs b/src/Microsoft.DotNet.Cli.Utils/CommandResolver.cs index 5c8ff6655..8473b90c9 100644 --- a/src/Microsoft.DotNet.Cli.Utils/CommandResolver.cs +++ b/src/Microsoft.DotNet.Cli.Utils/CommandResolver.cs @@ -181,8 +181,7 @@ namespace Microsoft.DotNet.Cli.Utils if (depsPath != null) { - additionalArgs.Add("--depsfile"); - additionalArgs.Add(depsPath); + additionalArgs.Add($"--depsfile:{depsPath}"); } args = additionalArgs.Concat(args);