summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--tutorial/netstd/Client/Client.csproj1
-rw-r--r--tutorial/netstd/Server/Server.csproj1
6 files changed, 9 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>
diff --git a/tutorial/netstd/Client/Client.csproj b/tutorial/netstd/Client/Client.csproj
index 8a923e156..e91b7a969 100644
--- a/tutorial/netstd/Client/Client.csproj
+++ b/tutorial/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/tutorial/netstd/Server/Server.csproj b/tutorial/netstd/Server/Server.csproj
index 9da32491f..b63967b5a 100644
--- a/tutorial/netstd/Server/Server.csproj
+++ b/tutorial/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>