Skip to content

Commit

Permalink
修改 MSBuild 为 x86
Browse files Browse the repository at this point in the history
  • Loading branch information
wherewhere committed May 22, 2024
1 parent 4f54fee commit c9c65a2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1
with:
msbuild-architecture: x64
msbuild-architecture: x86

# Install the Silverlight workload
- name: Download Silverlight
Expand All @@ -33,13 +33,6 @@ 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 c9c65a2

Please sign in to comment.