diff --git a/Build/build.ps1 b/Build/build.ps1 index 57cb05a3..a6115d7e 100644 --- a/Build/build.ps1 +++ b/Build/build.ps1 @@ -70,8 +70,8 @@ task Build -depends Clean { mkdir "$buildDir\Temp" -Force EnsureNuGetExists - EnsureNuGetPacakge "vswhere" $vswherePath $vswhereVersion - EnsureNuGetPacakge "NUnit.ConsoleRunner" $nunitConsolePath $nunitConsoleVersion + EnsureNuGetPackage "vswhere" $vswherePath $vswhereVersion + EnsureNuGetPackage "NUnit.ConsoleRunner" $nunitConsolePath $nunitConsoleVersion $script:msBuildPath = GetMsBuildPath Write-Host "MSBuild path $script:msBuildPath" @@ -193,12 +193,12 @@ function EnsureNuGetExists() } } -function EnsureNuGetPacakge($packageName, $packagePath, $packageVersion) +function EnsureNuGetPackage($packageName, $packagePath, $packageVersion) { if (!(Test-Path $packagePath)) { Write-Host "Couldn't find $packagePath. Downloading with NuGet" - exec { & $nugetPath install $packageName -OutputDirectory $buildDir\Temp -Version $packageVersion | Out-Default } "Error restoring $packagePath" + exec { & $nugetPath install $packageName -OutputDirectory $buildDir\Temp -Version $packageVersion -ConfigFile "$sourceDir\nuget.config" | Out-Default } "Error restoring $packagePath" } }