diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d3fcc9..5757f77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,12 +41,14 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' - include-prerelease: true + dotnet-version: | + 8.0.x + 9.0.x + 10.0.x - name: Restore dependencies - run: dotnet restore + run: dotnet restore - name: Build run: dotnet build --no-restore - name: Test diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index aed2754..ae2b2cc 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -38,8 +38,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v1 - - name: Setup .NET Core @ Latest - uses: actions/setup-dotnet@v1 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 8.0.x + 9.0.x + 10.0.x - run: echo ${{env.GITHUB_RUN_NUMBER_WITH_OFFSET}} - name: Build ${{ matrix.package-name }} project and pack NuGet package diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 48484f3..98e8b99 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -66,9 +66,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v1 - - name: Setup .NET Core @ Latest + - name: Setup .NET if: needs.prereleaseCheck.outputs.trigger_release == 'true' - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 8.0.x + 9.0.x + 10.0.x - name: Build ${{ matrix.package-name }} project and pack NuGet package if: needs.prereleaseCheck.outputs.trigger_release == 'true' diff --git a/Common.Build.props b/Common.Build.props index 7f7d0ea..69bcd2c 100644 --- a/Common.Build.props +++ b/Common.Build.props @@ -2,7 +2,7 @@ 10 - netstandard2.0;netstandard2.1;net8 + netstandard2.0;netstandard2.1;net8.0;net9.0;net10.0 disable ByteBard https://github.com/ByteBardOrg/AsyncAPI.NET @@ -21,4 +21,4 @@ - \ No newline at end of file + diff --git a/examples/ByteBard.AsyncAPI.Readers.JsonExample/ByteBard.AsyncAPI.Readers.JsonExample.csproj b/examples/ByteBard.AsyncAPI.Readers.JsonExample/ByteBard.AsyncAPI.Readers.JsonExample.csproj index e47ee8b..871197d 100644 --- a/examples/ByteBard.AsyncAPI.Readers.JsonExample/ByteBard.AsyncAPI.Readers.JsonExample.csproj +++ b/examples/ByteBard.AsyncAPI.Readers.JsonExample/ByteBard.AsyncAPI.Readers.JsonExample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net10.0 disable enable diff --git a/examples/ByteBard.AsyncAPI.Readers.YamlExample/ByteBard.AsyncAPI.Readers.YamlExample.csproj b/examples/ByteBard.AsyncAPI.Readers.YamlExample/ByteBard.AsyncAPI.Readers.YamlExample.csproj index 2ebfbf6..8e87447 100644 --- a/examples/ByteBard.AsyncAPI.Readers.YamlExample/ByteBard.AsyncAPI.Readers.YamlExample.csproj +++ b/examples/ByteBard.AsyncAPI.Readers.YamlExample/ByteBard.AsyncAPI.Readers.YamlExample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net10.0 disable enable diff --git a/examples/ByteBard.AsyncAPI.Writers.Example/ByteBard.AsyncAPI.Writers.Example.csproj b/examples/ByteBard.AsyncAPI.Writers.Example/ByteBard.AsyncAPI.Writers.Example.csproj index 4e9e52b..c76ec4c 100644 --- a/examples/ByteBard.AsyncAPI.Writers.Example/ByteBard.AsyncAPI.Writers.Example.csproj +++ b/examples/ByteBard.AsyncAPI.Writers.Example/ByteBard.AsyncAPI.Writers.Example.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net10.0 enable enable diff --git a/test/ByteBard.AsyncAPI.Tests/ByteBard.AsyncAPI.Tests.csproj b/test/ByteBard.AsyncAPI.Tests/ByteBard.AsyncAPI.Tests.csproj index 36f6007..27f4ba1 100644 --- a/test/ByteBard.AsyncAPI.Tests/ByteBard.AsyncAPI.Tests.csproj +++ b/test/ByteBard.AsyncAPI.Tests/ByteBard.AsyncAPI.Tests.csproj @@ -2,7 +2,7 @@ 11 - net8.0 + net8.0;net9.0;net10.0 disable enable false