Skip to content

Commit 9e9a86a

Browse files
authored
feat: Add support for .NET 9 (#20)
* feat: Add support for .NET 9 * ci: Update labels to `bump-{semver}` This prevents issues with dependabot also adding labels
1 parent 8985dea commit 9e9a86a

File tree

8 files changed

+15
-12
lines changed

8 files changed

+15
-12
lines changed

.github/release-drafter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ exclude-labels:
3131
version-resolver:
3232
major:
3333
labels:
34-
- 'major'
34+
- 'bump-major'
3535
minor:
3636
labels:
37-
- 'minor'
37+
- 'bump-minor'
3838
patch:
3939
labels:
40-
- 'patch'
40+
- 'bump-patch'
4141
default: patch
4242
template: |
4343
## Changes

.github/workflows/publish-nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
echo "PACKAGE_VERSION=${PACKAGE_VERSION_PREFIXED#v}" | tee -a $GITHUB_ENV
3232
- uses: actions/setup-dotnet@v4
3333
with:
34-
dotnet-version: 8.0.x
34+
dotnet-version: 9.0.x
3535
- name: Install dependencies
3636
run: dotnet restore
3737
- name: Build

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-dotnet@v4
1414
with:
15-
dotnet-version: 8.0.x
15+
dotnet-version: 9.0.x
1616
- name: 📥 Restore dependencies
1717
run: dotnet restore --verbosity normal
1818
- name: 🔨 Build

.github/workflows/verify-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: yogevbd/enforce-label-action@a3c219da6b8fa73f6ba62b68ff09c469b3a1c024 # 2.2.2
2020
with:
2121
REQUIRED_LABELS_ANY: "feature,bug,maintenance,dependencies,chore,ignore-for-release,major,minor,patch,github-actions"
22-
REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['feature','bug','maintenance', 'dependencies', 'chore', 'ignore-for-release', 'major', 'minor', 'patch', 'github-actions']"
22+
REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['feature','bug','maintenance', 'dependencies', 'chore', 'ignore-for-release', 'bump-major', 'bump-minor', 'bump-patch', 'github-actions']"
2323

2424
test:
2525
uses: ./.github/workflows/test.yml

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM mcr.microsoft.com/dotnet/aspnet:8.0 as runtime
1+
FROM mcr.microsoft.com/dotnet/aspnet:9.0 as runtime
22
WORKDIR /app
3-
EXPOSE 80
3+
EXPOSE 8080
44
EXPOSE 443
55

6-
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS builder-base
6+
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS builder-base
77
WORKDIR /src
88
COPY . .
99

GCloud.Compute.Metadata.TestServer/GCloud.Compute.Metadata.TestServer.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
8+
<LangVersion>13</LangVersion>
89
</PropertyGroup>
910

1011
<ItemGroup>

GCloud.Compute.Metadata.Tests/GCloud.Compute.Metadata.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
54
<ImplicitUsings>enable</ImplicitUsings>
65
<Nullable>enable</Nullable>
76

87
<IsPackable>false</IsPackable>
98
<IsTestProject>true</IsTestProject>
9+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
10+
<LangVersion>13</LangVersion>
1011
</PropertyGroup>
1112

1213
<ItemGroup>

GCloud.Compute.Metadata.V1/GCloud.Compute.Metadata.V1.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
54
<ImplicitUsings>enable</ImplicitUsings>
65
<Nullable>enable</Nullable>
76
<PackageId>GCloud.Compute.Metadata.V1</PackageId>
@@ -16,6 +15,8 @@
1615
<Description>Library for using the GCE metadata api</Description>
1716
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1817
<PackageTags>google cloud metadata</PackageTags>
18+
<LangVersion>13</LangVersion>
19+
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
1920
</PropertyGroup>
2021
<ItemGroup>
2122
<None Include="..\LICENSE">

0 commit comments

Comments
 (0)