Skip to content

Commit 8722461

Browse files
committed
build: update build .net build targets
1 parent 46671f6 commit 8722461

8 files changed

Lines changed: 28 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ jobs:
2828
ref: ${{ github.event.pull_request.head.sha }}
2929
- name: Scan PR diff
3030
uses: ByteBardOrg/obfuscan-action@v1
31+
env:
32+
INPUT_GITHUB_TOKEN: ${{ github.token }}
3133
with:
32-
github-token: ${{ secrets.GITHUB_TOKEN }}
3334
fail-on: block
3435

3536
build:
@@ -41,12 +42,14 @@ jobs:
4142
steps:
4243
- uses: actions/checkout@v2
4344
- name: Setup .NET
44-
uses: actions/setup-dotnet@v1
45+
uses: actions/setup-dotnet@v4
4546
with:
46-
dotnet-version: '8.0.x'
47-
include-prerelease: true
47+
dotnet-version: |
48+
8.0.x
49+
9.0.x
50+
10.0.x
4851
- name: Restore dependencies
49-
run: dotnet restore
52+
run: dotnet restore
5053
- name: Build
5154
run: dotnet build --no-restore
5255
- name: Test

.github/workflows/release-beta.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@ jobs:
3838
- name: Checkout repository
3939
uses: actions/checkout@v1
4040

41-
- name: Setup .NET Core @ Latest
42-
uses: actions/setup-dotnet@v1
41+
- name: Setup .NET
42+
uses: actions/setup-dotnet@v4
43+
with:
44+
dotnet-version: |
45+
8.0.x
46+
9.0.x
47+
10.0.x
4348
4449
- run: echo ${{env.GITHUB_RUN_NUMBER_WITH_OFFSET}}
4550
- name: Build ${{ matrix.package-name }} project and pack NuGet package

.github/workflows/release-package.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,14 @@ jobs:
6666
- name: Checkout repository
6767
uses: actions/checkout@v1
6868

69-
- name: Setup .NET Core @ Latest
69+
- name: Setup .NET
7070
if: needs.prereleaseCheck.outputs.trigger_release == 'true'
71-
uses: actions/setup-dotnet@v1
71+
uses: actions/setup-dotnet@v4
72+
with:
73+
dotnet-version: |
74+
8.0.x
75+
9.0.x
76+
10.0.x
7277
7378
- name: Build ${{ matrix.package-name }} project and pack NuGet package
7479
if: needs.prereleaseCheck.outputs.trigger_release == 'true'

Common.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- Common Properties used by all assemblies -->
33
<PropertyGroup>
44
<LangVersion>10</LangVersion>
5-
<TargetFrameworks>netstandard2.0;netstandard2.1;net8</TargetFrameworks>
5+
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net9.0;net10.0</TargetFrameworks>
66
<ImplicitUsings>disable</ImplicitUsings>
77
<Company>ByteBard</Company>
88
<PackageProjectUrl>https://github.com/ByteBardOrg/AsyncAPI.NET</PackageProjectUrl>
@@ -21,4 +21,4 @@
2121
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
2222
<None Include="..\..\LICENSE.txt" Pack="true" PackagePath="\" />
2323
</ItemGroup>
24-
</Project>
24+
</Project>

examples/ByteBard.AsyncAPI.Readers.JsonExample/ByteBard.AsyncAPI.Readers.JsonExample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

examples/ByteBard.AsyncAPI.Readers.YamlExample/ByteBard.AsyncAPI.Readers.YamlExample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

examples/ByteBard.AsyncAPI.Writers.Example/ByteBard.AsyncAPI.Writers.Example.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

test/ByteBard.AsyncAPI.Tests/ByteBard.AsyncAPI.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<LangVersion>11</LangVersion>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
66
<ImplicitUsings>disable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<IsPackable>false</IsPackable>

0 commit comments

Comments
 (0)