Skip to content

Commit

Permalink
添加修复 SL SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
wherewhere committed May 22, 2024
1 parent a533d15 commit 4f54fee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f54fee

Please sign in to comment.