From 4f54feef8d027aa1cefee846dec08de49275bed7 Mon Sep 17 00:00:00 2001 From: wherewhere Date: Wed, 22 May 2024 17:53:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E5=A4=8D=20SL=20SDK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-and-deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 0d6a08d..42b0189 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -33,6 +33,13 @@ jobs: - name: Install Silverlight run: .\silverlight_sdk.exe /q + - name: Fix Silverlight SDK + run: $xmldata = [xml](Get-Content $env:TargetsPath);` + $xmldata.Project.UsingTask.SetAttribute("Architecture", "x86");` + $xmldata.Save($env:TargetsPath) + env: + TargetsPath: 'C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.Common.targets' + # Restore the application to populate the obj folder with RuntimeIdentifiers - name: Restore the application run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration