Skip to content

Commit 723a99d

Browse files
authored
build: update build .net build targets (#33)
* build: update build .net build targets * reset ci.yml
1 parent 310868a commit 723a99d

8 files changed

Lines changed: 26 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v2
4343
- name: Setup .NET
44-
uses: actions/setup-dotnet@v1
44+
uses: actions/setup-dotnet@v4
4545
with:
46-
dotnet-version: '8.0.x'
47-
include-prerelease: true
46+
dotnet-version: |
47+
8.0.x
48+
9.0.x
49+
10.0.x
4850
- name: Restore dependencies
49-
run: dotnet restore
51+
run: dotnet restore
5052
- name: Build
5153
run: dotnet build --no-restore
5254
- 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)