Skip to content

Commit 8104e7f

Browse files
committed
msbuild restore package config
1 parent 9ade08b commit 8104e7f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/modules/cmdpal/extensionsdk/nuget/BuildSDKHelper.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ if ($IsAzurePipelineBuild) {
5757
$solutionPath = (Join-Path $PSScriptRoot "..\..\..\..\..\PowerToys.slnx")
5858

5959
if (($BuildStep -ieq "all") -Or ($BuildStep -ieq "build")) {
60-
& $msbuildPath $solutionPath /t:Restore
60+
$restoreArgs = @(
61+
$solutionPath
62+
"/t:Restore"
63+
"/p:RestorePackagesConfig=true"
64+
)
65+
& $msbuildPath $restoreArgs
6166

6267
Try {
6368
foreach ($config in $Configuration.Split(",")) {

0 commit comments

Comments
 (0)