Exclude the managed code around libproc on iOS/tvOS (#61590)
authorMaxim Lipnin <v-maxlip@microsoft.com>
Mon, 15 Nov 2021 19:03:59 +0000 (22:03 +0300)
committerGitHub <noreply@github.com>
Mon, 15 Nov 2021 19:03:59 +0000 (22:03 +0300)
commita53e4897df68572d308755e5c62974be7a22c0ca
tree4088648965e6978cca846981c63fc043abbda3b4
parent9b83294a307347d175628b8582776b2d3d03088b
Exclude the managed code around libproc on iOS/tvOS (#61590)

Since libproc is a private Apple API, it is not available on iOS/tvOS and should be excluded (see #61265 (comment) and above for more details).
This PR excludes $(CommonPath)Interop\OSX\Interop.libproc.cs on the iOS/tvOS as well as makes some methods in Process, ProcessManager, and ProcessThread classes calling that API throw PNSE so that for iOS/tvOS it's possible to re-use the respective *.UnknownUnix.cs parts.
src/libraries/System.Diagnostics.Process/src/System.Diagnostics.Process.csproj
src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.UnknownUnix.cs