Skip to content

Commit 280a27d

Browse files
committed
C#: Log some more info during dotnet --list-runtimes execution.
1 parent 78c732d commit 280a27d

File tree

1 file changed

+3
-1
lines changed
  • csharp/extractor/Semmle.Extraction.CSharp.Standalone

1 file changed

+3
-1
lines changed

csharp/extractor/Semmle.Extraction.CSharp.Standalone/DotNet.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ public bool AddPackage(string folder, string package)
7878

7979
public IList<string> GetListedRuntimes()
8080
{
81-
var args = "--list-runtimes";
81+
const string args = "--list-runtimes";
82+
progressMonitor.RunningProcess($"{dotnet} {args}");
8283
var pi = new ProcessStartInfo(dotnet, args)
8384
{
8485
RedirectStandardOutput = true,
@@ -90,6 +91,7 @@ public IList<string> GetListedRuntimes()
9091
progressMonitor.CommandFailed(dotnet, args, exitCode);
9192
return new List<string>();
9293
}
94+
progressMonitor.LogInfo($"Found runtimes: {string.Join("\n", runtimes)}");
9395
return runtimes;
9496
}
9597
}

0 commit comments

Comments
 (0)