Merge pull request #10464 from michaelnebel/csharp/remove-dotnet-run-support

C#: Remove `dotnet run` support in LUA tracer.
This commit is contained in:
Tom Hvitved
2022-09-19 20:25:54 +02:00
committed by GitHub

View File

@@ -36,26 +36,12 @@ function RegisterExtractorPack(id)
match = true
break
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
if match then
local injections = { '-p:UseSharedCompilation=false' }
if needsSeparator then
table.insert(injections, '--')
end
return {
order = ORDER_REPLACE,
invocation = BuildExtractorInvocation(id, compilerPath, compilerPath, compilerArguments, nil, injections)
invocation = BuildExtractorInvocation(id, compilerPath, compilerPath, compilerArguments, nil, { '-p:UseSharedCompilation=false' })
}
end
return nil