psake / PowerShellBuild

Common build tasks for psake and Invoke-Build that build and test PowerShell modules
MIT License
134 stars 24 forks source link

$env:BHBuildOutput is not being set #18

Closed pauby closed 5 years ago

pauby commented 5 years ago

Expected Behavior

The $env:BHBuildOutput variable to have the same value as $PSBPreference.Build.ModuleOutDir

Current Behavior

In the Init() task a list of build variables is shown and BHBuildOutput points ot a $projectRoot\BuildOutput folder (so say powershellbuild\BuildOutput) which doesn't reflect what the $PSBPreference.Build.ModuleOutDir variable is set to.

Possible Solution

When calling Set-BuildEnvironment in the Initialize-PSBuild function, explicitly set the BuildOutput parameter.