Skip to content

Commit ea6b93c

Browse files
committed
feat: drop unsupported net7, update System.Text.Json to 8.0.4
1 parent eb5c312 commit ea6b93c

File tree

4 files changed

+16
-32
lines changed

4 files changed

+16
-32
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Wrapper around `tonlibjson` library for accessing [Telegram Open Network](https:
55

66
**Does not** require TonAPI, TonCenter API, TonKeeper API or any other HTTP API.
77

8-
[![NuGet](https://img.shields.io/nuget/v/TonLib.Net.svg?color=blue)](https://www.nuget.org/packages/TonLib.Net/) ![NuGet downloads](https://img.shields.io/nuget/dt/TonLib.NET?color=blue) ![Framework](https://img.shields.io/badge/framework-net6.0-blue) ![Framework](https://img.shields.io/badge/framework-net7.0-blue) ![Framework](https://img.shields.io/badge/framework-net8.0-blue) ![GitHub License](https://img.shields.io/github/license/justdmitry/TonLib.NET?color=blue)
8+
[![NuGet](https://img.shields.io/nuget/v/TonLib.Net.svg?color=blue)](https://www.nuget.org/packages/TonLib.Net/) ![NuGet downloads](https://img.shields.io/nuget/dt/TonLib.NET?color=blue) ![Framework](https://img.shields.io/badge/framework-net6.0-blue) ![Framework](https://img.shields.io/badge/framework-net8.0-blue) ![GitHub License](https://img.shields.io/github/license/justdmitry/TonLib.NET?color=blue)
99

10-
⚠ For `net6.0` uses `System.Text.Json` package **v7.0.0** (from `net7.0`) - it makes [de]serialization much simpler (because of [Polymorphic serialization](https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/polymorphism)). It only updates `System.Text.Encodings.Web` (v6.0 -> v7.0) as a transitive dependency, which I think is acceptable.
10+
⚠ For `net6.0` uses `System.Text.Json` package **v8.0.4** (from `net8.0`) - it makes [de]serialization much simpler (because of [Polymorphic serialization](https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/polymorphism)). It only updates `System.Text.Encodings.Web` (v6.0 -> v8.0) as a transitive dependency, which I think is acceptable.
1111

1212

1313
## Features
@@ -74,10 +74,10 @@ The number of additional dependencies you need depends of what you already have
7474

7575
## 3rd-party libraries and dependencies
7676

77-
* Microsoft.Extensions.Logging.Abstractions v6.0.0 / v7.0.0 / v8.0.0
78-
* Microsoft.Extensions.Options v6.0.0 / v7.0.0 / v8.0.0
79-
* System.Text.Json v7.0.0 for `net6.0` and `net7.0`, v8.0.0 for `net8.0`
80-
* System.Text.Encodings.Web v7.0.0 for `net6.0` as transitive dependency
77+
* Microsoft.Extensions.Logging.Abstractions v6.0.0 / v8.0.0
78+
* Microsoft.Extensions.Options v6.0.0 / v8.0.0
79+
* System.Text.Json v8.0.4 for both `net6.0` and `net7.0`
80+
* System.Text.Encodings.Web v8.0.0 for `net6.0` as transitive dependency
8181

8282

8383
## Donate

TonLibDotNet.Demo/TonLibDotNet.Demo.csproj

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,12 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<RootNamespace>TonLibDotNet</RootNamespace>
99
</PropertyGroup>
1010

11-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
12-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.0" />
13-
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" />
14-
</ItemGroup>
15-
16-
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
17-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0" />
18-
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
19-
</ItemGroup>
20-
2111
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
2212
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
2313
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />

TonLibDotNet.Tests/TonLibDotNet.Tests.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<RootNamespace>TonLibDotNet</RootNamespace>
88
<IsPackable>false</IsPackable>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
13-
<PackageReference Include="Moq" Version="4.18.4" />
14-
<PackageReference Include="xunit" Version="2.4.2" />
15-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
13+
<PackageReference Include="Moq" Version="4.20.70" />
14+
<PackageReference Include="xunit" Version="2.9.0" />
15+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1717
<PrivateAssets>all</PrivateAssets>
1818
</PackageReference>
19-
<PackageReference Include="coverlet.collector" Version="3.2.0">
19+
<PackageReference Include="coverlet.collector" Version="6.0.2">
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2121
<PrivateAssets>all</PrivateAssets>
2222
</PackageReference>

TonLibDotNet/TonLibDotNet.csproj

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<Platforms>AnyCPU</Platforms>
@@ -40,19 +40,13 @@
4040
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
4141
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0" />
4242
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0" />
43-
<PackageReference Include="System.Text.Json" Version="7.0.0" />
44-
</ItemGroup>
45-
46-
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
47-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" />
48-
<PackageReference Include="Microsoft.Extensions.Options" Version="7.0.0" />
49-
<PackageReference Include="System.Text.Json" Version="7.0.0" />
43+
<PackageReference Include="System.Text.Json" Version="8.0.4" />
5044
</ItemGroup>
5145

5246
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
5347
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
5448
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.0" />
55-
<PackageReference Include="System.Text.Json" Version="8.0.0" />
49+
<PackageReference Include="System.Text.Json" Version="8.0.4" />
5650
</ItemGroup>
5751

5852
</Project>

0 commit comments

Comments
 (0)