Skip to content

Commit 2a169f3

Browse files
Ivan KamkinIvan Kamkin
authored andcommitted
Remove old frameworks
Add new 9.0 version Update System.Text.Json version
1 parent e46767c commit 2a169f3

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ jobs:
1616
# and https://github.com/dotnet/core/blob/main/releases.md
1717
# for versions
1818
include:
19-
- dotnet-version: 3.1.x
20-
framework: netcoreapp3.1
21-
- dotnet-version: 5.0.x
22-
framework: net5.0
2319
- dotnet-version: 6.0.x
2420
framework: net6.0
2521
- dotnet-version: 8.0.x
2622
framework: net8.0
23+
- dotnet-version: 9.0.x
24+
framework: net9.0
2725

2826
continue-on-error: true
2927

Tests/Aspose.BarCode.Cloud.Sdk.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFrameworks>net462;net480;net481;netcoreapp3.1;net5.0;net6.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net462;net480;net481;net6.0;net8.0;net9.0</TargetFrameworks>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
66
<IsTestProject>true</IsTestProject>
77
<LangVersion>8.0</LangVersion>

Tests/RecognizeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public async Task RecognizeBase64AsyncTest()
3232
using Stream image = GetTestImage("Test_PostGenerateMultiple.png");
3333

3434
byte[] buffer = new byte[image.Length];
35-
await image.ReadAsync(buffer, 0, buffer.Length);
35+
_ = await image.ReadAsync(buffer, 0, buffer.Length);
3636

3737
// Act
3838
BarcodeResponseList response = await _api.RecognizeBase64Async(

Tests/ScanTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public async Task ScanBase64AsyncTest()
2929

3030
byte[] buffer = new byte[image.Length];
3131

32-
await image.ReadAsync(buffer, 0, buffer.Length);
32+
_ = await image.ReadAsync(buffer, 0, buffer.Length);
3333
// Act
3434
BarcodeResponseList response = await _api.ScanBase64Async(
3535
new ScanBase64Request()

src/Aspose.BarCode.Cloud.Sdk.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<TargetFrameworks>netstandard2.0</TargetFrameworks>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
66
<WarningsNotAsErrors>IDE0005;IDE0028;IDE1006;</WarningsNotAsErrors>
7-
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
87
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
98
<AnalysisLevel>latest-Recommended</AnalysisLevel>
109

@@ -49,7 +48,7 @@ Aspose.Barcode for Cloud allows you to control all aspects of the image and barc
4948

5049
<ItemGroup>
5150
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
52-
<PackageReference Include="System.Text.Json" Version="8.0.5" />
51+
<PackageReference Include="System.Text.Json" Version="9.0.4" />
5352
</ItemGroup>
5453

5554
<ItemGroup>

0 commit comments

Comments
 (0)