File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ function RegisterExtractorPack(id)
21
21
-- if that's `build`, we append `-p:UseSharedCompilation=false` to the command line,
22
22
-- otherwise we do nothing.
23
23
local match = false
24
+ local testMatch = false
24
25
local dotnetRunNeedsSeparator = false ;
25
26
local dotnetRunInjectionIndex = nil ;
26
27
local argv = compilerArguments .argv
@@ -50,10 +51,11 @@ function RegisterExtractorPack(id)
50
51
end
51
52
if arg == ' test' then
52
53
match = true
54
+ testMatch = true
53
55
end
54
- -- for `dotnet [ test|run] `, we should not append `-p:UseSharedCompilation=false` to the command line
55
- -- if a library or executable is being provided as an argument.
56
- if arg :match (' %.exe$' ) or arg :match (' %.dll' ) then
56
+ -- for `dotnet test`, we should not append `-p:UseSharedCompilation=false` to the command line
57
+ -- if an `exe` or `dll` is passed as an argument as the call is forwarded to vstest .
58
+ if testMatch and ( arg :match (' %.exe$' ) or arg :match (' %.dll' ) ) then
57
59
match = false
58
60
break
59
61
end
You can’t perform that action at this time.
0 commit comments