Fix quotes around path containing spaces
This commit is contained in:
parent
0b3ea258e7
commit
96c62d2d25
2 changed files with 7 additions and 7 deletions
|
@ -42,11 +42,11 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
|
|||
var argsList = new List<string>();
|
||||
|
||||
var managedPath = Path.Combine(config.IlcPath, ILCompiler);
|
||||
argsList.Add(managedPath);
|
||||
argsList.Add($"\"{managedPath}\"");
|
||||
|
||||
// Input File
|
||||
var inputFilePath = config.InputManagedAssemblyPath;
|
||||
argsList.Add(inputFilePath);
|
||||
argsList.Add($"\"{inputFilePath}\"");
|
||||
|
||||
// System.Private.CoreLib Reference
|
||||
var coreLibPath = Path.Combine(config.IlcPath, OSCoreLibNameMap[config.OS]);
|
||||
|
@ -103,4 +103,4 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,14 +102,15 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
|
|||
var SDKLibs = ModeLibMap[config.NativeMode];
|
||||
foreach (var lib in SDKLibs)
|
||||
{
|
||||
argsList.Add(Path.Combine(config.IlcPath, lib));
|
||||
var sdkLibPath = Path.Combine(config.IlcPath, lib);
|
||||
argsList.Add($"\"{sdkLibPath}\"");
|
||||
}
|
||||
|
||||
// Configuration Based Libs
|
||||
var configLibs = ConfigurationLinkLibMap[config.BuildType];
|
||||
foreach (var lib in configLibs)
|
||||
{
|
||||
argsList.Add(lib);
|
||||
argsList.Add($"\"{lib}\"");
|
||||
}
|
||||
|
||||
// Link Libs
|
||||
|
@ -136,7 +137,6 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
|
|||
.ForwardStdErr()
|
||||
.ForwardStdOut()
|
||||
.Execute();
|
||||
|
||||
return result.ExitCode;
|
||||
}
|
||||
|
||||
|
@ -163,4 +163,4 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue