I used to detect if a application as running with this method in .net:
public static bool IsApplicationAlreadyRunning()
{
Process[] processes = Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName);
return processes.Length > 1;
}
But with .Net Core there is no Process class. So how can you do the same thing? Also is there some sort of similar class as Process in .Net Core?