We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9be195a commit 6b11d79Copy full SHA for 6b11d79
1 file changed
PowerShellBuild/Public/Initialize-PSBuild.ps1
@@ -22,7 +22,7 @@ function Initialize-PSBuild {
22
[switch]$UseBuildHelpers
23
)
24
25
- if ([IO.Path]::IsPathFullyQualified($BuildEnvironment.Build.OutDir)) {
+ if ($BuildEnvironment.Build.OutDir.StartsWith($env:BHProjectPath, [StringComparison]::OrdinalIgnoreCase)) {
26
$BuildEnvironment.Build.ModuleOutDir = [IO.Path]::Combine($BuildEnvironment.Build.OutDir, $env:BHProjectName, $BuildEnvironment.General.ModuleVersion)
27
} else {
28
$BuildEnvironment.Build.ModuleOutDir = [IO.Path]::Combine($env:BHProjectPath, $BuildEnvironment.Build.OutDir, $env:BHProjectName, $BuildEnvironment.General.ModuleVersion)
0 commit comments