File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
System.Runtime.InteropServices.RuntimeInformation Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,12 @@ public static string FrameworkDescription {
43
43
44
44
public static bool IsOSPlatform ( OSPlatform osPlatform )
45
45
{
46
- switch ( Environment . OSVersion . Platform ) {
46
+ switch ( Environment . Platform ) {
47
47
case PlatformID . Win32NT :
48
48
return osPlatform == OSPlatform . Windows ;
49
+ case PlatformID . MacOSX :
50
+ return osPlatform == OSPlatform . OSX ;
49
51
case PlatformID . Unix :
50
- if ( File . Exists ( "/usr/lib/libc.dylib" ) )
51
- return osPlatform == OSPlatform . OSX ;
52
-
53
52
return osPlatform == OSPlatform . Linux ;
54
53
default :
55
54
return false ;
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ public static string NewLine {
214
214
//
215
215
static OperatingSystem os ;
216
216
217
- static extern PlatformID Platform {
217
+ static internal PlatformID Platform {
218
218
[ MethodImplAttribute ( MethodImplOptions . InternalCall ) ]
219
219
get ;
220
220
}
You can’t perform that action at this time.
0 commit comments