summaryrefslogtreecommitdiff
path: root/test/netstd
diff options
context:
space:
mode:
authorMario Emmenlauer <memmenlauer@biodataanalysis.de>2021-05-05 10:50:02 +0200
committerJens Geyer <jensg@apache.org>2021-05-05 20:43:44 +0200
commitaeb8964dda7128a1f6090c3fc3d8091f6f0b45c4 (patch)
treeb3be9ad4991e49701180a8c91a542c051d24cf6f /test/netstd
parentecf273f0609151115a31e8fdedcff285305ffa66 (diff)
downloadthrift-aeb8964dda7128a1f6090c3fc3d8091f6f0b45c4.tar.gz
THRIFT-5407: Minor changes in .NET to support netcoreapp3.1
Client: netstd Patch: Mario Emmenlauer This closes #2384
Diffstat (limited to 'test/netstd')
-rw-r--r--test/netstd/Client/Client.csproj1
-rw-r--r--test/netstd/Client/Program.cs7
-rw-r--r--test/netstd/Server/Program.cs5
-rw-r--r--test/netstd/Server/Server.csproj1
4 files changed, 7 insertions, 7 deletions
diff --git a/test/netstd/Client/Client.csproj b/test/netstd/Client/Client.csproj
index 828ea7394..d3504d442 100644
--- a/test/netstd/Client/Client.csproj
+++ b/test/netstd/Client/Client.csproj
@@ -20,6 +20,7 @@
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
+ <LangVersion>9.0</LangVersion>
<AssemblyName>Client</AssemblyName>
<PackageId>Client</PackageId>
<OutputType>Exe</OutputType>
diff --git a/test/netstd/Client/Program.cs b/test/netstd/Client/Program.cs
index 7e502cdf6..bcc02a242 100644
--- a/test/netstd/Client/Program.cs
+++ b/test/netstd/Client/Program.cs
@@ -18,6 +18,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
+using System.Runtime.InteropServices;
using ThriftTest;
namespace Client
@@ -26,8 +27,8 @@ namespace Client
{
public static int Main(string[] args)
{
- if (OperatingSystem.IsWindows())
- {
+ if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+ {
try
{
Console.SetBufferSize(Console.BufferWidth, 4096);
@@ -69,5 +70,3 @@ namespace Client
}
}
}
-
-
diff --git a/test/netstd/Server/Program.cs b/test/netstd/Server/Program.cs
index 0052bcee4..8f1f36d77 100644
--- a/test/netstd/Server/Program.cs
+++ b/test/netstd/Server/Program.cs
@@ -18,6 +18,7 @@
using System;
using System.Linq;
using System.Collections.Generic;
+using System.Runtime.InteropServices;
using ThriftTest;
namespace Server
@@ -26,7 +27,7 @@ namespace Server
{
public static int Main(string[] args)
{
- if (OperatingSystem.IsWindows())
+ if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
try
{
@@ -65,5 +66,3 @@ namespace Server
}
}
}
-
-
diff --git a/test/netstd/Server/Server.csproj b/test/netstd/Server/Server.csproj
index fe1c394e9..e2ec93c8b 100644
--- a/test/netstd/Server/Server.csproj
+++ b/test/netstd/Server/Server.csproj
@@ -20,6 +20,7 @@
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
+ <LangVersion>9.0</LangVersion>
<AssemblyName>Server</AssemblyName>
<PackageId>Server</PackageId>
<OutputType>Exe</OutputType>