0

I have a method which list active processes and for those which filename is dotnet.exe, I want to see the dll executed.

var processes = Process.GetProcesses();
var process = processes.FirstOrDefault(s => s.Module.FileName.Equals(@"C:\Program Files\dotnet\dotnet.exe", StringComparison.OrdinalIgnoreCase));

How to check the dll used with dotnet command using Process in C#?

Snake Eyes
  • 16,287
  • 34
  • 113
  • 221

0 Answers0