Skip to content

Commit

Permalink
Update to net9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorPilley committed Nov 25, 2024
1 parent a2107da commit d3ab2cb
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion NuGet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_

Expand Down
2 changes: 1 addition & 1 deletion src/PhoneNumbers/PhoneNumbers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<AssemblyName>PhoneNumbers</AssemblyName>
<RootNamespace>PhoneNumbers</RootNamespace>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net9.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<LangVersion>12.0</LangVersion>
<Nullable>enable</Nullable>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<AssemblyName>PhoneNumbers.Data.Tests</AssemblyName>
<RootNamespace>PhoneNumbers.Tests</RootNamespace>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>12.0</LangVersion>
<IsPackable>false</IsPackable>
<SignAssembly>true</SignAssembly>
Expand Down
2 changes: 1 addition & 1 deletion test/PhoneNumbers.Tests/PhoneNumbers.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<AssemblyName>PhoneNumbers.Tests</AssemblyName>
<RootNamespace>PhoneNumbers.Tests</RootNamespace>
<TargetFrameworks>net8.0;net462</TargetFrameworks>
<TargetFrameworks>net9.0;net462</TargetFrameworks>
<LangVersion>12.0</LangVersion>
<IsPackable>false</IsPackable>
<SignAssembly>true</SignAssembly>
Expand Down

0 comments on commit d3ab2cb

Please sign in to comment.