6

Using .Net Standard, is there a cross-platform way to get a process's parent process ID?

Several SO questions and answers address how to do this in Windows-specific ways (e.g. How to get parent process in .NET in managed way), typically using either WMI's Win32_Process, PInvoke or PerformanceCounters. However, none of these work in the cross-platform world of .Net Standard.

Update

It doesn't seem like there's currently a way to do this. I've created a couple GitHub issues suggesting that related functionality be added to .Net Standard.

Community
  • 1
  • 1
Ben Gribaudo
  • 4,972
  • 1
  • 38
  • 75

1 Answers1

0

Summarizing the discussions at github, there's a point: there should be no way in netCore to get the parent process id.

I'm sad.

homk
  • 258
  • 2
  • 11