From fefa67dab0e41795a41dc8c2524959edb0b252aa Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Sun, 15 Oct 2023 03:25:51 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20fix=20=E5=85=83=E7=B4=A0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 10 ++++++---- src/MaaWpfGui/MaaWpfGui.csproj | 11 ++++------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3279f9765..444c6cc922 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -118,11 +118,13 @@ jobs: - name: Taggify Version run: | $csprojPath = "src/MaaWpfGui/MaaWpfGui.csproj" + $csprojPath = Resolve-Path -Path $csprojPath [xml]$csproj = Get-Content -Path $csprojPath - $csproj.Project.PropertyGroup.InformationalVersion = '${{ needs.meta.outputs.tag }}' - $csproj.Project.PropertyGroup.Version = '${{ needs.meta.outputs.tag }}' - $csproj.Project.PropertyGroup.FileVersion = '${{ needs.meta.outputs.tag }}' - $csproj.Project.PropertyGroup.AssemblyVersion = '${{ needs.meta.outputs.tag }}' + $node = $csproj.Project.PropertyGroup | where {$_.AssemblyName -ne $null} + $node.InformationalVersion = '${{ needs.meta.outputs.tag }}' + $node.Version = '${{ needs.meta.outputs.tag }}' + $node.FileVersion = '${{ needs.meta.outputs.tag }}' + $node.AssemblyVersion = '${{ needs.meta.outputs.tag }}' $csproj.Save($csprojPath) env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/MaaWpfGui/MaaWpfGui.csproj b/src/MaaWpfGui/MaaWpfGui.csproj index 8a3760340c..e9dd2e6161 100644 --- a/src/MaaWpfGui/MaaWpfGui.csproj +++ b/src/MaaWpfGui/MaaWpfGui.csproj @@ -1,5 +1,8 @@ + DEBUG VERSION + DEBUG VERSION + DEBUG VERSION DEBUG VERSION WinExe MaaWpfGui @@ -25,7 +28,6 @@ false ..\..\$(Platform)\$(Configuration)\ - false @@ -38,11 +40,9 @@ False app.manifest - - tlbimp @@ -55,7 +55,6 @@ - @@ -68,8 +67,7 @@ - - + MSBuild:Compile @@ -77,7 +75,6 @@ true - True