Skip to content

Commit 0124675

Browse files
Add -restore to msbuild invocations for WiX v4 compatibility (#487)
* Add -restore to msbuild invocations for WiX v4 compatibility * Also add -restore to build script * Switch to "restoreNugetPackages: true"
1 parent f16d96e commit 0124675

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.azure/vs2022.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ stages:
15721572
platform: $(platform)
15731573
configuration: Release
15741574
maximumCpuCount: true
1575-
restoreNugetPackages: false
1575+
restoreNugetPackages: true
15761576
createLogFile: true
15771577
msbuildArguments:
15781578
-p:RunWixToolsOutOfProc=true
@@ -1639,6 +1639,7 @@ stages:
16391639
platform: $(platform)
16401640
configuration: Release
16411641
maximumCpuCount: true
1642+
restoreNugetPackages: true
16421643
msbuildArguments:
16431644
-p:RunWixToolsOutOfProc=true
16441645
-p:ProductArchitecture=$(arch)
@@ -1655,6 +1656,7 @@ stages:
16551656
platform: $(platform)
16561657
configuration: Release
16571658
maximumCpuCount: true
1659+
restoreNugetPackages: true
16581660
msbuildArguments:
16591661
-p:RunWixToolsOutOfProc=true
16601662
-p:ProductArchitecture=$(arch)
@@ -1714,7 +1716,7 @@ stages:
17141716
platform: $(platform)
17151717
configuration: Release
17161718
maximumCpuCount: true
1717-
restoreNugetPackages: false
1719+
restoreNugetPackages: true
17181720
createLogFile: true
17191721
msbuildArguments:
17201722
-p:RunWixToolsOutOfProc=true
@@ -1786,7 +1788,7 @@ stages:
17861788
platform: $(platform)
17871789
configuration: Release
17881790
maximumCpuCount: true
1789-
restoreNugetPackages: false
1791+
restoreNugetPackages: true
17901792
createLogFile: true
17911793
msbuildArguments:
17921794
-p:RunWixToolsOutOfProc=true

.github/workflows/swift-toolchain.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ jobs:
16331633
16341634
- name: Package
16351635
run: |
1636-
msbuild -nologo `
1636+
msbuild -nologo -restore `
16371637
-p:Configuration=Release `
16381638
-p:RunWixToolsOutOfProc=true `
16391639
-p:OutputPath=${{ github.workspace }}\BinaryCache\toolchain\ `
@@ -1700,7 +1700,7 @@ jobs:
17001700
17011701
- name: Package Runtime
17021702
run: |
1703-
msbuild -nologo `
1703+
msbuild -nologo -restore `
17041704
-p:Configuration=Release `
17051705
-p:RunWixToolsOutOfProc=true `
17061706
-p:OutputPath=${{ github.workspace }}\BinaryCache\runtime\ `
@@ -1757,7 +1757,7 @@ jobs:
17571757
17581758
- name: Package
17591759
run: |
1760-
msbuild -nologo `
1760+
msbuild -nologo -restore `
17611761
-p:Configuration=Release `
17621762
-p:RunWixToolsOutOfProc=true `
17631763
-p:OutputPath=${{ github.workspace }}\BinaryCache\devtools\ `
@@ -1821,7 +1821,7 @@ jobs:
18211821
18221822
- name: Package
18231823
run: |
1824-
msbuild -nologo `
1824+
msbuild -nologo -restore `
18251825
-p:Configuration=Release `
18261826
-p:RunWixToolsOutOfProc=true `
18271827
-p:OutputPath=${{ github.workspace }}\BinaryCache\installer\ `

build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ function Build-WiXProject()
377377

378378
$MSBuildArgs = @("$SourceCache\swift-installer-scripts\platforms\Windows\$FileName")
379379
$MSBuildArgs += "-noLogo"
380+
$MSBuildArgs += "-restore"
380381
foreach ($Property in $Properties.GetEnumerator()) {
381382
$MSBuildArgs += "-p:$($Property.Key)=$($Property.Value)"
382383
}

0 commit comments

Comments
 (0)