Quote the ToolAssembly path in BrotliCompress task. (#25101)
Fix #25098
This commit is contained in:
parent
04a704c929
commit
a700662dec
|
|
@ -54,7 +54,18 @@ namespace Microsoft.NET.Sdk.BlazorWebAssembly
|
|||
}
|
||||
}
|
||||
|
||||
protected override string GenerateCommandLineCommands() => ToolAssembly;
|
||||
private static string Quote(string path)
|
||||
{
|
||||
if (string.IsNullOrEmpty(path) || (path[0] == '\"' && path[path.Length - 1] == '\"'))
|
||||
{
|
||||
// it's already quoted
|
||||
return path;
|
||||
}
|
||||
|
||||
return $"\"{path}\"";
|
||||
}
|
||||
|
||||
protected override string GenerateCommandLineCommands() => Quote(ToolAssembly);
|
||||
|
||||
protected override string GenerateResponseFileCommands()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue