Skip to content

Commit 9839409

Browse files
authored
Upgrade to .NET 10 (#230)
1 parent 50c0326 commit 9839409

File tree

13 files changed

+504
-3706
lines changed

13 files changed

+504
-3706
lines changed

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "coreclr",
77
"request": "launch",
88
"preLaunchTask": "build solution",
9-
"program": "${workspaceFolder}/src/Api/bin/Debug/net9.0/Api.dll",
9+
"program": "${workspaceFolder}/src/Api/bin/Debug/net10.0/Api.dll",
1010
"args": [],
1111
"cwd": "${workspaceFolder}/src/Api",
1212
"stopAtEntry": false,
@@ -21,7 +21,7 @@
2121
"type": "coreclr",
2222
"request": "launch",
2323
"preLaunchTask": "build solution",
24-
"program": "${workspaceFolder}/src/Api/bin/Debug/net9.0/Api.dll",
24+
"program": "${workspaceFolder}/src/Api/bin/Debug/net10.0/Api.dll",
2525
"args": [],
2626
"cwd": "${workspaceFolder}/src/Api",
2727
"stopAtEntry": false,

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>net9.0</TargetFramework>
3+
<TargetFramework>net10.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:9.0.306-alpine3.22 AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:10.0.100-alpine3.22 AS build
22

33
WORKDIR /app
44

@@ -10,7 +10,7 @@ RUN dotnet restore --locked-mode ./Api/Api.csproj
1010

1111
RUN dotnet publish ./Api/Api.csproj -c Release --no-restore -o /app/publish /p:UseAppHost=false
1212

13-
FROM mcr.microsoft.com/dotnet/aspnet:9.0.10-alpine3.22
13+
FROM mcr.microsoft.com/dotnet/aspnet:10.0.0-alpine3.22
1414

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

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
3-
"version": "9.0.306",
3+
"version": "10.0.100",
44
"rollForward": "latestMinor",
55
"allowPrerelease": false
66
}
7-
}
7+
}

src/Api/Setup/packages.lock.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"version": 2,
3+
"dependencies": {
4+
"net10.0": {
5+
"Microsoft.DotNet.ILCompiler": {
6+
"type": "Direct",
7+
"requested": "[10.0.0, )",
8+
"resolved": "10.0.0",
9+
"contentHash": "f9u8fMRROe2lS5MOOLutK6iSNTK9pC3kqd90FIn8Sk29fbZ0QDjZrBbwUkhouk/8dppC71SIEQaag0lGRTxvfA=="
10+
},
11+
"Microsoft.NET.ILLink.Tasks": {
12+
"type": "Direct",
13+
"requested": "[10.0.0, )",
14+
"resolved": "10.0.0",
15+
"contentHash": "kICGrGYEzCNI3wPzfEXcwNHgTvlvVn9yJDhSdRK+oZQy4jvYH529u7O0xf5ocQKzOMjfS07+3z9PKRIjrFMJDA=="
16+
},
17+
"SonarAnalyzer.CSharp": {
18+
"type": "Direct",
19+
"requested": "[10.15.0.120848, )",
20+
"resolved": "10.15.0.120848",
21+
"contentHash": "1hM3HVRl5jdC/ZBDu+G7CCYLXRGe/QaP01Zy+c9ETPhY7lWD8g8HiefY6sGaH0T3CJ4wAy0/waGgQTh0TYy0oQ=="
22+
}
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)