diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 512e1b0..0b52bc8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,12 +20,12 @@ jobs: - name: Prepare envars run: | echo "SHORT_SHA=$("${{ github.sha }}" | cut -c1-8)" >> $env:GITHUB_ENV - echo "APP_VERSION=$((Get-Content -Path "app\App.xaml.cs" | Select-String -Pattern 'VERSION\s=\s"(.+)"' -AllMatches).Matches.Groups[1].Value)" >> $env:GITHUB_ENV + echo "APP_VERSION=$((Get-Content -Path "app\Program.cs" | Select-String -Pattern 'AppVersion\s=\s"(.+)"' -AllMatches).Matches.Groups[1].Value)" >> $env:GITHUB_ENV - name: Patch project files run: | - (Get-Content app\ParsecVDisplay.csproj) -replace "FrameworkVersion>v4.5", "FrameworkVersion>v4.8" | Out-File app\ParsecVDisplay.csproj - (Get-Content app\App.config) -replace "Version=v4.5", "Version=v4.8" | Out-File app\App.config + (Get-Content app\ParsecVDisplay.csproj) -replace "FrameworkVersion>v4.6.2", "FrameworkVersion>v4.8" | Out-File app\ParsecVDisplay.csproj + (Get-Content app\App.config) -replace "Version=v4.6.2", "Version=v4.8" | Out-File app\App.config - name: Setup msbuild uses: microsoft/setup-msbuild@v2