New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Target AppLocalFromInstalled: 'pwsh.exe' is not recognized as an internal or external command, operable program or batch file. #35270
Comments
vcpkg uses powershell-core |
Thank you for prompt response. |
vcpkg should download/install the tools needed by the ports/features selected while being transparent to the user. Listing the dozens of supporting tools vcpkg uses as prerequisite would be formidable, long and overwhelming, especially for new users to install, not to mention most would not be needed. In this case vcpkg failed to download/install powershell-core and I am unsure what information/logs would be required to duplicate the issue and then remedy. The maintainers of this area of vcpkg may be reaching out to you for more information. |
OK, thanks a lot! |
@oleg-boulanov Can you provide your simple reproduction project? |
@Adela0814 sorry, I can't. |
Same. Manually installing fixed the issue. |
The other possibly bigger problem is that this doesn't fail the build. Is this target necessary? |
Describe the bug
After installing vcpkg, new diagnostic output appeared while building existing projects
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No errors logged
Failure logs
Target AppLocalFromInstalled: 'pwsh.exe' is not recognized as an internal or external command, operable program or batch file.
On my Windows 11, PowerShell shortcut points to:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
and is included in
Path=..;C:\Windows\System32\WindowsPowerShell\v1.0;...
The text was updated successfully, but these errors were encountered: