mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix psmodulerestore path when built in VSCode (#8075)
This commit is contained in:
+7
-1
@@ -362,7 +362,13 @@ Fix steps:
|
||||
}
|
||||
|
||||
# Get the folder path where pwsh.exe is located.
|
||||
$publishPath = Split-Path $Options.Output -Parent
|
||||
if ((Split-Path $Options.Output -Leaf) -like "pwsh*") {
|
||||
$publishPath = Split-Path $Options.Output -Parent
|
||||
}
|
||||
else {
|
||||
$publishPath = $Options.Output
|
||||
}
|
||||
|
||||
try {
|
||||
# Relative paths do not work well if cwd is not changed to project
|
||||
Push-Location $Options.Top
|
||||
|
||||
Reference in New Issue
Block a user