From f9787a8342ce0622ed93b6402b0e95666cff65d0 Mon Sep 17 00:00:00 2001 From: Ben Parsons <9ParsonsB@users.noreply.github.com> Date: Wed, 7 May 2025 17:16:47 +1000 Subject: [PATCH] Enable Targeting .Net 8 (#297) Fixes #295 --- .github/workflows/build.yml | 20 +++++++++++----- Examples/Examples.csproj | 2 +- Raylib-cs.Native/Native.cs | 4 ++++ Raylib-cs.Native/Raylib-cs.Native.csproj | 29 ++++++++---------------- Raylib-cs.Tests/Raylib-cs.Tests.csproj | 10 ++++---- Raylib-cs/Raylib-cs.csproj | 2 +- 6 files changed, 34 insertions(+), 33 deletions(-) create mode 100644 Raylib-cs.Native/Native.cs 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/Native.cs b/Raylib-cs.Native/Native.cs new file mode 100644 index 0000000..fc8bba6 --- /dev/null +++ b/Raylib-cs.Native/Native.cs @@ -0,0 +1,4 @@ +namespace Raylib_cs.Native +{ + internal class Native { } +} diff --git a/Raylib-cs.Native/Raylib-cs.Native.csproj b/Raylib-cs.Native/Raylib-cs.Native.csproj index 63fef7e..2bc574e 100644 --- a/Raylib-cs.Native/Raylib-cs.Native.csproj +++ b/Raylib-cs.Native/Raylib-cs.Native.csproj @@ -1,8 +1,10 @@ - net6.0 - false + netstandard2.1 false + none + false + False @@ -44,11 +46,7 @@ - + @@ -58,25 +56,16 @@ + - + - - - + + 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