From 54b9a2310edf87b9f422cf769bb078951f1fc5e2 Mon Sep 17 00:00:00 2001
From: Stefan Seeland <168659+stesee@users.noreply.github.com>
Date: Sun, 23 Nov 2025 13:16:14 +0100
Subject: [PATCH 1/4] Update projects to .NET 10 and fix typos
Migrated all project files, build scripts, and CI workflow from .NET 8 to .NET 10 for Android, iOS, MacCatalyst, and Windows targets. Updated related paths and conditions in build and publish scripts. Fixed a typo in the README and removed the project history section.
---
.github/workflows/dotnet.yml | 8 ++++----
LockPDFyMaui/LockPDFyMaui.csproj | 22 +++++++++++-----------
LockPDFyTests/LockPDFyTests.csproj | 2 +-
LockPDFyWinforms/LockPDFyWinforms.csproj | 2 +-
README.md | 8 ++------
publishAndroidApp.ps1 | 4 ++--
6 files changed, 21 insertions(+), 25 deletions(-)
diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index cb207b2..0666915 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -48,25 +48,25 @@ jobs:
- name: Build
run: dotnet build .\LockPDFyGithubActionsFriendly.slnf --no-restore --configuration Release -p:Version=${{ env.CURRENT_VERSION }}
- name: Build maui windows
- run: dotnet build .\LockPDFyMaui --configuration Release -f net8.0-windows10.0.19041.0 -p:Version=${{ env.CURRENT_VERSION }}
+ run: dotnet build .\LockPDFyMaui --configuration Release -f net10.0-windows10.0.19041.0 -p:Version=${{ env.CURRENT_VERSION }}
- name: Test
run: dotnet test .\LockPDFyGithubActionsFriendly.slnf --no-restore --no-build --verbosity normal --configuration Release
- name: Build maui android
env:
ANDROID_SIGN_KEY: ${{ secrets.ANDROID_SIGN_KEY }}
if: env.ANDROID_SIGN_KEY != ''
- run: dotnet publish LockPDFyMaui -f net8.0-android -c Release -p:Version=${{ env.CURRENT_VERSION }} -p:ApplicationId=$PACKAGENAME -p:AndroidKeyStore=true -p:AndroidSigningKeyStore=$PWD/myapp.keystore -p:AndroidSigningKeyAlias=myapp -p:AndroidSigningKeyPass=${{ secrets.ANDROID_SIGN_KEY }} -p:AndroidSigningStorePass=${{ secrets.ANDROID_SIGN_KEY }}
+ run: dotnet publish LockPDFyMaui -f net10.0-android -c Release -p:Version=${{ env.CURRENT_VERSION }} -p:ApplicationId=$PACKAGENAME -p:AndroidKeyStore=true -p:AndroidSigningKeyStore=$PWD/myapp.keystore -p:AndroidSigningKeyAlias=myapp -p:AndroidSigningKeyPass=${{ secrets.ANDROID_SIGN_KEY }} -p:AndroidSigningStorePass=${{ secrets.ANDROID_SIGN_KEY }}
- name: Github release
shell: bash
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release') && env.GITHUB_TOKEN != '' }}
run: |
- gh release create ${{env.CURRENT_VERSION}} ./LockPDFyMaui/bin/Release/net8.0-android/publish/*.apk --generate-notes
+ gh release create ${{env.CURRENT_VERSION}} ./LockPDFyMaui/bin/Release/net10.0-android/publish/*.apk --generate-notes
- name: Github prerelease
shell: bash
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release') == false && env.GITHUB_TOKEN != '' }}
run: |
- gh release create ${{env.CURRENT_VERSION}} ./LockPDFyMaui/bin/Release/net8.0-android/publish/*.apk --prerelease --generate-notes
+ gh release create ${{env.CURRENT_VERSION}} ./LockPDFyMaui/bin/Release/net10.0-android/publish/*.apk --prerelease --generate-notes
diff --git a/LockPDFyMaui/LockPDFyMaui.csproj b/LockPDFyMaui/LockPDFyMaui.csproj
index 56871a1..008bc47 100644
--- a/LockPDFyMaui/LockPDFyMaui.csproj
+++ b/LockPDFyMaui/LockPDFyMaui.csproj
@@ -1,13 +1,13 @@
- net8.0-android;net8.0-ios;net8.0-maccatalyst
+ net10.0-android;net10.0-ios;net10.0-maccatalyst
- $(TargetFrameworks);net8.0-windows10.0.19041.0
+ $(TargetFrameworks);net10.0-windows10.0.19041.0
-
+
- $(LOCALAPPDATA)\Android\Sdk
-
-
-
\ No newline at end of file
From 6381fd9863c5c197d6133265a406bfd44d763949 Mon Sep 17 00:00:00 2001
From: Stefan Seeland <168659+stesee@users.noreply.github.com>
Date: Sun, 23 Nov 2025 21:33:09 +0100
Subject: [PATCH 3/4] Update to .NET 10 and MAUI workload restore in CI
Bump .NET version to 10.0.x in the GitHub Actions workflow and update the project to target net10.0-windows. Replace explicit MAUI workload installs with 'dotnet workload restore' and update Microsoft.Windows.Compatibility package to version 10.0.0.
---
.github/workflows/dotnet.yml | 8 +++-----
LockPDFyWinforms/LockPDFyWinforms.csproj | 4 ++--
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index 0666915..1d56ef8 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -36,13 +36,11 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
- dotnet-version: 8.0.x
+ dotnet-version: 10.0.x
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- - name: Install MAUI Workloads
- run: |
- dotnet workload install android --ignore-failed-sources
- dotnet workload install maui --ignore-failed-sources
+ - name: Restore MAUI workloads
+ run: dotnet workload restore
- name: Restore dependencies
run: dotnet restore
- name: Build
diff --git a/LockPDFyWinforms/LockPDFyWinforms.csproj b/LockPDFyWinforms/LockPDFyWinforms.csproj
index df3c6d3..ff6d6b1 100644
--- a/LockPDFyWinforms/LockPDFyWinforms.csproj
+++ b/LockPDFyWinforms/LockPDFyWinforms.csproj
@@ -1,4 +1,4 @@
-
+
net10.0-windows
WinExe
@@ -19,7 +19,7 @@
-
+
From 54ba0c1c64094bd8b094b169e160406ee8d365ce Mon Sep 17 00:00:00 2001
From: Stefan Seeland <168659+stesee@users.noreply.github.com>
Date: Sun, 23 Nov 2025 21:46:51 +0100
Subject: [PATCH 4/4] Remove pull_request trigger from dotnet workflow
The GitHub Actions workflow for dotnet will no longer run on pull request events. This change may be intended to limit workflow runs to pushes and manual dispatches only.
---
.github/workflows/dotnet.yml | 1 -
1 file changed, 1 deletion(-)
diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index 1d56ef8..96b51c4 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -15,7 +15,6 @@ on:
- '**/*.md'
- '**/*.gitignore'
- '**/*.gitattributes'
- pull_request:
workflow_dispatch:
permissions:
contents: write