Skip to content

Commit adef077

Browse files
committed
feat: update to latest .NET version
BREAKING CHANGE: Latest version of .NET 10
1 parent 57b8e2f commit adef077

File tree

4 files changed

+59
-50
lines changed

4 files changed

+59
-50
lines changed

.github/workflows/dotnet.yml

Lines changed: 39 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -13,42 +13,46 @@ jobs:
1313

1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

18-
19-
- name: Setup .NET 7
20-
uses: actions/setup-dotnet@v3
18+
- name: Setup .NET 8
19+
uses: actions/setup-dotnet@v4
2120
with:
22-
dotnet-version: 7.0.x
21+
dotnet-version: 8.0.x
2322

24-
- name: Setup .NET 6
25-
uses: actions/setup-dotnet@v3
23+
- name: Setup .NET 9
24+
uses: actions/setup-dotnet@v4
2625
with:
27-
dotnet-version: 6.0.x
28-
29-
- name: Restore dependencies
30-
run: dotnet restore
31-
32-
- name: Build
33-
run: dotnet build --no-restore
34-
35-
- name: Test
36-
run: dotnet test
37-
38-
- name: Semantic Release
39-
id: semantic
40-
uses: cycjimmy/semantic-release-action@v2
41-
with:
42-
semantic_version: 18.0.1
43-
extra_plugins: |
44-
@semantic-release/changelog
45-
@semantic-release/github
46-
@semantic-release/git
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
50-
- name: Generate Package
51-
run: dotnet pack -c Release -o out -p:PackageVersion=${{ steps.semantic.outputs.new_release_version }} -p:RepositoryUrl=${{env.CURRENT_REPO_URL}}
52-
53-
- name: Publish the package to nuget.org
54-
run: dotnet nuget push ./out/*.nupkg -n -d -k ${{ secrets.NUGET_AUTH_TOKEN}} -s https://api.nuget.org/v3/index.json
26+
dotnet-version: 9.0.x
27+
28+
- name: Setup .NET 10
29+
uses: actions/setup-dotnet@v4
30+
with:
31+
dotnet-version: 10.0.x
32+
33+
- name: Restore dependencies
34+
run: dotnet restore
35+
36+
- name: Build
37+
run: dotnet build --no-restore
38+
39+
- name: Test
40+
run: dotnet test
41+
42+
- name: Semantic Release
43+
id: semantic
44+
uses: cycjimmy/semantic-release-action@v2
45+
with:
46+
semantic_version: 18.0.1
47+
extra_plugins: |
48+
@semantic-release/changelog
49+
@semantic-release/github
50+
@semantic-release/git
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
54+
- name: Generate Package
55+
run: dotnet pack -c Release -o out -p:PackageVersion=${{ steps.semantic.outputs.new_release_version }} -p:RepositoryUrl=${{env.CURRENT_REPO_URL}}
56+
57+
- name: Publish the package to nuget.org
58+
run: dotnet nuget push ./out/*.nupkg -n -d -k ${{ secrets.NUGET_AUTH_TOKEN}} -s https://api.nuget.org/v3/index.json

.github/workflows/pull-request.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,22 @@ jobs:
99

1010
steps:
1111
- name: Checkout repository
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313

14-
- name: Setup .NET 7
15-
uses: actions/setup-dotnet@v3
14+
- name: Setup .NET 8
15+
uses: actions/setup-dotnet@v4
1616
with:
17-
dotnet-version: 7.0.x
17+
dotnet-version: 8.0.x
1818

19-
- name: Setup .NET 6
20-
uses: actions/setup-dotnet@v3
19+
- name: Setup .NET 9
20+
uses: actions/setup-dotnet@v4
2121
with:
22-
dotnet-version: 6.0.x
22+
dotnet-version: 9.0.x
23+
24+
- name: Setup .NET 10
25+
uses: actions/setup-dotnet@v4
26+
with:
27+
dotnet-version: 10.0.x
2328

2429
- name: Restore dependencies
2530
run: dotnet restore
@@ -28,4 +33,4 @@ jobs:
2833
run: dotnet build --no-restore
2934

3035
- name: Test
31-
run: dotnet test --no-build --verbosity normal
36+
run: dotnet test --no-build --verbosity normal

src/NetDevPack.Brasil/NetDevPack.Brasil.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.1;net6.0;net7.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.1;net8.0;net9.0;net10.0</TargetFrameworks>
55
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
66
<Authors>Eduardo Pires</Authors>
77
<Company>desenvolvedor.io</Company>
@@ -18,7 +18,7 @@
1818
</PropertyGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="NetDevPack" Version="6.0.1" />
21+
<PackageReference Include="NetDevPack" Version="8.0.2" />
2222
</ItemGroup>
2323

2424
<ItemGroup>

tests/NetDevPack.Brasil.Tests/NetDevPack.Brasil.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="FluentAssertions" Version="6.8.0" />
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
11-
<PackageReference Include="xunit" Version="2.4.2" />
12-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
9+
<PackageReference Include="FluentAssertions" Version="6.12.2" />
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
11+
<PackageReference Include="xunit" Version="2.9.3" />
12+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
<PrivateAssets>all</PrivateAssets>
1515
</PackageReference>

0 commit comments

Comments
 (0)