NuGet update

This commit is contained in:
Jaex 2022-12-03 06:46:47 +03:00
parent 2de97eea49
commit 309b77a650
6 changed files with 15 additions and 15 deletions

View file

@ -1572,7 +1572,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.1</Version>
<Version>13.0.2</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>

View file

@ -305,7 +305,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.1</Version>
<Version>13.0.2</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>

View file

@ -165,7 +165,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.1</Version>
<Version>13.0.2</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

View file

@ -122,11 +122,11 @@ public FTP(FTPAccount account)
if (account.IsActive)
{
client.DataConnectionType = FtpDataConnectionType.AutoActive;
client.Config.DataConnectionType = FtpDataConnectionType.AutoActive;
}
else
{
client.DataConnectionType = FtpDataConnectionType.AutoPassive;
client.Config.DataConnectionType = FtpDataConnectionType.AutoPassive;
}
if (account.Protocol == FTPProtocol.FTPS)
@ -135,20 +135,20 @@ public FTP(FTPAccount account)
{
default:
case FTPSEncryption.Explicit:
client.EncryptionMode = FtpEncryptionMode.Explicit;
client.Config.EncryptionMode = FtpEncryptionMode.Explicit;
break;
case FTPSEncryption.Implicit:
client.EncryptionMode = FtpEncryptionMode.Implicit;
client.Config.EncryptionMode = FtpEncryptionMode.Implicit;
break;
}
client.SslProtocols = SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12;
client.DataConnectionEncryption = true;
client.Config.SslProtocols = SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12;
client.Config.DataConnectionEncryption = true;
if (!string.IsNullOrEmpty(account.FTPSCertificateLocation) && File.Exists(account.FTPSCertificateLocation))
{
X509Certificate cert = X509Certificate2.CreateFromSignedFile(Account.FTPSCertificateLocation);
client.ClientCertificates.Add(cert);
client.Config.ClientCertificates.Add(cert);
}
else
{

View file

@ -1155,13 +1155,13 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentFTP">
<Version>39.4.0</Version>
<Version>42.1.0</Version>
</PackageReference>
<PackageReference Include="MegaApiClient">
<Version>1.10.2</Version>
<Version>1.10.3</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.1</Version>
<Version>13.0.2</Version>
</PackageReference>
<PackageReference Include="SSH.NET">
<Version>2020.0.2</Version>

View file

@ -2055,10 +2055,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Windows.SDK.Contracts">
<Version>10.0.18362.2005</Version>
<Version>10.0.22621.755</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.1</Version>
<Version>13.0.2</Version>
</PackageReference>
<PackageReference Include="ZXing.Net">
<Version>0.16.8</Version>