When using vcpkg: applocal.ps1 does not exist Please provide the path to an existing ".ps1" file as an actual argument to the -File formal parameter

applocal.ps1 does not exist Please provide the path to an existing ".ps1" file as an actual argument to the -File formal parameter

Detailed error message

The actual parameter 'D:/vcpkg/scripts/buildsystems/msbuild/applocal.ps1' of the -File formal parameter does not exist. Please provide the path to an existing ".ps1" file as an actual argument to the -File formal parameter

That is to say, the .ps1 file cannot be found. Check under the msbuild folder in the file explorer, if it does not exist, there are two solutions at this time:

Solution 1

Go to the vcpkg official repository of github to download this file, and put it in the path that prompts that it is missing. https://github.com/microsoft/vcpkg/blob/9b4535e7ee7673fb8515d1f4f256990423a0d952/scripts/buildsystems/msbuild/applocal.ps1

Solution 2

Close 360 ​​Security Guard when running vcpkg related programs . . .
~ Close 360 ​​Security Guard ~

Guess you like

Origin blog.csdn.net/qq_42679415/article/details/130047154
Recommended