-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
'_VCPKG_PWSH_PATH-NOTFOUND' is not recognized as an internal or external command #14283
Comments
As a workaround you should be able to install powershell-core https://github.com/PowerShell/PowerShell/releases/tag/v7.0.3 |
Really useful, Thanks.
|
I meet this problem sometimes. It happened suddenly. If I try a few more times, maybe one of them can run. |
我也出现了该问题,最新的版本 |
A workaround is to change vcpkg/scripts/buildsystems/vcpkg.cmake Line 402 in 1b1c17d
to
|
@lone-wolf-akela Yes, the fix will look something like that, should have a fix out for review sometime tomorrow at the latest |
Thanks alot @BillyONeal! |
…n't know enough CMake :( Resolves microsoft#14283
Just wanted to mention that I ran into the very same issue after updatiing both VS 2019 and vcpkg to the latest version. Thanks in advance for fixing it! --edit--
I just noticed that vcpkg has right this program in its own tools folder (for me "D:\Code\Repos\vcpkg\downloads\tools\powershell-core-7.0.3-windows"), but apparently isn't able to find it. |
As a workaround, reverting to c34c418 seems to have fixed it for me in the meantime 👍 |
We were using the
|
* Fix incorrect determination of PowerShell not found because Bill doesn't know enough CMake :( Resolves #14283
Installing |
No.
From the CMake
|
Describe the bug
CMake on Windows fails its C-Compiler test due to:
'_VCPKG_PWSH_PATH-NOTFOUND' is not recognized as an internal or external command
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The build to succeed.
Failure logs
Attached
vcpkg_cmake_failure_logs.txt
Additional context
Possibly related to changes in vcpkg/scripts/buildsystems/vcpkg.cmake with the introduction of _VCPKG_PWSH_PATH-NOTFOUND.
@BillyONeal
The text was updated successfully, but these errors were encountered: