Skip to content

Commit

Permalink
#1166 Исправляет авторизацию, добавляет Encoding.RegisterProvider(Cod…
Browse files Browse the repository at this point in the history
…ePagesEncodingProvider.Instance);
  • Loading branch information
inyutin-maxim committed Jul 3, 2021
1 parent ca02b57 commit 4379ffc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
18 changes: 9 additions & 9 deletions VkNet.Tests/VkNet.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.10.3"/>
<PackageReference Include="FluentAssertions.Analyzers" Version="0.11.4"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0"/>
<PackageReference Include="Moq" Version="4.13.1"/>
<PackageReference Include="Moq.AutoMock" Version="2.1.0"/>
<PackageReference Include="NUnit" Version="3.13.2"/>
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0"/>
<PackageReference Include="NUnit.Console" Version="3.12.0"/>
<PackageReference Include="NUnit.ConsoleRunner" Version="3.12.0"/>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="FluentAssertions.Analyzers" Version="0.11.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
<PackageReference Include="Moq" Version="4.13.1" />
<PackageReference Include="Moq.AutoMock" Version="2.1.0" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.0.0" />
<PackageReference Include="NUnit.Console" Version="3.12.0" />
<PackageReference Include="NUnit.ConsoleRunner" Version="3.12.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\VkNet\VkNet.csproj" />
Expand Down
6 changes: 6 additions & 0 deletions VkNet/VkApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using JetBrains.Annotations;
Expand Down Expand Up @@ -929,6 +930,11 @@ private void Initialization(IServiceProvider serviceProvider)
RequestsPerSecond = 3;

MaxCaptchaRecognitionCount = 5;
#if NET45
_logger?.LogError("Могут быть проблемы при выполнении запросов с Кодировкой 1251. Если проблема воспроизводится рекомендуется обновиться на NETFramework 4.6.1 или выше");
#else
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
#endif
_logger?.LogDebug("VkApi Initialization successfully");
}

Expand Down
4 changes: 2 additions & 2 deletions VkNet/VkNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net45;net461;netstandard2.0;net5.0</TargetFrameworks>
<AssemblyName>VkNet</AssemblyName>
<VersionPrefix>1.63.0</VersionPrefix>
<VersionPrefix>1.64.1</VersionPrefix>
<VersionSufix>
</VersionSufix>
<NeutralLanguage>ru-RU</NeutralLanguage>
Expand All @@ -23,7 +23,7 @@
Обсуждение в Telegram: https://t.me/VkDotNet
Группа в Контакте: https://vk.com/vknetdotnet
_____________________________________________
Список изменений: https://github.com/vknet/vk/milestone/39?closed=1
Список изменений: https://github.com/vknet/vk/milestone/40?closed=1
</PackageReleaseNotes>
<LangVersion>latest</LangVersion>
</PropertyGroup>
Expand Down

0 comments on commit 4379ffc

Please sign in to comment.