From 3f4c0d73f4573c33ebbaae63f9995b24a8ca99d6 Mon Sep 17 00:00:00 2001 From: Ben Parsons <9ParsonsB@users.noreply.github.com> Date: Wed, 23 Apr 2025 01:46:07 +0000 Subject: [PATCH] Enable .net8 multitarget Fixes #295 --- .github/workflows/build.yml | 20 ++++++++++++++------ Examples/Examples.csproj | 2 +- Raylib-cs.Native/Raylib-cs.Native.csproj | 23 +++++------------------ Raylib-cs.Tests/Raylib-cs.Tests.csproj | 10 +++++----- Raylib-cs/Raylib-cs.csproj | 2 +- 5 files changed, 26 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index afe2c0c..1ea3e36 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,9 @@ name: Build on: push: - branches: master + branches: ["master"] pull_request: - branches: "*" + branches: ["*"] paths-ignore: - "README.md" - ".github/ISSUE_TEMPLATE/**" @@ -35,7 +35,9 @@ jobs: - name: setup dotnet uses: actions/setup-dotnet@v4 with: - dotnet-version: 6.0.x + dotnet-version: | + 6.0.x + 8.0.x - name: setup dependencies run: | @@ -81,7 +83,9 @@ jobs: - name: setup dotnet uses: actions/setup-dotnet@v4 with: - dotnet-version: 6.0.x + dotnet-version: | + 6.0.x + 8.0.x - name: build projects run: dotnet build -c Release /p:BuildArch=${{ matrix.arch }} @@ -114,7 +118,9 @@ jobs: - name: setup dotnet uses: actions/setup-dotnet@v4 with: - dotnet-version: 6.0.x + dotnet-version: | + 6.0.x + 8.0.x - name: build projects run: dotnet build -c Release /p:BuildArch=${{ matrix.arch }} @@ -167,7 +173,9 @@ jobs: - name: setup dotnet uses: actions/setup-dotnet@v4 with: - dotnet-version: 6.0.x + dotnet-version: | + 6.0.x + 8.0.x - name: create NuGet Package run: dotnet pack Raylib-cs -c Release --output nuget diff --git a/Examples/Examples.csproj b/Examples/Examples.csproj index cd05201..5e62c5c 100644 --- a/Examples/Examples.csproj +++ b/Examples/Examples.csproj @@ -1,7 +1,7 @@ Exe - net6.0 + net6.0;net8.0 true Examples.Program $(MSBuildThisFileDirectory) diff --git a/Raylib-cs.Native/Raylib-cs.Native.csproj b/Raylib-cs.Native/Raylib-cs.Native.csproj index 63fef7e..e5ddec7 100644 --- a/Raylib-cs.Native/Raylib-cs.Native.csproj +++ b/Raylib-cs.Native/Raylib-cs.Native.csproj @@ -1,6 +1,6 @@ - net6.0 + net6.0;net8.0 false false @@ -44,11 +44,7 @@ - + @@ -62,20 +58,11 @@ - + - + - + diff --git a/Raylib-cs.Tests/Raylib-cs.Tests.csproj b/Raylib-cs.Tests/Raylib-cs.Tests.csproj index fa9d3a9..f06cc03 100644 --- a/Raylib-cs.Tests/Raylib-cs.Tests.csproj +++ b/Raylib-cs.Tests/Raylib-cs.Tests.csproj @@ -1,15 +1,15 @@ - net6.0 + net6.0;net8.0 true 12 - - - - + + + + diff --git a/Raylib-cs/Raylib-cs.csproj b/Raylib-cs/Raylib-cs.csproj index 918d103..6f014f2 100644 --- a/Raylib-cs/Raylib-cs.csproj +++ b/Raylib-cs/Raylib-cs.csproj @@ -1,6 +1,6 @@ - net6.0 + net6.0;net8.0 false Raylib-cs Raylib_cs