C#: Do not recognize 'run' as supported dotnet command for tracing.

This commit is contained in:
Michael Nebel
2022-09-17 14:07:40 +02:00
parent 4a4cd8a770
commit d0c6837a79

View File

@@ -36,26 +36,12 @@ function RegisterExtractorPack(id)
match = true match = true
break break
end end
if arg == 'run' then
-- for `dotnet run`, we need to make sure that `-p:UseSharedCompilation=false` is
-- not passed in as an argument to the program that is run
match = true
needsSeparator = true
end
end
if arg == '--' then
needsSeparator = false
break
end end
end end
if match then if match then
local injections = { '-p:UseSharedCompilation=false' }
if needsSeparator then
table.insert(injections, '--')
end
return { return {
order = ORDER_REPLACE, order = ORDER_REPLACE,
invocation = BuildExtractorInvocation(id, compilerPath, compilerPath, compilerArguments, nil, injections) invocation = BuildExtractorInvocation(id, compilerPath, compilerPath, compilerArguments, nil, { '-p:UseSharedCompilation=false' })
} }
end end
return nil return nil