From 1cf8421c46075e8f56e94d385e648e581fe48bfe Mon Sep 17 00:00:00 2001 From: Jaap de Haan <261428+jdehaan@users.noreply.github.com> Date: Sat, 25 Apr 2026 09:51:18 +0000 Subject: [PATCH] feat: Migrate to .NET 10 --- .devcontainer/devcontainer.json | 2 +- .github/workflows/dotnetcore.yml | 6 +++--- .vscode/launch.json | 2 +- PdfInfoTool/PdfInfoTool.csproj | 2 +- SafeRapidPdf.UnitTests/SafeRapidPdf.UnitTests.csproj | 2 +- SafeRapidPdf/SafeRapidPdf.csproj | 2 +- global.json | 7 +++++++ 7 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 global.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e7d90a8..488462b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ { "name": "C# (.NET)", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-bookworm", + "image": "mcr.microsoft.com/devcontainers/dotnet:2-10.0-noble", // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 0b94b77..0ffbeaf 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -8,11 +8,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup .NET Core - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 10.0.x - name: Build with dotnet run: | dotnet build diff --git a/.vscode/launch.json b/.vscode/launch.json index e391577..eaa56c1 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,7 +10,7 @@ "request": "launch", "preLaunchTask": "build", // If you have changed target frameworks, make sure to update the program path. - "program": "${workspaceFolder}/PdfInfoTool/bin/Debug/net8.0/PdfInfoTool.dll", + "program": "${workspaceFolder}/PdfInfoTool/bin/Debug/net10.0/PdfInfoTool.dll", "args": [], "cwd": "${workspaceFolder}/PdfInfoTool", // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console diff --git a/PdfInfoTool/PdfInfoTool.csproj b/PdfInfoTool/PdfInfoTool.csproj index 2981690..02e0fa2 100644 --- a/PdfInfoTool/PdfInfoTool.csproj +++ b/PdfInfoTool/PdfInfoTool.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net10.0 true true AllEnabledByDefault diff --git a/SafeRapidPdf.UnitTests/SafeRapidPdf.UnitTests.csproj b/SafeRapidPdf.UnitTests/SafeRapidPdf.UnitTests.csproj index 25ac3f3..e2ba1ec 100644 --- a/SafeRapidPdf.UnitTests/SafeRapidPdf.UnitTests.csproj +++ b/SafeRapidPdf.UnitTests/SafeRapidPdf.UnitTests.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 true true AllEnabledByDefault diff --git a/SafeRapidPdf/SafeRapidPdf.csproj b/SafeRapidPdf/SafeRapidPdf.csproj index 02647c0..5e64d58 100644 --- a/SafeRapidPdf/SafeRapidPdf.csproj +++ b/SafeRapidPdf/SafeRapidPdf.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 true true AllEnabledByDefault diff --git a/global.json b/global.json new file mode 100644 index 0000000..d46d21e --- /dev/null +++ b/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + "version": "10.0.100", + "rollForward": "latestFeature", + "allowPrerelease": false + } +}