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#?