Skip to content

Commit 1470a90

Browse files
committed
Use restore of msbuild to make sure we have the correct platform.
1 parent 2a15cf2 commit 1470a90

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tools/windows/utils.ps1

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,15 @@ function buildSolution($solution, $properties) {
1616
$path = fullPath $solution
1717
$directory = Split-Path -parent $path
1818
$filename = Split-Path -leaf $path
19-
$nuget = fullPath "tools\windows\nuget.exe"
20-
21-
& $nuget restore $path
22-
& $nuget restore $path
2319

2420
$location = $(Get-Location)
2521
Set-Location $directory
2622

23+
msbuild $filename /restore ("/p:$($properties)")
24+
checkExitCode "Failed to build: $($path)"
25+
2726
msbuild $filename /m /t:Rebuild ("/p:$($properties)")
2827
checkExitCode "Failed to build: $($path)"
2928

3029
Set-Location $location
31-
}
30+
}

0 commit comments

Comments
 (0)