diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index acc84135b3..35cf6aff5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,7 +119,7 @@ jobs: run: | $csprojPath = "src/MaaWpfGui/MaaWpfGui.csproj" $csprojPath = Resolve-Path -Path $csprojPath - $tag = ${{ needs.meta.outputs.tag }} -replace '.*?/', '' + $tag = '${{ needs.meta.outputs.tag }}' -replace '.*?/', '' $tag -match '\d+(\.\d+){0,3}' $match = $Matches[0] [xml]$csproj = Get-Content -Path $csprojPath diff --git a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs index 0a5f834e86..8242c4e221 100644 --- a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs @@ -79,9 +79,7 @@ namespace MaaWpfGui.ViewModels.UI /// public string CoreVersion => _coreVersion; - private static readonly string _uiVersion = FileVersionInfo - .GetVersionInfo(Application.ResourceAssembly.Location) - .ProductVersion.Split('+')[0]; + private static readonly string _uiVersion = FileVersionInfo.GetVersionInfo(Application.ResourceAssembly.Location).ProductVersion.Split('+')[0]; /// /// Gets the UI version.