Skip to content

Commit a4c67cc

Browse files
committed
Upgrade to .NET 9
1 parent 5bd35e9 commit a4c67cc

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: ["ubuntu-latest", "windows-latest"]
18-
dotnet: ["8.0.x"]
18+
dotnet: ["9.0.x"]
1919
steps:
2020
- uses: actions/checkout@v4
2121
- name: Setup .NET ${{ matrix.dotnet }}

App/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<ItemGroup>
66
<PackageVersion Include="Asp.Versioning.Http" Version="8.1.0" />
77
<PackageVersion Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.0" />
8-
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="8.0.10" />
8+
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="9.0.0-rc.2.24474.3" />
99
<PackageVersion Include="Serilog" Version="4.1.0" />
1010
<PackageVersion Include="Serilog.Extensions.Hosting" Version="8.0.0" />
1111
<PackageVersion Include="Serilog.Sinks.Console" Version="6.0.0" />

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<Nullable>enable</Nullable>
55
<LangVersion>latest</LangVersion>
66
<ImplicitUsings>enable</ImplicitUsings>

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build
22

33
WORKDIR /app
44

@@ -9,7 +9,7 @@ RUN dotnet restore ./Api/Api.csproj
99

1010
RUN dotnet publish ./Api/Api.csproj -c Release -o /app/publish
1111

12-
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
12+
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine
1313

1414
COPY --from=build /app/publish .
1515

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ Endpoints:
2020
- /buyandsell
2121

2222
Tools used:
23-
- .NET SDK
23+
24+
- .NET 9 SDK
2425
- Docker

Tests/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</PropertyGroup>
55
<ItemGroup>
66
<PackageVersion Include="FluentAssertions" Version="6.12.1" />
7-
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.10" />
7+
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.0-rc.2.24474.3" />
88
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
99
<PackageVersion Include="NSubstitute" Version="5.3.0" />
1010
<PackageVersion Include="xunit" Version="2.9.2" />

0 commit comments

Comments
 (0)