Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
Add a pre-restore to work around NuGet/Home#4790
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Mar 15, 2017
1 parent 967799b commit 4e44ee9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ Get-ExternalTools

if ($Restore -and $PSCmdlet.ShouldProcess($SolutionFile, "Restore packages")) {
Write-Output "Restoring NuGet packages..."

# Workaround NuGet/Home#4790 - this gets Nerdbank.GitVersioning into the package cache
& $MSBuildCommand.Path /t:restore /nologo /m "$SolutionFolder\Windows.Core\Windows.Core.csproj"

# Now do the simple thing that SHOULD be the only requirement
& $MSBuildCommand.Path /t:restore /nologo /m $SolutionFile

# Workaround NuGet/Home#4753
& $MSBuildCommand.Path /t:restore /nologo /m "$SolutionFolder\NtDll.Tests\NtDll.Tests.csproj"
& $MSBuildCommand.Path /t:restore /nologo /m "$SolutionFolder\WtsApi32.Tests\WtsApi32.Tests.csproj"
Expand Down

0 comments on commit 4e44ee9

Please sign in to comment.