Permalink
Browse files

Upgrade to .NET Core 2.1.

  • Loading branch information...
jp2masa committed Dec 29, 2018
1 parent 1db7123 commit 586b46a4440c8252b09fac10d5d09a16c38d6f4e
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.0;net471</TargetFrameworks>
<TargetFrameworks>netcoreapp2.1;net471</TargetFrameworks>
<OutputType>Exe</OutputType>
<AssemblyName>xsc</AssemblyName>
<RootNamespace>XSharp.CommandLine</RootNamespace>
@@ -1,4 +1,4 @@
#if NETCOREAPP2_0
#if NETCOREAPP2_1
using System.Runtime.InteropServices;
#endif

@@ -10,7 +10,7 @@ public static bool IsWindows
{
get
{
#if NETCOREAPP2_0
#if NETCOREAPP2_1
return RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
#elif NET471
return true;
@@ -22,7 +22,7 @@ public static bool IsOSX
{
get
{
#if NETCOREAPP2_0
#if NETCOREAPP2_1
return RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
#elif NET471
return false;
@@ -34,7 +34,7 @@ public static bool IsLinux
{
get
{
#if NETCOREAPP2_0
#if NETCOREAPP2_1
return RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
#elif NET471
return false;
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.0;net471</TargetFrameworks>
<TargetFrameworks>netcoreapp2.1;net471</TargetFrameworks>
<PackageDescription>X# bootable launch hosts.
$(XSharpDescription)</PackageDescription>
<IsPackable>False</IsPackable>
@@ -21,7 +21,7 @@ $(XSharpDescription)</PackageDescription>
<PackageReference Include="System.IO.Ports" Version="4.4.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'">
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'">
<PackageReference Include="System.Management.Automation" Version="6.0.2" />
</ItemGroup>

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.0;net471</TargetFrameworks>
<TargetFrameworks>netcoreapp2.1;net471</TargetFrameworks>
<AssemblyName>XSharp.Build.Tasks</AssemblyName>
<PackageId>XSharp.Sdk</PackageId>
<PackageDescription>SDK for X# projects.</PackageDescription>
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
<IsPackable>False</IsPackable>
</PropertyGroup>

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

0 comments on commit 586b46a

Please sign in to comment.