Изменена версия .NET Framework

This commit is contained in:
Artyom 2024-04-15 18:55:54 +03:00
parent 7c23d96a99
commit 468365e10a
3 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup> </startup>
</configuration> </configuration>

View File

@ -8,10 +8,11 @@
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<RootNamespace>CyberSystem</RootNamespace> <RootNamespace>CyberSystem</RootNamespace>
<AssemblyName>CyberSystem</AssemblyName> <AssemblyName>CyberSystem</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion> <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic> <Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>

View File

@ -54,7 +54,7 @@ public class Server
var messageBytes = Encoding.UTF8.GetBytes(serverMessage); var messageBytes = Encoding.UTF8.GetBytes(serverMessage);
clientSocket.Send(messageBytes); clientSocket.Send(messageBytes);
// Закрытие соединения. // Закрытие соединения.
clientSocket.Shutdown(SocketShutdown.Both); clientSocket.Shutdown(SocketShutdown.Both);
clientSocket.Close(); clientSocket.Close();