Skip to content

Commit 7abe939

Browse files
feat(net10): upgrade from .NET 8 to .NET 10
- Update all 6 .csproj files: net8.0 → net10.0 - Upgrade Microsoft.AspNetCore.OpenApi: 8.0.23 → 10.0.0 - Upgrade Microsoft.AspNetCore.Mvc.Testing: 8.0.* → 10.0.0 - Create global.json pinning .NET 10.0.102 SDK - Update Dockerfile: SDK/runtime images to 10.0 - Update CI/CD workflows: DOTNET_VERSION 8.0.x → 10.0.x - All 150 tests pass (115 unit + 35 integration) Closes BD-846, BD-859, BD-860, BD-861, BD-862 Closes BD-905, BD-906, BD-907, BD-908, BD-909, BD-910, BD-911 Closes BD-912, BD-913, BD-914, BD-915, BD-916, BD-917, BD-918 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 46cfd10 commit 7abe939

10 files changed

Lines changed: 18 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [main, develop]
88

99
env:
10-
DOTNET_VERSION: '8.0.x'
10+
DOTNET_VERSION: '10.0.x'
1111
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1212
DOTNET_CLI_TELEMETRY_OPTOUT: true
1313

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
tags: ['v*']
66

77
env:
8-
DOTNET_VERSION: '8.0.x'
8+
DOTNET_VERSION: '10.0.x'
99

1010
jobs:
1111
release:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
2+
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
33
WORKDIR /src
44

55
# Copy project files for restore
@@ -18,7 +18,7 @@ COPY src/ src/
1818
RUN dotnet publish src/OrderMonitor.Api/OrderMonitor.Api.csproj -c Release -o /app/publish
1919

2020
# Runtime stage
21-
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
21+
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
2222
WORKDIR /app
2323

2424
# Copy published app

global.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "10.0.102",
4+
"rollForward": "latestFeature"
5+
}
6+
}

src/OrderMonitor.Api/OrderMonitor.Api.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.23" />
10+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0" />
1111
<PackageReference Include="Serilog.AspNetCore" Version="10.0.0" />
1212
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.1.0" />
1313
</ItemGroup>

src/OrderMonitor.Core/OrderMonitor.Core.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
</PropertyGroup>

src/OrderMonitor.Infrastructure/OrderMonitor.Infrastructure.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</ItemGroup>
1313

1414
<PropertyGroup>
15-
<TargetFramework>net8.0</TargetFramework>
15+
<TargetFramework>net10.0</TargetFramework>
1616
<ImplicitUsings>enable</ImplicitUsings>
1717
<Nullable>enable</Nullable>
1818
</PropertyGroup>

tests/OrderMonitor.IntegrationTests/OrderMonitor.IntegrationTests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

@@ -12,7 +12,7 @@
1212
<ItemGroup>
1313
<PackageReference Include="coverlet.collector" Version="6.0.4" />
1414
<PackageReference Include="FluentAssertions" Version="8.8.0" />
15-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.*" />
15+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.0" />
1616
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1717
<PackageReference Include="Moq" Version="4.20.70" />
1818
<PackageReference Include="xunit" Version="2.9.3" />

tests/OrderMonitor.UnitTests/OrderMonitor.UnitTests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

tools/EncryptPassword/EncryptPassword.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>

0 commit comments

Comments
 (0)