Skip to content

Commit 60c786b

Browse files
committed
and finally, use the right process on core
1 parent b8de63a commit 60c786b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/Datadog.Trace.TestHelpers/ProfilerHelper.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Collections.Specialized;
43
using System.Diagnostics;
54
using System.IO;
65

@@ -38,7 +37,7 @@ public static Process StartProcessWithProfiler(
3837
{
3938
// .NET Core
4039
startInfo = new ProcessStartInfo(DotNetCoreExecutable, $"{applicationPath} {arguments ?? string.Empty}");
41-
environmentHelper.SetEnvironmentVariableDefaults(traceAgentPort, applicationPath, startInfo.EnvironmentVariables);
40+
environmentHelper.SetEnvironmentVariableDefaults(traceAgentPort, DotNetCoreExecutable, startInfo.EnvironmentVariables);
4241
}
4342
else
4443
{

0 commit comments

Comments
 (0)