Skip to content

Commit

Permalink
Merge pull request #16666 from tamasvajk/buildless/fix/quote-nuget-path
Browse files Browse the repository at this point in the history
C#: Quote `nuget.exe` path
  • Loading branch information
criemen authored Jun 4, 2024
2 parents 78552b8 + c608675 commit c820234
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private bool TryRestoreNugetPackage(string packagesConfig)
if (RunWithMono)
{
exe = "mono";
args = $"{nugetExe} install -OutputDirectory \"{packageDirectory}\" \"{packagesConfig}\"";
args = $"\"{nugetExe}\" install -OutputDirectory \"{packageDirectory}\" \"{packagesConfig}\"";
}
else
{
Expand Down Expand Up @@ -240,7 +240,7 @@ private void RunMonoNugetCommand(string command, out IList<string> stdout)
if (RunWithMono)
{
exe = "mono";
args = $"{nugetExe} {command}";
args = $"\"{nugetExe}\" {command}";
}
else
{
Expand Down

0 comments on commit c820234

Please sign in to comment.