Skip to content

Commit d8b352c

Browse files
committed
C#: Use -p: instead of /p: with dotnet
Makes a difference for `dotnet run` where the option will otherwise be considered an argument to the program that is run.
1 parent 623ba79 commit d8b352c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

csharp/tools/tracing-config.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function RegisterExtractorPack(id)
1616
-- For now, parse the command line as follows:
1717
-- Everything that starts with `-` (or `/`) will be ignored.
1818
-- The first non-option argument is treated as the command.
19-
-- if that's `build`, we append `/p:UseSharedCompilation=false` to the command line,
19+
-- if that's `build`, we append `-p:UseSharedCompilation=false` to the command line,
2020
-- otherwise we do nothing.
2121
local match = false
2222
local needsSeparator = false;
@@ -37,7 +37,7 @@ function RegisterExtractorPack(id)
3737
break
3838
end
3939
if arg == 'run' then
40-
-- for `dotnet run`, we need to make sure that `/p:UseSharedCompilation=false` is
40+
-- for `dotnet run`, we need to make sure that `-p:UseSharedCompilation=false` is
4141
-- not passed in as an argument to the program that is run
4242
match = true
4343
needsSeparator = true
@@ -49,7 +49,7 @@ function RegisterExtractorPack(id)
4949
end
5050
end
5151
if match then
52-
local injections = { '/p:UseSharedCompilation=false' }
52+
local injections = { '-p:UseSharedCompilation=false' }
5353
if needsSeparator then
5454
table.insert(injections, '--')
5555
end

0 commit comments

Comments
 (0)