From 65cd06550748ef4664cd7c16c4e1b50b787684a0 Mon Sep 17 00:00:00 2001 From: WMJ Date: Mon, 31 Aug 2026 20:34:00 +0800 Subject: [PATCH] change target version --- .github/workflows/main.yml | 13 +------------ App/Configuration.Designer.cs | 2 +- App/PDFPatcher.csproj | 2 +- App/Properties/Resources.Designer.cs | 2 +- App/app.config | 2 +- 5 files changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3893904..0cd20b5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,18 +16,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - # 安装 .NET Framework 4.0 Targeting Pack - - name: Install .NET Framework 4.0 Targeting Pack - shell: pwsh - run: | - $vsInstallPath = &"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath - Write-Host "VS Install Path: $vsInstallPath" - $installerPath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\setup.exe" - & $installerPath modify --installPath $vsInstallPath ` - --add Microsoft.Net.Component.4.TargetingPack ` - --passive --norestart - - # .NET Framework 4.0 项目需用 MSBuild,不能用 dotnet build + # .NET Framework 4.5 项目需用 MSBuild,不能用 dotnet build - name: Setup MSBuild uses: microsoft/setup-msbuild@v2 diff --git a/App/Configuration.Designer.cs b/App/Configuration.Designer.cs index dbbda48..25d16ef 100644 --- a/App/Configuration.Designer.cs +++ b/App/Configuration.Designer.cs @@ -19,7 +19,7 @@ namespace PDFPatcher { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "18.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Configuration { diff --git a/App/PDFPatcher.csproj b/App/PDFPatcher.csproj index 2caf0a8..272c282 100644 --- a/App/PDFPatcher.csproj +++ b/App/PDFPatcher.csproj @@ -10,7 +10,7 @@ Properties PDFPatcher PDFPatcher - v4.0 + v4.5 512 PDFPatcher.ico true diff --git a/App/Properties/Resources.Designer.cs b/App/Properties/Resources.Designer.cs index b08cb5d..df6ca6b 100644 --- a/App/Properties/Resources.Designer.cs +++ b/App/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace PDFPatcher.Properties { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "18.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { diff --git a/App/app.config b/App/app.config index 48d2d17..3c86b0b 100644 --- a/App/app.config +++ b/App/app.config @@ -1,6 +1,6 @@ - +