Skip to content

Use PowerShell 5 to create vcpkg port overlay#6272

Open
pl4nty wants to merge 1 commit into
microsoft:masterfrom
devicie:vcpkg-use-ps5
Open

Use PowerShell 5 to create vcpkg port overlay#6272
pl4nty wants to merge 1 commit into
microsoft:masterfrom
devicie:vcpkg-use-ps5

Conversation

@pl4nty

@pl4nty pl4nty commented Jun 8, 2026

Copy link
Copy Markdown

📖 Description

PowerShell 7 is installed by tests, so it might not be available during vcpkg build. Alternatively, PowerShell 7 could be added to https://github.com/microsoft/winget-cli/tree/master/.config?

🔗 References

Introduced in #6243, found while debugging #6261

🔍 Validation

Reran without PowerShell 7 installed

✅ Checklist

📋 Issue Type

  • Bug fix
  • Feature
  • Task
Microsoft Reviewers: Open in CodeFlow

PowerShell 7 is installed by tests, so it might not be available during vcpkg build
@pl4nty pl4nty requested a review from a team as a code owner June 8, 2026 08:55
@florelis

florelis commented Jun 8, 2026

Copy link
Copy Markdown
Member

I don't think the script currently works with powershell.exe. We'd have to either update the script to work with both, or add pwsh.exe to the list of build requirements.

@pl4nty

pl4nty commented Jun 10, 2026

Copy link
Copy Markdown
Author

I've only tested powershell.exe -ExecutionPolicy Bypass -File "$(MSBuildThisFileDirectory)VcpkgPortOverlay\CreatePortOverlay.ps1" -StampFile "$(MSBuildThisFileDirectory)VcpkgPortOverlay\.created" on an existing VM; I'll build a new one to see if the script works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants