C#: Poor mans quoting of arguments on windows.

This commit is contained in:
Michael Nebel
2023-09-08 15:09:08 +02:00
parent 94442c1799
commit 9691100138

View File

@@ -84,6 +84,10 @@ function RegisterExtractorPack(id)
dotnetRunNeedsSeparator = false
dotnetRunInjectionIndex = i
end
-- if we encounter a whitespace, we explicitly need to quote the argument.
if OperatingSystem == 'windows' and arg:match('%s') then
argv[i] = '"' .. arg .. '"'
end
end
if match then
local injections = { '-p:UseSharedCompilation=false', '-p:EmitCompilerGeneratedFiles=true' }