From 256bda12e195874d5d58b6b6edf2fbc67b22eb1d Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Thu, 17 Oct 2024 08:21:02 +0100 Subject: [PATCH] Update to net9.0 --- .devcontainer/devcontainer.json | 2 +- .github/workflows/CI.yml | 4 ++-- .github/workflows/publish.yml | 4 ++-- NuGet.md | 2 +- README.md | 2 +- src/PhoneNumbers/PhoneNumbers.csproj | 2 +- test/PhoneNumbers.Data.Tests/PhoneNumbers.Data.Tests.csproj | 2 +- test/PhoneNumbers.Tests/PhoneNumbers.Tests.csproj | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 8edc28088..21c79b01f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ { "name": "C# (.NET)", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/dotnet:8.0", + "image": "mcr.microsoft.com/devcontainers/dotnet:9.0", // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0180fb63f..d3b00353b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -55,7 +55,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 9.0.x - name : dotnet restore run: dotnet restore @@ -64,7 +64,7 @@ jobs: run: dotnet build --configuration ${{ env.PROJECT_CONFIGURATION }} --no-restore - name: dotnet test - run: dotnet test --configuration ${{ env.PROJECT_CONFIGURATION }} -f net8.0 /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --no-restore --verbosity minimal + run: dotnet test --configuration ${{ env.PROJECT_CONFIGURATION }} -f net9.0 /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --no-restore --verbosity minimal - name: dotnet test (.NET Framework) if: matrix.os == 'windows-latest' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d49c5b3ce..8196e12fc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,7 +46,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 9.0.x - name: Set release version if: github.ref_type == 'tag' @@ -83,7 +83,7 @@ jobs: run: dotnet build --configuration ${{ env.PROJECT_CONFIGURATION }} --no-restore - name: dotnet test - run: dotnet test --configuration ${{ env.PROJECT_CONFIGURATION }} -f net8.0 --no-restore --verbosity minimal + run: dotnet test --configuration ${{ env.PROJECT_CONFIGURATION }} -f net9.0 --no-restore --verbosity minimal - name: dotnet pack if: github.ref_type == 'tag' diff --git a/NuGet.md b/NuGet.md index d79fa3e0e..887d5009a 100644 --- a/NuGet.md +++ b/NuGet.md @@ -31,7 +31,7 @@ phoneNumber.ToString("RFC3966"); // tel:+44-114-272-644 (RFC3966 format) Builds for: -- .NET 8.0 +- .NET 9.0 - .NET Standard 2.1 - _supports .NET Core 3.0 or newer and .NET 5.0 or newer_ - .NET Standard 2.0 - _supports .NET Framework 4.6.2 or newer, however projects will need to be built with a minimum C# language version of 9.0 due to use of init only properties_ diff --git a/README.md b/README.md index abb7b6bbb..0ea027919 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ The library adheres to [Semantic Versioning](https://semver.org) and [release no Specific builds are included in the nuget package for: -- .NET 8.0 +- .NET 9.0 - .NET Standard 2.1 - _supports .NET Core 3.0 or newer and .NET 5.0 or newer_ - .NET Standard 2.0 - _supports .NET Framework 4.6.2 or newer, however projects will need to be built with a minimum C# language version of 9.0 due to use of init only properties_ diff --git a/src/PhoneNumbers/PhoneNumbers.csproj b/src/PhoneNumbers/PhoneNumbers.csproj index d330bd848..bd1850d97 100644 --- a/src/PhoneNumbers/PhoneNumbers.csproj +++ b/src/PhoneNumbers/PhoneNumbers.csproj @@ -3,7 +3,7 @@ PhoneNumbers PhoneNumbers - net8.0;netstandard2.1;netstandard2.0 + net9.0;netstandard2.1;netstandard2.0 12.0 enable AllEnabledByDefault diff --git a/test/PhoneNumbers.Data.Tests/PhoneNumbers.Data.Tests.csproj b/test/PhoneNumbers.Data.Tests/PhoneNumbers.Data.Tests.csproj index 3149baddd..aa8f1ab58 100644 --- a/test/PhoneNumbers.Data.Tests/PhoneNumbers.Data.Tests.csproj +++ b/test/PhoneNumbers.Data.Tests/PhoneNumbers.Data.Tests.csproj @@ -3,7 +3,7 @@ PhoneNumbers.Data.Tests PhoneNumbers.Tests - net8.0 + net9.0 12.0 false true diff --git a/test/PhoneNumbers.Tests/PhoneNumbers.Tests.csproj b/test/PhoneNumbers.Tests/PhoneNumbers.Tests.csproj index 5a8424047..348f921e5 100644 --- a/test/PhoneNumbers.Tests/PhoneNumbers.Tests.csproj +++ b/test/PhoneNumbers.Tests/PhoneNumbers.Tests.csproj @@ -3,7 +3,7 @@ PhoneNumbers.Tests PhoneNumbers.Tests - net8.0;net462 + net9.0;net462 12.0 false true