Skip to content

Commit

Permalink
Update conditional code blocks with new versions
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbetros committed May 7, 2019
1 parent 2fbf5ed commit 5de6f90
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/XSharp.Launch/RuntimeHelper.cs
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
#if NETCOREAPP2_1 #if NETCOREAPP2_0
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
#endif #endif


Expand All @@ -10,9 +10,9 @@ public static bool IsWindows
{ {
get get
{ {
#if NETCOREAPP2_1 #if NETCOREAPP2_0
return RuntimeInformation.IsOSPlatform(OSPlatform.Windows); return RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
#elif NET471 #elif NET472
return true; return true;
#endif #endif
} }
Expand All @@ -22,9 +22,9 @@ public static bool IsOSX
{ {
get get
{ {
#if NETCOREAPP2_1 #if NETCOREAPP2_0
return RuntimeInformation.IsOSPlatform(OSPlatform.OSX); return RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
#elif NET471 #elif NET472
return false; return false;
#endif #endif
} }
Expand All @@ -34,9 +34,9 @@ public static bool IsLinux
{ {
get get
{ {
#if NETCOREAPP2_1 #if NETCOREAPP2_0
return RuntimeInformation.IsOSPlatform(OSPlatform.Linux); return RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
#elif NET471 #elif NET472
return false; return false;
#endif #endif
} }
Expand Down

0 comments on commit 5de6f90

Please sign in to comment.