From 585eefc7a03810c896c36eddf991b172629374ce Mon Sep 17 00:00:00 2001 From: dantraMSFT Date: Fri, 22 Apr 2016 09:39:59 -0700 Subject: [PATCH] Update PS build script to set env:NUGET_PACKAGES to support custom package installation directory. --- PowerShellGitHubDev.psm1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PowerShellGitHubDev.psm1 b/PowerShellGitHubDev.psm1 index 43d3aa37dd..ceec9d21f7 100644 --- a/PowerShellGitHubDev.psm1 +++ b/PowerShellGitHubDev.psm1 @@ -66,6 +66,11 @@ function Start-PSBuild { } } + # use custom package store - this value is also defined in nuget.config under config/repositoryPath + # dotnet restore uses this value as the target for installing the assemblies for referenced nuget packages. + # dotnet build does not currently consume the config value but will consume env:NUGET_PACKAGES to resolve these dependencies + $env:NUGET_PACKAGES="$PSScriptRoot\Packages" + # verify we have all tools in place to do the build $precheck = precheck 'dotnet' "Build dependency 'dotnet' not found in PATH! See: https://dotnet.github.io/getting-started/" if ($FullCLR) {