Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Dispose helper when parsing args
  • Loading branch information
nohwnd committed Jul 1, 2024
commit b2f77b9a90955e112b63c2a19a18228c8a1a7f4c
3 changes: 2 additions & 1 deletion src/vstest.console/InProcessVsTestConsoleWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ internal InProcessVsTestConsoleWrapper(
ProcessHelper.ExternalEnvironmentVariables = environmentVariableBaseline;

string someExistingFile = typeof(InProcessVsTestConsoleWrapper).Assembly.Location;
var args = new VsTestConsoleProcessManager(someExistingFile).BuildArguments(consoleParameters);
using var manager = new VsTestConsoleProcessManager(someExistingFile);
var args = manager.BuildArguments(consoleParameters);
// Skip vstest.console path, we are already running in process, so it would just end up
// being understood as test dll to run. (it is present even though we don't provide
// dotnet path, because it is a .dll file).
Expand Down