mirror of
https://gitlab.com/Syroot/Worms.git
synced 2025-04-09 19:00:06 +03:00
Move server to correct subdirectory.
This commit is contained in:
parent
dd8b1a4be7
commit
24b545f8e2
@ -1,11 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
<PropertyGroup>
|
|
||||||
<OutputType>Exe</OutputType>
|
|
||||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
|
||||||
<LangVersion>latest</LangVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="Syroot.BinaryData" Version="5.0.0" />
|
|
||||||
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.5.0" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -82,7 +82,7 @@ namespace Syroot.Worms.OnlineWorms.Server.Net
|
|||||||
{
|
{
|
||||||
if (disposing)
|
if (disposing)
|
||||||
{
|
{
|
||||||
TcpClient.Dispose();
|
TcpClient.Close();
|
||||||
_sendStream.Dispose();
|
_sendStream.Dispose();
|
||||||
}
|
}
|
||||||
|
|
@ -20,7 +20,9 @@ namespace Syroot.Worms.OnlineWorms.Server.Net
|
|||||||
|
|
||||||
static PacketStream()
|
static PacketStream()
|
||||||
{
|
{
|
||||||
|
#if NETCOREAPP2_1
|
||||||
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
||||||
|
#endif
|
||||||
_win949Encoding = Encoding.GetEncoding(949);
|
_win949Encoding = Encoding.GetEncoding(949);
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFrameworks>net452;netcoreapp2.1</TargetFrameworks>
|
||||||
|
<LangVersion>latest</LangVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Syroot.BinaryData" Version="5.0.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.1'">
|
||||||
|
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.5.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
Loading…
x
Reference in New Issue
Block a user