Skip to content

Commit c608675

Browse files
committed
C#: Quote nuget.exe path
1 parent 78552b8 commit c608675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/NugetExeWrapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private bool TryRestoreNugetPackage(string packagesConfig)
170170
if (RunWithMono)
171171
{
172172
exe = "mono";
173-
args = $"{nugetExe} install -OutputDirectory \"{packageDirectory}\" \"{packagesConfig}\"";
173+
args = $"\"{nugetExe}\" install -OutputDirectory \"{packageDirectory}\" \"{packagesConfig}\"";
174174
}
175175
else
176176
{
@@ -240,7 +240,7 @@ private void RunMonoNugetCommand(string command, out IList<string> stdout)
240240
if (RunWithMono)
241241
{
242242
exe = "mono";
243-
args = $"{nugetExe} {command}";
243+
args = $"\"{nugetExe}\" {command}";
244244
}
245245
else
246246
{

0 commit comments

Comments
 (0)