Skip to content

Commit 7e0053f

Browse files
authored
Merge pull request #39 from TBCBank/feature/package-upgrade
upgrade package and net version
2 parents 96960f0 + 28474f3 commit 7e0053f

File tree

12 files changed

+187
-168
lines changed

12 files changed

+187
-168
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
# Initializes the CodeQL tools for scanning.
5050
- name: Initialize CodeQL
51-
uses: github/codeql-action/init@v2
51+
uses: github/codeql-action/init@v4
5252
with:
5353
languages: ${{ matrix.language }}
5454
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -57,9 +57,11 @@ jobs:
5757
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5858

5959
- name: Setup .NET SDK
60-
uses: actions/setup-dotnet@v2
60+
uses: actions/setup-dotnet@v4
6161
with:
62-
dotnet-version: 6.0.x
62+
dotnet-version: |
63+
6.0.x
64+
9.0.x
6365
include-prerelease: false
6466

6567
- name: Remove net framework example project
@@ -71,7 +73,7 @@ jobs:
7173
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
7274
# If this step fails, then you should remove it and run the build manually (see below)
7375
- name: Autobuild
74-
uses: github/codeql-action/autobuild@v2
76+
uses: github/codeql-action/autobuild@v4
7577

7678
# ℹ️ Command-line programs to run using the OS shell.
7779
# 📚 https://git.io/JvXDl
@@ -85,4 +87,4 @@ jobs:
8587
# make release
8688

8789
- name: Perform CodeQL Analysis
88-
uses: github/codeql-action/analyze@v2
90+
uses: github/codeql-action/analyze@v4

.github/workflows/dependency-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: 'Checkout Repository'
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
- name: 'Dependency Review'
14-
uses: actions/dependency-review-action@v1
14+
uses: actions/dependency-review-action@v4

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ jobs:
3535

3636
steps:
3737
- name: Checkout
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939
with:
4040
fetch-depth: 1
4141

42-
- name: Setup .NET 6 SDK
43-
uses: actions/setup-dotnet@v2
42+
- name: Setup .NET 9 SDK
43+
uses: actions/setup-dotnet@v4
4444
with:
45-
dotnet-version: 6.0.x
45+
dotnet-version: 9.0.x
4646
include-prerelease: false
4747

4848
- name: Remove net framework example project
49-
run: dotnet sln remove "examples\NetFrameworkExample\NetFrameworkExample.csproj"
49+
run: dotnet sln remove "examples/NetFrameworkExample/NetFrameworkExample.csproj"
5050

5151
- name: Restore
5252
run: dotnet restore -p:Configuration=Release

.github/workflows/nuget.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828

2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232
with:
3333
fetch-depth: 10
3434

35-
- name: Setup .NET 6 SDK
36-
uses: actions/setup-dotnet@v2
35+
- name: Setup .NET 9 SDK
36+
uses: actions/setup-dotnet@v4
3737
with:
38-
dotnet-version: 6.0.x
38+
dotnet-version: 9.0.x
3939
include-prerelease: false
4040

4141
# Use vanilla NuGet.exe because dotnet nuget command has a bug: it ignores --source parameter
@@ -44,10 +44,9 @@ jobs:
4444
with:
4545
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
4646
nuget-version: latest
47-
nuget-api-key-source: 'https://api.nuget.org/v3/index.json'
4847

4948
- name: Remove net framework example project
50-
run: dotnet sln remove "examples\NetFrameworkExample\NetFrameworkExample.csproj"
49+
run: dotnet sln remove "examples/NetFrameworkExample/NetFrameworkExample.csproj"
5150

5251
- name: Restore
5352
run: dotnet restore -p:Configuration=Release
@@ -56,7 +55,6 @@ jobs:
5655
run: dotnet build -c Release --no-restore -p:SourceRevisionId=$(git rev-parse --short $env:GITHUB_SHA)
5756

5857
- name: Test
59-
run: |
60-
dotnet test -c Release --no-restore --no-build --verbosity normal
58+
run: dotnet test -c Release --no-restore --no-build --verbosity normal
6159
- name: Push TBC.OpenAPI.SDK.ExchangeRates
62-
run: nuget push "src\TBC.OpenAPI.SDK.ExchangeRates\bin\Release\*.nupkg" -NonInteractive -SkipDuplicate -Source "https://api.nuget.org/v3/index.json" -NoSymbols -ForceEnglishOutput
60+
run: nuget push "src/TBC.OpenAPI.SDK.ExchangeRates/bin/Release/*.nupkg" -NonInteractive -SkipDuplicate -Source "https://api.nuget.org/v3/index.json" -NoSymbols -ForceEnglishOutput

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Exchange Rates SDKs for TBC OpenAPI
88
99
Repository contains the SDK for simplifying TBC Open API Exchange Rate API invocations on C# client application side.\
1010
11-
Library is written in the C # programming language and is compatible with .netstandard2.0 and .net6.0.
11+
Library is written in the C # programming language and is compatible with .netstandard2.0 and .net9.0.
1212
1313
## Prerequisites
1414

examples/CoreApiAppExmaple/CoreApiAppExmaple.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.1" />
10+
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.0.1" />
11+
<PackageReference Include="System.Text.Json" Version="10.0.0" />
1112
</ItemGroup>
1213

1314
<ItemGroup>

examples/CoreConsoleAppExample/CoreConsoleAppExample.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

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

10+
<ItemGroup>
11+
<PackageReference Include="System.Text.Json" Version="10.0.0" />
12+
</ItemGroup>
13+
1014
<ItemGroup>
1115
<ProjectReference Include="..\..\src\TBC.OpenAPI.SDK.ExchangeRates\TBC.OpenAPI.SDK.ExchangeRates.csproj" />
1216
</ItemGroup>

0 commit comments

Comments
 (0)