Skip to content

Commit c7e5fd0

Browse files
committed
Everywhere: Target .NET 10.0
This affects the Docker images, tests and the Spark.Web project. The ibraries targets netstandard2.0 and are therefore already .NET 10 compatible.
1 parent 08d4bf4 commit c7e5fd0

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

.docker/linux/Spark.Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
FROM mcr.microsoft.com/dotnet/aspnet:8.0-bookworm-slim AS base
1+
FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine AS base
2+
3+
RUN apk add --no-cache icu-libs
4+
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
25
WORKDIR /app
36
ENV ASPNETCORE_URLS=http://+:80
47

5-
FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim AS build
8+
FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build
69
WORKDIR /src
710
COPY ["./Directory.Build.props", "../Directory.Build.props"]
811
COPY ["./src/Spark.Web/Spark.Web.csproj", "Spark.Web/Spark.Web.csproj"]

.github/workflows/nuget_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup .NET Core
1515
uses: actions/setup-dotnet@v4
1616
with:
17-
dotnet-version: 8.0.x
17+
dotnet-version: 10.0.x
1818
- name: Build
1919
run: |
2020
dotnet pack "./src/Spark.Engine/Spark.Engine.csproj" -c Release

.github/workflows/run_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup .NET Core
2121
uses: actions/setup-dotnet@v4
2222
with:
23-
dotnet-version: 8.0.x
23+
dotnet-version: 10.0.x
2424
- name: Build with dotnet
2525
run: dotnet build src/Spark.Web/Spark.Web.csproj -c Release
2626
- name: Unit tests

src/Spark.Engine.Test/Spark.Engine.Test.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
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

src/Spark.Mongo.Tests/Spark.Mongo.Tests.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
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

src/Spark.Web.Tests/Spark.Web.Tests.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
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

src/Spark.Web/Spark.Web.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.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<AspNetCoreModuleName>AspNetCoreModuleV2</AspNetCoreModuleName>
66
<UserSecretsId>a4d3c2a3-5edd-47d1-8407-62489d5568c5</UserSecretsId>
77
</PropertyGroup>

0 commit comments

Comments
 (0)