Skip to content

Commit

Permalink
.NET 9 (#2797)
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Bourgeois <[email protected]>
  • Loading branch information
mathieu-benoit and bourgeoisor authored Nov 17, 2024
1 parent bcf4039 commit b0ee845
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
env:
DOTNET_INSTALL_DIR: "./.dotnet"
with:
dotnet-version: '8.0'
dotnet-version: '9.0'
- uses: actions/setup-go@v5
with:
go-version: '1.23'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
env:
DOTNET_INSTALL_DIR: "./.dotnet"
with:
dotnet-version: '8.0'
dotnet-version: '9.0'
- uses: actions/setup-go@v5
with:
go-version: '1.23'
Expand Down
4 changes: 2 additions & 2 deletions src/cartservice/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# https://mcr.microsoft.com/product/dotnet/sdk
FROM mcr.microsoft.com/dotnet/sdk:8.0.404-noble@sha256:18fa8181d90bfe0d677a005e77086f77fc70af9f84739de57762b51ebab747d3 AS builder
FROM mcr.microsoft.com/dotnet/sdk:9.0.100-noble@sha256:bd0365368f46274500ebb086f491703052b8ce23e3d52d3233a23b2020730057 AS builder
WORKDIR /app
COPY cartservice.csproj .
RUN dotnet restore cartservice.csproj \
Expand All @@ -29,7 +29,7 @@ RUN dotnet publish cartservice.csproj \
-o /cartservice

# https://mcr.microsoft.com/product/dotnet/runtime-deps
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0.11-noble-chiseled@sha256:df82f5ec8647c20714adf52f9b9c4ffe25bd568f1ba00ba30ccb6391e640518d
FROM mcr.microsoft.com/dotnet/runtime-deps:9.0.0-noble-chiseled@sha256:5cc893809e2d2869e1a98c1eecc4c6ff6978d53bc3e5342014eff28a058867a4

WORKDIR /app
COPY --from=builder /cartservice .
Expand Down
4 changes: 2 additions & 2 deletions src/cartservice/src/cartservice.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Grpc.AspNetCore" Version="2.66.0" />
<PackageReference Include="Grpc.HealthCheck" Version="2.66.0" />
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="8.0.10" />
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="9.0.0" />
<PackageReference Include="Google.Cloud.Spanner.Data" Version="4.6.0" />
<PackageReference Include="Npgsql" Version="8.0.5" />
<PackageReference Include="Google.Cloud.SecretManager.V1" Version="2.5.0" />
Expand Down
4 changes: 2 additions & 2 deletions src/cartservice/tests/cartservice.tests.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Grpc.Net.Client" Version="2.66.0" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="9.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
Expand Down

0 comments on commit b0ee845

Please sign in to comment.