mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update PS build script to set env:NUGET_PACKAGES to support custom package installation directory.
This commit is contained in:
committed by
Andrew Schwartzmeyer
parent
2ae8f5c3a0
commit
585eefc7a0
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user