Skip to content
Permalink
Browse files

Update conditional code blocks with new versions

  • Loading branch information...
charlesbetros committed May 7, 2019
1 parent 2fbf5ed commit 5de6f908b2ab2642428e9cc84ecc0e7990201616
Showing with 7 additions and 7 deletions.
  1. +7 −7 source/XSharp.Launch/RuntimeHelper.cs
@@ -1,4 +1,4 @@
#if NETCOREAPP2_1
#if NETCOREAPP2_0
using System.Runtime.InteropServices;
#endif

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

0 comments on commit 5de6f90

Please sign in to comment.
You can’t perform that action at this time.