Skip to content

Commit 01a043d

Browse files
authored
Merge pull request #10464 from michaelnebel/csharp/remove-dotnet-run-support
C#: Remove `dotnet run` support in LUA tracer.
2 parents 4a4cd8a + d0c6837 commit 01a043d

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

csharp/tools/tracing-config.lua

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,12 @@ function RegisterExtractorPack(id)
3636
match = true
3737
break
3838
end
39-
if arg == 'run' then
40-
-- for `dotnet run`, we need to make sure that `-p:UseSharedCompilation=false` is
41-
-- not passed in as an argument to the program that is run
42-
match = true
43-
needsSeparator = true
44-
end
45-
end
46-
if arg == '--' then
47-
needsSeparator = false
48-
break
4939
end
5040
end
5141
if match then
52-
local injections = { '-p:UseSharedCompilation=false' }
53-
if needsSeparator then
54-
table.insert(injections, '--')
55-
end
5642
return {
5743
order = ORDER_REPLACE,
58-
invocation = BuildExtractorInvocation(id, compilerPath, compilerPath, compilerArguments, nil, injections)
44+
invocation = BuildExtractorInvocation(id, compilerPath, compilerPath, compilerArguments, nil, { '-p:UseSharedCompilation=false' })
5945
}
6046
end
6147
return nil

0 commit comments

Comments
 (0)