mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
THRIFT-5407: Minor changes in .NET to support netcoreapp3.1
Client: netstd Patch: Mario Emmenlauer This closes #2384
This commit is contained in:
parent
ecf273f060
commit
aeb8964dda
@ -20,6 +20,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<AssemblyName>Client</AssemblyName>
|
||||
<PackageId>Client</PackageId>
|
||||
<OutputType>Exe</OutputType>
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<AssemblyName>Server</AssemblyName>
|
||||
<PackageId>Server</PackageId>
|
||||
<OutputType>Exe</OutputType>
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<AssemblyName>Client</AssemblyName>
|
||||
<PackageId>Client</PackageId>
|
||||
<OutputType>Exe</OutputType>
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<AssemblyName>Server</AssemblyName>
|
||||
<PackageId>Server</PackageId>
|
||||
<OutputType>Exe</OutputType>
|
||||
|
Loading…
Reference in New Issue
Block a user