Skip to content

Commit 1cf8421

Browse files
committed
feat: Migrate to .NET 10
1 parent 67020e7 commit 1cf8421

7 files changed

Lines changed: 15 additions & 8 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "C# (.NET)",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-bookworm",
6+
"image": "mcr.microsoft.com/devcontainers/dotnet:2-10.0-noble",
77

88
// Features to add to the dev container. More info: https://containers.dev/features.
99
// "features": {},

.github/workflows/dotnetcore.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
- name: Setup .NET Core
13-
uses: actions/setup-dotnet@v3
13+
uses: actions/setup-dotnet@v4
1414
with:
15-
dotnet-version: 8.0.x
15+
dotnet-version: 10.0.x
1616
- name: Build with dotnet
1717
run: |
1818
dotnet build

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"request": "launch",
1111
"preLaunchTask": "build",
1212
// If you have changed target frameworks, make sure to update the program path.
13-
"program": "${workspaceFolder}/PdfInfoTool/bin/Debug/net8.0/PdfInfoTool.dll",
13+
"program": "${workspaceFolder}/PdfInfoTool/bin/Debug/net10.0/PdfInfoTool.dll",
1414
"args": [],
1515
"cwd": "${workspaceFolder}/PdfInfoTool",
1616
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console

PdfInfoTool/PdfInfoTool.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
<EnableNETAnalyzers>true</EnableNETAnalyzers>
77
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
88
<AnalysisMode>AllEnabledByDefault</AnalysisMode>

SafeRapidPdf.UnitTests/SafeRapidPdf.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
<EnableNETAnalyzers>true</EnableNETAnalyzers>
66
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
77
<AnalysisMode>AllEnabledByDefault</AnalysisMode>

SafeRapidPdf/SafeRapidPdf.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
<EnableNETAnalyzers>true</EnableNETAnalyzers>
66
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
77
<AnalysisMode>AllEnabledByDefault</AnalysisMode>

global.json

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

0 commit comments

Comments
 (0)