From 386b555cf45dc3d5a94192cde96b9ca50d103e91 Mon Sep 17 00:00:00 2001 From: Bert Jansen Date: Tue, 19 Nov 2024 13:05:22 +0100 Subject: [PATCH] Support for .NET 9.0 --- .github/workflows/buildandtest.yml | 2 +- .github/workflows/nightlynuget_dev.yml | 2 +- src/lib/CHANGELOG.md | 2 ++ .../PnP.Framework.Modernization.Test.csproj | 10 +++---- .../PnP.Framework.Test.csproj | 12 ++++----- src/lib/PnP.Framework/PnP.Framework.csproj | 27 +++++++++++++++++-- 6 files changed, 40 insertions(+), 15 deletions(-) diff --git a/.github/workflows/buildandtest.yml b/.github/workflows/buildandtest.yml index 93ac68c0b..748ec7eff 100644 --- a/.github/workflows/buildandtest.yml +++ b/.github/workflows/buildandtest.yml @@ -30,7 +30,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: '8.0.x' + dotnet-version: '9.0.x' include-prerelease: false - name: Install dependencies run: dotnet restore diff --git a/.github/workflows/nightlynuget_dev.yml b/.github/workflows/nightlynuget_dev.yml index 9f4bf9de3..2bdda487f 100644 --- a/.github/workflows/nightlynuget_dev.yml +++ b/.github/workflows/nightlynuget_dev.yml @@ -17,7 +17,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: '8.0.x' + dotnet-version: '9.0.x' include-prerelease: false - name: Create and publish nuget env: diff --git a/src/lib/CHANGELOG.md b/src/lib/CHANGELOG.md index 7e4d706cd..7b759854d 100644 --- a/src/lib/CHANGELOG.md +++ b/src/lib/CHANGELOG.md @@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Added +- Support for .NET 9.0 [jansenbe - Bert Jansen] + ### Changed - Removed references to the PnP Management Shell app (`31359c7f-bd7e-475c-86db-fdb8c937548e`) [jansenbe - Bert Jansen] diff --git a/src/lib/PnP.Framework.Modernization.Test/PnP.Framework.Modernization.Test.csproj b/src/lib/PnP.Framework.Modernization.Test/PnP.Framework.Modernization.Test.csproj index 05ec5d096..d9673e826 100644 --- a/src/lib/PnP.Framework.Modernization.Test/PnP.Framework.Modernization.Test.csproj +++ b/src/lib/PnP.Framework.Modernization.Test/PnP.Framework.Modernization.Test.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 false true @@ -10,12 +10,12 @@ - + - - + + - + diff --git a/src/lib/PnP.Framework.Test/PnP.Framework.Test.csproj b/src/lib/PnP.Framework.Test/PnP.Framework.Test.csproj index f30080f51..043c32b6a 100644 --- a/src/lib/PnP.Framework.Test/PnP.Framework.Test.csproj +++ b/src/lib/PnP.Framework.Test/PnP.Framework.Test.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 false true ..\pnp.core.snk @@ -175,17 +175,17 @@ - + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/src/lib/PnP.Framework/PnP.Framework.csproj b/src/lib/PnP.Framework/PnP.Framework.csproj index ecf33f411..dc9cd0490 100644 --- a/src/lib/PnP.Framework/PnP.Framework.csproj +++ b/src/lib/PnP.Framework/PnP.Framework.csproj @@ -1,7 +1,7 @@  - netstandard2.0;net8.0 + netstandard2.0;net8.0;net9.0 10.0 PnP.Framework PnP.Framework @@ -30,6 +30,7 @@ + true ..\pnp.core.snk @@ -215,9 +216,23 @@ + + + + + + + + + + + + + + - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -253,6 +268,14 @@ + + + $(PnPCoreSdkPathNet9) + true + false + + + Always